XblProfileGetUserProfilesAsync

获取指定 Xbox 用户集合的一个或多个用户档案。

语法

HRESULT XblProfileGetUserProfilesAsync(  
         XblContextHandle xboxLiveContext,  
         uint64_t* xboxUserIds,  
         size_t xboxUserIdsCount,  
         XAsyncBlock* async  
)  

参数

xboxLiveContext _In_
类型:XblContextHandle

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

xboxUserIds _In_
类型:uint64_t*

要获取其档案的用户的 Xbox 用户 ID 的 C 样式数组。

xboxUserIdsCount _In_
类型:size_t

数组中的 Xbox 用户 ID 的数量。

async _In_
类型:XAsyncBlock*

调用方分配的 AsyncBlock。

返回值

类型:HRESULT

此 API 操作的 HRESULT 返回代码。

备注

要获得结果,首先调用 XblProfileGetUserProfilesResultCount 以获取返回的档案的计数,然后在 AsyncBlock 回调内或 AsyncBlock 完成后调用 XblProfileGetUserProfilesResult

REST 调用

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

要求

头文件:profile_c.h

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

另请参阅

profile_c