XStoreQueryGameLicenseAsync
Retrieves information about the license that was acquired to allow the app to launch.Syntax
Parameters
storeContextHandle _In_Type: XStoreContextHandle The store context handle for the user returned by XStoreCreateContext. async _Inout_
Type: XAsyncBlock* An XAsyncBlock defining the asynchronous work being done. The XAsyncBlock can be used to poll for the call’s status and retrieve call results. See XAsyncBlock for more information.
Return value
Type: HRESULT HRESULT success or error code.Remarks
To retrieve the license information as well as the execution result of this function call XStoreQueryGameLicenseResult after calling this function. XStoreQueryGameLicenseResult should be called in the callback function for XStoreQueryGameLicenseAsync. The following code snippet shows an example of retrieving license information for the license that was acquired to allow the game to launch.Requirements
Header: XStore.h (included in XGameRuntime.h) Library: xgameruntime.lib Supported platforms: Windows, XBOX One family consoles and XBOX Series consolesConceptual documentation
- Mods support for PC GDK titles
- Enabling licensing testing
- GDK Commerce Systems Overview
- Enabling XStore development and testing
See also
XStoreXStoreQueryGameLicenseResult
XStoreCreateContext
