PxePacketAllocate 函数 (wdspxe.h)

分配要通过 PxeSendReply 函数发送的数据包。

语法

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

参数

[in] hProvider

传递给 PxeProviderInitialize 函数的HANDLE

[in] hClientRequest

PxeProviderRecvRequest 回调中收到的客户端请求的句柄。

[in] uSize

要分配的缓冲区的大小。

返回值

分配的缓冲区的地址;如果分配失败,则为 NULL 。 有关扩展错误信息,请使用 GetLastError 函数。

要求

要求
最低受支持的客户端 无受支持的版本
最低受支持的服务器 Windows Server 2008、Windows Server 2003 SP2 [仅限桌面应用]
目标平台 Windows
标头 wdspxe.h
Library WdsPxe.lib
DLL WdsPxe.dll

另请参阅

PxePacketFree

PxeProviderInitialize

PxeProviderRecvRequest

PxeSendReply

Windows 部署服务服务器函数