Skip to main content

XUserGetTokenAndSignatureResultSize

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

Syntax

Parameters

async   _Inout_
Type: XAsyncBlock*
An XAsyncBlock for polling the call’s status and retrieving call results. bufferSize   _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 xtokens and signatures for web requests, call XUserGetTokenAndSignatureAsync. To retrieve the result of calling XUserGetTokenAndSignatureAsync, call XUserGetTokenAndSignatureResult. The following example demonstrates how to asynchronously retrieve the token and signature of a user.

Requirements

Header: XUser.h Library: xgameruntime.lib Supported platforms: Windows, Steam Deck, XBOX One family consoles and XBOX Series consoles

See also

XUser XUserGetTokenAndSignatureAsync XUserGetTokenAndSignatureResult
Last modified on August 20, 2026