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

Fecha o identificador de contexto da loja especificado.

## Sintaxe

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

### Parâmetros

*storeContextHandle*   \_In\_\
Tipo: XStoreContextHandle

O identificador a ser fechado.

### Valor retornado

Tipo: void

## Comentários

É seguro chamar esta função em um thread sensível ao tempo.

Esta função fecha o **XStoreContextHandle** criado por [XStoreCreateContext](/pt-BR/reference/system/xstore/functions/xstorecreatecontext). Identificadores de contexto da loja que não forem fechados com esta função causarão vazamentos de memória. É melhor chamar esta função durante a limpeza para fechar todos os **XStoreConextHandles** restantes. Consulte [XStoreCreateContext](/pt-BR/reference/system/xstore/functions/xstorecreatecontext) para obter um exemplo de uso.

## Requisitos

**Cabeçalho:** XStore.h (incluído em XGameRuntime.h)

**Biblioteca:** xgameruntime.lib

**Plataformas com suporte:** Windows, consoles da família XBOX One e consoles XBOX Series

## Documentação conceitual

* [Threads sensíveis ao tempo](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads)

## Confira também

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


## Related topics

- [XStoreCloseContextHandle](/es/reference/system/xstore/functions/xstoreclosecontexthandle.md)
- [XStoreCreateContext](/reference/system/xstore/functions/xstorecreatecontext.md)
- [XStore](/reference/system/xstore/xstore_members.md)
- [XStoreCloseLicenseHandle](/reference/system/xstore/functions/xstorecloselicensehandle.md)
- [XStoreCloseProductsQueryHandle](/reference/system/xstore/functions/xstorecloseproductsqueryhandle.md)
