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

# XStoreCloseContextHandle

> XStoreCloseContextHandle

# XStoreCloseContextHandle

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

## Syntax

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

### Parameters

*storeContextHandle*   \_In\_\
型: XStoreContextHandle

閉じるハンドル。

### Return value

型: void

## Remarks

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

この関数は、[XStoreCreateContext](/reference/system/xstore/functions/xstorecreatecontext) によって作成された **XStoreContextHandle** を閉じます。この関数で閉じられなかったストア コンテキスト ハンドルはメモリ リークを引き起こします。クリーンアップ時にこの関数を呼び出して、残っているすべての **XStoreConextHandles** を閉じることが最も推奨されます。使用例については、[XStoreCreateContext](/reference/system/xstore/functions/xstorecreatecontext) を参照してください。

## 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](/reference/system/xstore/xstore_members)\
[XStoreCreateContext](/reference/system/xstore/functions/xstorecreatecontext)


## Related topics

- [XStoreCreateContext](/ja-jp/reference/system/xstore/functions/xstorecreatecontext.md)
- [GDK 向け Unity C# API ラッパー](/ja-jp/build/gdk-and-engines/unity/unity-api-wrappers.md)
- [XStoreCloseLicenseHandle](/ja-jp/reference/system/xstore/functions/xstorecloselicensehandle.md)
- [XStoreCloseProductsQueryHandle](/ja-jp/reference/system/xstore/functions/xstorecloseproductsqueryhandle.md)
- [XblContextCloseHandle](/ja-jp/reference/live/xsapi-c/xbox_live_context_c/functions/xblcontextclosehandle.md)
