PxeDhcpAppendOptionRaw function (wdspxe.h)

Appends a DHCP option to the reply packet.

Syntax

DWORD PXEAPI PxeDhcpAppendOptionRaw(
  [in, out] PVOID  pReplyPacket,
  [in]      ULONG  uMaxReplyPacketLen,
  [in, out] PULONG puReplyPacketLen,
  [in]      USHORT uBufferLen,
  [in]      PVOID  pBuffer
);

Parameters

[in, out] pReplyPacket

Pointer to a reply packet allocated with the PxePacketAllocate function.

[in] uMaxReplyPacketLen

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

[in, out] puReplyPacketLen

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

[in] uBufferLen

Length of the option value pointed to by the pBuffer parameter.

[in] pBuffer

Address of the buffer that contains the DHCP option value.

Return value

If the function succeeds, the return value is ERROR_SUCCESS.

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows Server 2008, Windows Server 2003 with SP2 [desktop apps only]
Target Platform Windows
Header wdspxe.h
Library WdsPxe.lib
DLL WdsPxe.dll

See also

PxePacketAllocate

Windows Deployment Services Server Functions