PxeDhcpv6AppendOptionRaw function

Appends a DHCPv6 option to the reply packet.

Syntax


DWORD PXEAPI PxeDhcpv6AppendOptionRaw(
  _Inout_  PVOID pReply,
  _In_     ULONG cbReply,
  _Inout_  PULONG pcbReplyUsed,
  _In_     USHORT cbBuffer,
  _In_     PVOID pBuffer
);

Parameters

pReply [in, out]

Pointer to a reply packet allocated with the PxePacketAllocate function.

cbReply [in]

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

pcbReplyUsed [in, out]

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.

cbBuffer [in]

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

pBuffer [in]

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

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [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