PxePacketAllocate function (wdspxe.h)

Allocates a packet to be sent with the PxeSendReply function.

Syntax

PVOID PXEAPI PxePacketAllocate(
  [in] HANDLE hProvider,
  [in] HANDLE hClientRequest,
  [in] ULONG  uSize
);

Parameters

[in] hProvider

HANDLE passed to the PxeProviderInitialize function.

[in] hClientRequest

Handle to the client request received in the PxeProviderRecvRequest callback.

[in] uSize

Size of the buffer to be allocated.

Return value

Address of allocated buffer, or NULL if the allocation failed. For extended error information, use the GetLastError function.

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

PxePacketFree

PxeProviderInitialize

PxeProviderRecvRequest

PxeSendReply

Windows Deployment Services Server Functions