XUserGetMsaTokenSilentlyResultSize

Gets the buffer size for holding the results of a call to XUserGetMsaTokenSilentlyAsync.

Syntax

HRESULT XUserGetMsaTokenSilentlyResultSize(  
         XAsyncBlock* async,  
         size_t* tokenSize  
)  

Parameters

async   _Inout_
Type: XAsyncBlock*

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

tokenSize   _Out_
Type: size_t*

Contains the required buffer size.

Return value

Type: HRESULT

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

Remarks

To asynchronously retrieve a MSA token for a user, call XUserGetMsaTokenSilentlyAsync.

To retrieve the result of calling XUserGetMsaTokenSilentlyAsync, call XUserGetMsaTokenSilentlyResult.

Requirements

Header: XUser.h

Library: xgameruntime.lib

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

See also

XUser

XUserGetMsaTokenSilentlyAsync

XUserGetMsaTokenSilentlyResult