Skip to main content

XUserGetTokenAndSignatureResult

Gets the result of a call to XUserGetTokenAndSignatureAsync.

Syntax

Parameters

async   _Inout_
Type: XAsyncBlock*
An XAsyncBlock for polling the call’s status and retrieving call results. bufferSize   _In_
Type: size_t
The size of the buffer in the buffer parameter. buffer   _Out_writes_bytes_to_(bufferSize,bufferUsed)
Type: void
Contains the results of the call to XUserGetTokenAndSignatureAsync. ptrToBuffer   _Outptr_
Type: XUserGetTokenAndSignatureData**
On return, prtToBuffer points to the buffer you specify in the buffer parameter. The parameter provides a typed pointer to buffer and doesn’t need to be freed independently. bufferUsed   _Out_opt_
Type: size_t*
The number of bytes written in the buffer parameter.

Return value

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

Remarks

To asynchronously retrieve X-tokens and signatures for web requests, call XUserGetTokenAndSignatureAsync. To retrieve the required buffer size to hold the results of calling XUserGetTokenAndSignatureAsync, call XUserGetTokenAndSignatureResultSize. 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 XUserGetTokenAndSignatureResultSize
Last modified on August 20, 2026