WdsBpGetOptionBuffer function (wdsbp.h)
Copies information into a buffer that should be added to your DHCP packet options.
Syntax
DWORD WDSBPAPI WdsBpGetOptionBuffer(
[in] HANDLE hHandle,
[in] ULONG uBufferLen,
[out] PVOID pBuffer,
[out] PULONG puBytes
);
Parameters
[in] hHandle
A handle to the packet. This handle must have been returned by the WdsBpInitialize function.
[in] uBufferLen
The total number of bytes of memory pointed to by the pBuffer parameter. To determine the amount of memory required, call the WdsBpGetOptionBuffer function with uBufferLen set to zero and pBuffer set to NULL. The location pointed to by the puBytes parameter then receives the size required.
[out] pBuffer
A pointer to a location in memory that receives the information that is being sent to the network boot program.
[out] puBytes
The number of bytes copied to the buffer.
Return value
If the function succeeds, the return is S_OK.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista with SP1 [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Target Platform | Windows |
Header | wdsbp.h |
Library | Wdsbp.lib |
DLL | Wdsbp.dll |