Skip to main content

XStoreIsLicenseValid

Checks if the specified license is valid.

Syntax

Parameters

storeLicenseHandle   _In_
Type: XStoreLicenseHandle
A handle to the license.

Return value

Type: bool Returns true if the license is valid; returns false otherwise.

Remarks

This API is safe to call on time-sensitive threads. For a usage example, see XStoreAcquireLicenseForPackageAsync. Use XStoreIsLicenseValid to check if a valid license was returned by XStoreAcquireLicenseForPackageResult or XStoreAcquireLicenseForDurablesResult. If the license is valid, you can proceed with further setup, like registering license activity based callback functions.
This function only checks the static license state when it was originally obtained from the XStoreAcquireLicense* APIs. If you register with XStoreRegisterPackageLicenseLost and the license becomes invalid, you should reacquire a new license to get the correct state before calling this API again.

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
Granting players access to add-on content
Last modified on August 20, 2026