> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XStoreCloseProductsQueryHandle

> XStoreCloseProductsQueryHandle

# XStoreCloseProductsQueryHandle

关闭指定的应用商店产品查询句柄。

## 语法

```cpp theme={null}
void XStoreCloseProductsQueryHandle(  
         XStoreProductQueryHandle productQueryHandle  
)  
```

### 参数

*productQueryHandle*   \_In\_\
类型：XStoreProductQueryHandle

要关闭的句柄。

### 返回值

类型：void

## 备注

此函数可在时间敏感线程上安全调用。

此函数关闭由 [XStoreQueryProductForCurrentGameResult](/reference/system/xstore/functions/xstorequeryproductforcurrentgameresult)、[XStoreQueryProductForPackageResult.md](/reference/system/xstore/functions/xstorequeryproductforpackageresult)、[XStoreQueryEntitledProductsResult](/reference/system/xstore/functions/xstorequeryentitledproductsresult) 或 [XStoreQueryProductsResult](/reference/system/xstore/functions/xstorequeryproductsresult) 返回的产品查询句柄。未能关闭已打开的产品查询句柄将导致内存泄漏。有关用法示例，请参阅 [XStoreQueryAssociatedProductsAsync](/reference/system/xstore/functions/xstorequeryassociatedproductsasync)。

## 要求

**头文件：** XStore.h（包含于 XGameRuntime.h 中）

**库：** xgameruntime.lib

**支持的平台：** Windows、XBOX One 系列主机和 XBOX Series 主机

## 概念文档

* [时间敏感线程](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads)

## 另请参阅

[XStore](/reference/system/xstore/xstore_members)\
[XStoreQueryProductForCurrentGameResult](/reference/system/xstore/functions/xstorequeryproductforcurrentgameresult)\
[XStoreQueryProductForPackageResult.md](/reference/system/xstore/functions/xstorequeryproductforpackageresult)\
[XStoreQueryEntitledProductsResult](/reference/system/xstore/functions/xstorequeryentitledproductsresult)\
[XStoreQueryProductsResult](/reference/system/xstore/functions/xstorequeryproductsresult)


## Related topics

- [XStore](/zh-CN/reference/system/xstore/xstore_members.md)
- [面向 GDK 的 Unity C# API 包装器](/zh-CN/build/gdk-and-engines/unity/unity-api-wrappers.md)
- [XStoreEnumerateProductsQuery](/zh-CN/reference/system/xstore/functions/xstoreenumerateproductsquery.md)
- [XStoreQueryProductsResult](/zh-CN/reference/system/xstore/functions/xstorequeryproductsresult.md)
- [XStoreQueryAssociatedProductsResult](/zh-CN/reference/system/xstore/functions/xstorequeryassociatedproductsresult.md)
