XStoreCloseLicenseHandle

Closes the specified store license handle.

Syntax

void XStoreCloseLicenseHandle(  
         XStoreLicenseHandle storeLicenseHandle  
)  

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

See also

XStore
XStoreAcquireLicenseForPackageAsync
XStoreAcquireLicenseForPackageResult
XStoreIsLicenseValid
XStoreCloseLicenseHandle
XStoreRegisterPackageLicenseLost
XStoreUnregisterPackageLicenseLost