Partager via


XStoreQueryGameLicenseResult

Gets the results of a call to XStoreQueryGameLicenseAsync.

Syntax

HRESULT XStoreQueryGameLicenseResult(  
         XAsyncBlock* async,  
         XStoreGameLicense* license  
)  

Parameters

async   _Inout_
Type: XAsyncBlock*

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

license   _Out_
Type: XStoreGameLicense*

On success contains the game license.

Return value

Type: HRESULT

HRESULT success or error code.

Remarks

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

See XStoreQueryGameLicenseAsync 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
XStoreQueryGameLicenseAsync