XStoreAcquireLicenseForPackageResult

Retrieves the results of a call to XStoreAcquireLicenseForPackageAsync.

Syntax

HRESULT XStoreAcquireLicenseForPackageResult(  
         XAsyncBlock* async,  
         XStoreLicenseHandle* storeLicenseHandle  
)  

Parameters

async   _Inout_
Type: XAsyncBlock*

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

storeLicenseHandle   _Out_
Type: XStoreLicenseHandle*

On success contains the handle to the store license.

Return value

Type: HRESULT

HRESULT success or error code.

Remarks

This function is safe to call on a time-sensitive thread.

This result function allows you to retrieve the execution results of XStoreAcquireLicenseForPackageAsync, as well as the license that was called for if the execution was successful. As such, this function should be called after XStoreAcquireLicenseForPackageAsync has been called, usually in the context of a callback function. See XStoreAcquireLicenseForPackageAsync 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
XStoreAcquireLicenseForPackageAsync
XStoreAcquireLicenseForPackageResult
XStoreIsLicenseValid
XStoreCloseLicenseHandle
XStoreRegisterPackageLicenseLost
XStoreUnregisterPackageLicenseLost