Skip to main content

XStoreUnregisterPackageLicenseLost

Unregisters the specified store license lost callback.

Syntax

Parameters

licenseHandle   _In_
Type: XStoreLicenseHandle
The license handle the callback is associated with. token   _In_
Type: XTaskQueueRegistrationToken
Token identifying the callback to be unregistered. wait   _In_
Type: bool
Wait for any pending event callbacks to complete.

Return value

Type: bool Returns false if wait is false and the callback is pending unregistration. Returns true otherwise.

Remarks

This function isn’t safe to call on a time-sensitive thread. For more information, see Time-sensitive threads.
This function unregisters the callback function defined by XStorePackageLicenseLostCallback. Use the same XTaskQueueRegistrationToken generated by XStoreRegisterPackageLicenseLost to unregister the callback function. To avoid a memory leak, each function registered with XStoreRegisterPackageLicenseLost must be unregistered by XStoreUnregisterPackageLicenseLost when the callback function is no longer needed. 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
XStorePackageLicenseLostCallback
Granting players access to add-on content
Last modified on August 20, 2026