Compartilhar via


XblProfileGetUserProfileAsync

Gets a user profile for a specific Xbox user.

Syntax

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

Parameters

xboxLiveContext   _In_
Type: XblContextHandle

An xbox live context handle created with XblContextCreateHandle.

xboxUserId   _In_
Type: uint64_t

The Xbox User ID of the user to get the profile for.

async   _In_
Type: XAsyncBlock*

Caller allocated AsyncBlock.

Return value

Type: HRESULT

HRESULT return code for this API operation.

Remarks

To get the result, call XblProfileGetUserProfileResult inside the AsyncBlock callback or after the AsyncBlock is complete.

REST Call

Calls V2 GET /users/batch/profile/settings

Requirements

Header: profile_c.h

Library: Microsoft.Xbox.Services.14x.GDK.C.lib

See also

profile_c