Compartilhar via


XUserGetMsaTokenSilentlyResult

Gets the result of a call to XUserGetMsaTokenSilentlyAsync.

Syntax

HRESULT XUserGetMsaTokenSilentlyResult(  
         XAsyncBlock* async,  
         size_t resultTokenSize,  
         char* resultToken,  
         size_t* resultTokenUsed  
)  

Parameters

async   _Inout_
Type: XAsyncBlock*

An XAsyncBlock for polling the call's status and retrieving call results.

resultTokenSize   _In_
Type: size_t

The size of the buffer in the resultToken parameter. Developers should call XUserGetMsaTokenSilentlyResultSize to determine this size.

resultToken   _Out_writes_bytes_to_(resultTokenSize,resultTokenUsed)
Type: char

Contains the results of the call to XUserGetMsaTokenSilentlyAsync.

On return, resultToken points to the user's fetched MSA token.

resultTokenUsed   _Out_opt_
Type: size_t*

The number of bytes written in the resultToken parameter.

Return value

Type: HRESULT

Returns S_OK if successful; otherwise, returns an error code. For a list of error codes, see Error Codes.

Remarks

Upon completion of the asynchronous result, if there are any errors, the title will need to call XGameUiShowWebAuthenticationAsync in order to get the MSA token.

Requirements

Header: XUser.h

Library: xgameruntime.lib

Supported platforms: Windows, Xbox One family consoles and Xbox Series consoles

See also

XUser

XUserGetMsaTokenSilentlyAsync

XUserGetMsaTokenSilentlyResultSize