PxeDhcpv6AppendOptionRaw function (wdspxe.h)

Appends a DHCPv6 option to the reply packet.

Syntax

DWORD PXEAPI PxeDhcpv6AppendOptionRaw(
  [in, out] PVOID  pReply,
  [in]      ULONG  cbReply,
  [in, out] PULONG pcbReplyUsed,
  [in]      USHORT cbBuffer,
  [in]      PVOID  pBuffer
);

Parameters

[in, out] pReply

Pointer to a reply packet allocated with the PxePacketAllocate function.

[in] cbReply

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

[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] cbBuffer

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

[in] pBuffer

Address of the buffer that contains the DHCPv6 option value. The buffer must contain the encoded option code and option size.

For more information about encoding the option code and option size, developers should refer to the Dynamic Host Configuration Protocol for IPv6 RFC 3315 maintained by The Internet Engineering Task Force (IETF).

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