Skip to main content

XUserGetTokenAndSignatureUtf16Result

Gets the result of a call to XUserGetTokenAndSignatureUtf16Async.

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 XUserGetTokenAndSignatureUtf16Async. ptrToBuffer   _Outptr_
Type: XUserGetTokenAndSignatureUtf16Data**
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

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

The XUserGetTokenAndSignatureUtf16Async function uses an XUserGetTokenAndSignatureOptions enumeration argument to asynchronously retrieve unicode X-tokens and signatures for web requests. To asynchronously retrieve Unicode X-tokens and signatures for web requests, call XUserGetTokenAndSignatureUtf16Async. To retrieve the required buffer size to hold the results of calling XUserGetTokenAndSignatureUtf16Async, call XUserGetTokenAndSignatureUtf16ResultSize.

Requirements

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

See also

XUser XUserGetTokenAndSignatureUtf16Async XUserGetTokenAndSignatureUtf16ResultSize
Last modified on August 20, 2026