Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Unregisters the specified store license lost callback.
Syntax
bool XStoreUnregisterPackageLicenseLost(
XStoreLicenseHandle licenseHandle,
XTaskQueueRegistrationToken token,
bool wait
)
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 unregister is pending. Returns true otherwise.
Remarks
Note
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. You will use the same XTaskQueueRegistrationToken generated by XStoreRegisterPackageLicenseLost to unregister the callback function. In order 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
See also
XStore
XStoreAcquireLicenseForPackageAsync
XStoreAcquireLicenseForPackageResult
XStoreIsLicenseValid
XStoreCloseLicenseHandle
XStoreRegisterPackageLicenseLost
XStorePackageLicenseLostCallback