Skip to main content

XStoreCanAcquireLicenseForPackageResult

Gets the results for a call to XStoreCanAcquireLicenseForPackageAsync.

Syntax

Parameters

async   _Inout_
Type: XAsyncBlock*
The XAsyncBlock passed to XStoreCanAcquireLicenseForPackageAsync. Use the XAsyncBlock to check the call’s status and get the results. For more information, see XAsyncBlock. storeCanAcquireLicense   _Out_
Type: XStoreCanAcquireLicenseResult*
Structure that shows if a license can be acquired and what SKU the user can license.

Return value

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

Remarks

This result function retrieves the execution results of XStoreCanAcquireLicenseForPackageAsync, and the preview license if the execution was successful. Call this function after XStoreCanAcquireLicenseForPackageAsync usually in the context of a callback function. For more information, see XStoreCanAcquireLicenseForPackageAsync.

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
XStoreCanAcquireLicenseForPackageAsync
Manage and license downloadable content (DLC)
Last modified on August 20, 2026