> ## 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.

# XStoreCloseContextHandle

> XStoreCloseContextHandle

# XStoreCloseContextHandle

指定されたストア コンテキスト ハンドルを閉じます。

## Syntax

```cpp theme={null}
void XStoreCloseContextHandle(  
         XStoreContextHandle storeContextHandle  
)  
```

### Parameters

*storeContextHandle*   \_In\_\
型: XStoreContextHandle

閉じるハンドル。

### Return value

型: void

## Remarks

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

この関数は、[XStoreCreateContext](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstorecreatecontext.md) によって作成された **XStoreContextHandle** を閉じます。この関数で閉じられなかったストア コンテキスト ハンドルはメモリ リークを引き起こします。クリーンアップ時にこの関数を呼び出して、残っているすべての **XStoreConextHandles** を閉じることが最も推奨されます。使用例については、[XStoreCreateContext](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstorecreatecontext.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)\
[XStoreCreateContext](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstorecreatecontext.md)


## Related topics

- [XStoreCreateContext](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstorecreatecontext.md)
- [Unity プロジェクトでの GDK API 用 C# ラッパーの使用](https://docs.xbox.com/ja-jp/build/gdk-and-engines/unity/unity-api-wrappers.md)
- [XStoreCloseLicenseHandle](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstorecloselicensehandle.md)
- [XblContextCloseHandle](https://docs.xbox.com/ja-jp/reference/live/xsapi-c/xbox_live_context_c/functions/xblcontextclosehandle.md)
- [XStoreCloseProductsQueryHandle](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstorecloseproductsqueryhandle.md)
