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

# XStoreCloseProductsQueryHandle

> XStoreCloseProductsQueryHandle

# XStoreCloseProductsQueryHandle

指定されたストア製品クエリ ハンドルを閉じます。

## Syntax

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

### Parameters

*productQueryHandle*   \_In\_\
型: XStoreProductQueryHandle

閉じるハンドル。

### Return value

型: void

## Remarks

この関数はタイム センシティブなスレッドで安全に呼び出すことができます。

この関数は、[XStoreQueryProductForCurrentGameResult](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstorequeryproductforcurrentgameresult.md)、[XStoreQueryProductForPackageResult.md](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstorequeryproductforpackageresult.md)、[XStoreQueryEntitledProductsResult](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstorequeryentitledproductsresult.md)、または [XStoreQueryProductsResult](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstorequeryproductsresult.md) から返される製品クエリ ハンドルを閉じます。開かれた製品クエリ ハンドルを閉じないと、メモリ リークが発生します。使用例については、[XStoreQueryAssociatedProductsAsync](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstorequeryassociatedproductsasync.md) を参照してください。

## Requirements

**ヘッダー:** XStore.h (XGameRuntime.h に含まれる)

**ライブラリ:** xgameruntime.lib

**サポートされているプラットフォーム:** Windows、XBOX One ファミリー本体および XBOX Series 本体

## Conceptual documentation

* [タイム センシティブなスレッド](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads)

## See also

[XStore](https://docs.xbox.com/ja-jp/reference/system/xstore/xstore_members.md)\
[XStoreQueryProductForCurrentGameResult](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstorequeryproductforcurrentgameresult.md)\
[XStoreQueryProductForPackageResult.md](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstorequeryproductforpackageresult.md)\
[XStoreQueryEntitledProductsResult](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstorequeryentitledproductsresult.md)\
[XStoreQueryProductsResult](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstorequeryproductsresult.md)


## Related topics

- [Unity プロジェクトでの GDK API 用 C# ラッパーの使用](https://docs.xbox.com/ja-jp/build/gdk-and-engines/unity/unity-api-wrappers.md)
- [XStore (API の内容)](https://docs.xbox.com/ja-jp/reference/system/xstore/xstore_members.md)
- [XStoreEnumerateProductsQuery](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstoreenumerateproductsquery.md)
- [XStoreQueryProductsResult](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstorequeryproductsresult.md)
- [XStoreQueryAssociatedProductsResult](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstorequeryassociatedproductsresult.md)
