Compartir a través de


XStoreQueryLicenseTokenResult

Retrieves the results of a call to XStoreQueryLicenseTokenAsync. See License Tokens Overview for more information.

Syntax

HRESULT XStoreQueryLicenseTokenResult(  
         XAsyncBlock* async,  
         size_t size,  
         char* result  
)  

Parameters

async   _Inout_
Type: XAsyncBlock*

The XAsyncBlock passed to XStoreQueryLicenseTokenAsync. The XAsyncBlock can be used to poll for the call's status and retrieve call results. See XAsyncBlock for more information.

size   _In_
Type: size_t

The size of the array passed into result.

result   _Out_writes_z_(size)
Type: char*

On success contains the retrieved license token.

Return value

Type: HRESULT

HRESULT success or error code.

Remarks

This result function allows you to retrieve the execution results of XStoreQueryLicenseTokenAsync, as well as the JSON web token called for if the execution was successful. As such, this function should be called after XStoreQueryLicenseTokenAsync has been called, usually in the context of a callback function.

See XStoreQueryLicenseTokenAsync for a usage example.

Requirements

Header: XStore.h (included in XGameRuntime.h)

Library: xgameruntime.lib

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

See also

XStore

License Tokens Overview

XStoreQueryLicenseTokenAsync

XStoreQueryLicenseTokenResultSize