XblProfileGetUserProfileAsync

获取特定 Xbox 用户的用户档案。

语法

HRESULT XblProfileGetUserProfileAsync(  
         XblContextHandle xboxLiveContext,  
         uint64_t xboxUserId,  
         XAsyncBlock* async  
)  

参数

xboxLiveContext _In_
类型:XblContextHandle

使用 XblContextCreateHandle 创建的 xbox live 上下文句柄。

xboxUserId _In_
类型:uint64_t

要获取其档案的用户的 Xbox 用户 ID。

async _In_
类型:XAsyncBlock*

调用方分配的 AsyncBlock。

返回值

类型:HRESULT

此 API 操作的 HRESULT 返回代码。

备注

要获得结果,请在 AsyncBlock 回调中或 AsyncBlock 完成后调用 XblProfileGetUserProfileResult

REST 调用

调用 V2 GET /users/batch/profile/settings

要求

头文件:profile_c.h

图书馆: Microsoft.Xbox.Services.14x.GDK.C.lib

另请参阅

profile_c