Skip to main content

XStoreCanAcquireLicenseForStoreIdResult

Gets the results for a call to XStoreCanAcquireLicenseForStoreIdAsync.

Syntax

Parameters

async   _Inout_
Type: XAsyncBlock*
The XAsyncBlock that you pass to XStoreCanAcquireLicenseForStoreIdAsync. Use the XAsyncBlock to poll for the call’s status and retrieve call results. For more information, see XAsyncBlock. storeCanAcquireLicense   _Out_
Type: XStoreCanAcquireLicenseResult*
On return, check the result’s status to see if the user can license the product. Call this API for games and durables (with or without packages). It also returns a result if the product can be licensed by using an inserted disc. The result includes which SKU the user can license. For content that users can license by using a disc, the SKU is ‘DISC’.

Return value

Type: HRESULT S_OK on success; otherwise, returns an error code. The XStoreCanAcquireLicenseForStoreIdResult function returns the following error codes:

Remarks

This function retrieves the execution results of XStoreCanAcquireLicenseForStoreIdAsync, and the preview license that the function calls for if the execution is successful. Call this function after XStoreCanAcquireLicenseForStoreIdAsync, usually in the context of a callback function. For a usage example, see XStoreCanAcquireLicenseForStoreIdAsync.

Requirements

Header: XStore.h (included in XGameRuntime.h) Library: xgameruntime.lib Supported platforms: Windows, XBOX One family consoles, and XBOX Series consoles

Conceptual documentation

See also

XStore
XStoreCanAcquireLicenseForStoreIdAsync
How to use a durable without a package
Granting players access to add-on content
Last modified on August 20, 2026