WdsBpGetOptionBuffer function

Copies information into a buffer that should be added to your DHCP packet options.

Syntax


HRESULT WDSBPAPI WdsBpGetOptionBuffer(
  _In_   HANDLE hHandle,
  _In_   ULONG uBufferLen,
  _Out_  PVOID pBuffer,
  _Out_  PULONG puBytes
);

Parameters

hHandle [in]

A handle to the packet. This handle must have been returned by the WdsBpInitialize function.

uBufferLen [in]

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.

pBuffer [out]

A pointer to a location in memory that receives the information that is being sent to the network boot program.

puBytes [out]

The number of bytes copied to the buffer.

Return value

If the function succeeds, the return is S_OK.

Requirements

Minimum supported client

Windows Vista with SP1 [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Wdsbp.h

Library

Wdsbp.lib

DLL

Wdsbp.dll

 

 

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.