PxeDhcpv6AppendOption function (wdspxe.h)

Appends a DHCPv6 option to the reply packet.

Syntax

DWORD PXEAPI PxeDhcpv6AppendOption(
  [in, out] PVOID  pReply,
  [in]      ULONG  cbReply,
  [in, out] PULONG pcbReplyUsed,
  [in]      WORD   wOptionType,
  [in]      WORD   cbOption,
  [in]      PVOID  pOption
);

Parameters

[in, out] pReply

Pointer to a reply packet allocated with the PxePacketAllocate function.

[in] cbReply

The total size in bytes allocated for the buffer that is pointed to by pReply.

[in, out] pcbReplyUsed

On entry, this is the number of bytes of the buffer pointed to by pReply that are currently used. On success of the function, this is updated to the number of bytes used after appending the option.

[in] wOptionType

DHCPv6 option to add to the packet.

[in] cbOption

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

[in] pOption

Address of the buffer that contains the DHCPv6 option value.

Return value

If the function succeeds, the return value is ERROR_SUCCESS.

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Target Platform Windows
Header wdspxe.h
Library WdsPxe.lib
DLL WdsPxe.dll

See also

PxePacketAllocate

Windows Deployment Services Server Functions