Skip to main content

XStoreAcquireLicenseForPackageResult

Retrieves the results of a call to XStoreAcquireLicenseForPackageAsync.

Syntax

Parameters

async   _Inout_
Type: XAsyncBlock*
The XAsyncBlock passed to XStoreAcquireLicenseForPackageAsync. Use the XAsyncBlock to check the call’s status and get the results. For more information, see XAsyncBlock. storeLicenseHandle   _Out_
Type: XStoreLicenseHandle*
If the call succeeds, this value is the handle to the store license.

Return value

Type: HRESULT Returns S_OK if successful, or an error code otherwise. XStoreAcquireLicenseForPackageResult can return the following error codes:

Remarks

You can safely call this function on a time-sensitive thread. This result function retrieves the execution results of XStoreAcquireLicenseForPackageAsync, and the license that the function requests if the execution is successful. As such, this function should be called after XStoreAcquireLicenseForPackageAsync, usually in the context of a callback function. If a license is returned, call XStoreIsLicenseValid to verify the license is valid. For a usage example, see XStoreAcquireLicenseForPackageAsync.

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
XStoreAcquireLicenseForPackageAsync
XStoreAcquireLicenseForPackageResult
XStoreIsLicenseValid
XStoreCloseLicenseHandle
XStoreRegisterPackageLicenseLost
XStoreUnregisterPackageLicenseLost
Manage and license downloadable content (DLC)
Last modified on August 20, 2026