XStoreCloseProductsQueryHandle

Closes the specified store products query handle.

Syntax

void XStoreCloseProductsQueryHandle(  
         XStoreProductQueryHandle productQueryHandle  
)  

Parameters

productQueryHandle   _In_
Type: XStoreProductQueryHandle

The handle to close.

Return value

Type: void

Remarks

This function is safe to call on a time-sensitive thread.

This function closes a product query handle returned by XStoreQueryProductForCurrentGameResult, XStoreQueryProductForPackageResult.md, XStoreQueryEntitledProductsResult, or XStoreQueryProductsResult. Failure to close an opened product query handle will result in a memory leak. See XStoreQueryAssociatedProductsAsync 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
XStoreQueryProductForCurrentGameResult
XStoreQueryProductForPackageResult.md
XStoreQueryEntitledProductsResult
XStoreQueryProductsResult