WdsBpParseInitializev6 function

Receives a handle to the packet sent by the network boot program.

Syntax


HRESULT WINAPI WdsBpParseInitializev6(
  _In_       PVOID pPacket,
  _In_       ULONG uPacketLen,
  _Out_opt_  PBYTE pbPacketType,
  _Out_      HANDLE *phHandle
);

Parameters

pPacket [in]

A pointer to the packet received from the WDS client. The packet must be a valid DHCPv6 packet.

uPacketLen [in]

The length of the packet, in bytes.

pbPacketType [out, optional]

A value that indicates the type of boot program that sent the packet. The bit flags in the following table can be combined except WDSBP_PK_TYPE_DHCP and WDSBP_PK_TYPE_DHCPV6 are mutually exclusive.

ValueMeaning
WDSBP_PK_TYPE_DHCP
1

The presence of this value indicates that the packet is a DHCP packet. This value is mutually exclusive of WDSBP_PK_TYPE_DHCPV6.

WDSBP_PK_TYPE_WDSNBP
2

This presence of this value indicates that the DHCPv6 packet came from the WDS network boot program. If this value is absent the type of client was not recognized.

WDSBP_PK_TYPE_BCD
4

The presence of this value indicates that the packet contains a path to a Boot Configuration Data (BCD) file.

WDSBP_PK_TYPE_DHCPV6
8

The presence of this value indicates that the packet is a DHCPV6 packet. This value is mutually exclusive of WDSBP_PK_TYPE_DHCP.

 

phHandle [out]

A handle to the packet. This handle can be used by the WdsBpQueryOption function and must be closed using the WdsBpCloseHandle function.

Return value

If the function succeeds, the return is S_OK.

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Wdsbp.h

Library

Wdsbp.lib

DLL

Wdsbp.dll

 

 

Community Additions

ADD
Show:
© 2014 Microsoft