Export (0) Print
Expand All

PxeDhcpAppendOption function

Appends a DHCP option to the reply packet.

Syntax


DWORD PXEAPI PxeDhcpAppendOption(
  _Inout_  PVOID pReplyPacket,
  _In_     ULONG uMaxReplyPacketLen,
  _Inout_  PULONG puReplyPacketLen,
  _In_     BYTE bOption,
  _In_     BYTE bOptionLen,
  _In_     PVOID pValue
);

Parameters

pReplyPacket [in, out]

Pointer to a reply packet allocated with the PxePacketAllocate function.

uMaxReplyPacketLen [in]

Allocated length of the packet pointed to by the pReplyPacket parameter.

puReplyPacketLen [in, out]

Address of a ULONG that on successful completion will receive the length of the packet pointed to by the pReplyPacket parameter.

bOption [in]

DHCP option to add to the packet.

bOptionLen [in]

Length of the option value pointed to by the pValue parameter. This parameter is ignored if the bOption parameter is End Option (0xFF) or Pad Option (0x00).

pValue [in]

Address of the buffer that contains the DHCP option value. This parameter is ignored if the bOption parameter is End Option (0xFF) or Pad Option (0x00).

Return value

If the function succeeds, the return value is ERROR_SUCCESS.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2008, Windows Server 2003 with SP2 [desktop apps only]

Header

WdsPxe.h

Library

WdsPxe.lib

DLL

WdsPxe.dll

See also

Windows Deployment Services Server Functions
PxePacketAllocate

 

 

Community Additions

ADD
Show:
© 2014 Microsoft