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

지정된 스토어 컨텍스트 핸들을 닫습니다.

## 구문

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

### 매개 변수

*storeContextHandle*   \_In\_\
형식: XStoreContextHandle

닫을 핸들입니다.

### 반환 값

형식: void

## 설명

이 함수는 시간에 민감한 스레드에서 안전하게 호출할 수 있습니다.

이 함수는 [XStoreCreateContext](/reference/system/xstore/functions/xstorecreatecontext)에서 만든 **XStoreContextHandle**을 닫습니다. 이 함수로 닫히지 않은 스토어 컨텍스트 핸들은 메모리 누수를 발생시킵니다. 정리 중에 이 함수를 호출하여 남아 있는 모든 **XStoreConextHandles**를 닫는 것이 가장 좋습니다. 사용 예제는 [XStoreCreateContext](/reference/system/xstore/functions/xstorecreatecontext)를 참조하세요.

## 요구 사항

**헤더:** XStore.h(XGameRuntime.h에 포함됨)

**라이브러리:** xgameruntime.lib

**지원 플랫폼:** Windows, XBOX One 제품군 콘솔 및 XBOX Series 콘솔

## 개념 설명서

* [Time-sensitive threads](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads)

## 참고 항목

[XStore](/reference/system/xstore/xstore_members)\
[XStoreCreateContext](/reference/system/xstore/functions/xstorecreatecontext)


## Related topics

- [XStoreCreateContext](/ko/reference/system/xstore/functions/xstorecreatecontext.md)
- [GDK용 Unity C# API 래퍼](/ko/build/gdk-and-engines/unity/unity-api-wrappers.md)
- [XStore](/ko/reference/system/xstore/xstore_members.md)
- [XStoreCloseLicenseHandle](/ko/reference/system/xstore/functions/xstorecloselicensehandle.md)
- [XStoreCloseProductsQueryHandle](/ko/reference/system/xstore/functions/xstorecloseproductsqueryhandle.md)
