XStoreCanAcquireLicenseForPackageResult

Gets the results for a call to XStoreCanAcquireLicenseForPackageAsync.

Syntax

HRESULT XStoreCanAcquireLicenseForPackageResult(  
         XAsyncBlock* async,  
         XStoreCanAcquireLicenseResult* storeCanAcquireLicense  
)  

Parameters

async   _Inout_
Type: XAsyncBlock*

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

storeCanAcquireLicense   _Out_
Type: XStoreCanAcquireLicenseResult*

Structure indicating if a license can be acquired and what SKU the user would be able to license.

Return value

Type: HRESULT

HRESULT success or error code.

Remarks

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