Skip to main content

XStoreCloseLicenseHandle

Closes the specified store license handle.

Syntax

Parameters

storeLicenseHandle   _In_
Type: XStoreLicenseHandle
The handle to close.

Return value

Type: void

Remarks

This function is safe to call on a time-sensitive thread. This function closes the XStoreLicenseHandle returned by XStoreAcquireLicenseForPackageResult. Make sure to close each XStoreLicenseHandle when it is no longer being used to avoid a memory leak. See XStoreAcquireLicenseForPackageAsync 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

Conceptual documentation

See also

XStore
XStoreAcquireLicenseForPackageAsync
XStoreAcquireLicenseForPackageResult
XStoreIsLicenseValid
XStoreCloseLicenseHandle
XStoreRegisterPackageLicenseLost
XStoreUnregisterPackageLicenseLost
Last modified on August 20, 2026