Skip to main content
获取成功的 PFAccountManagementServerGetPlayerProfileAsync 调用的结果。

语法

参数

async XAsyncBlock*
Inout
用于异步操作的 XAsyncBlock。 bufferSize size_t 结果对象的缓冲区大小。 buffer void*
*Out_writes_bytes_to(bufferSize,bufferUsed)
用于结果值及其字段的字节缓冲区。 result PFAccountManagementGetPlayerProfileResult**
库分配的输出
指向结果对象的指针。 bufferUsed size_t*
可选输出
已使用的所提供缓冲区中的字节数。

返回值

类型:HRESULT 此 API 操作的结果代码。如果服务调用不成功,结果将是 E_PF_PLAYER_NOT_IN_GAME 或任何全局 PlayFab 服务错误。有关错误处理的更多详细信息,请参阅文档页“处理 PlayFab 错误”。

备注

result 是 buffer 内的指针,无需单独释放。

要求

头文件: PFAccountManagement.h

另请参阅

PFAccountManagement 成员
最后修改于 2026年8月13日