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

# XStoreCloseLicenseHandle

> XStoreCloseLicenseHandle

# XStoreCloseLicenseHandle

Fecha o identificador de licença da loja especificado.

## Sintaxe

```cpp theme={null}
void XStoreCloseLicenseHandle(  
         XStoreLicenseHandle storeLicenseHandle  
)  
```

### Parâmetros

*storeLicenseHandle*   \_In\_\
Tipo: XStoreLicenseHandle

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 **XStoreLicenseHandle** retornado por [XStoreAcquireLicenseForPackageResult](/pt-BR/reference/system/xstore/functions/xstoreacquirelicenseforpackageresult). Certifique-se de fechar cada **XStoreLicenseHandle** quando ele não estiver mais sendo usado para evitar um vazamento de memória. Consulte [XStoreAcquireLicenseForPackageAsync](/pt-BR/reference/system/xstore/functions/xstoreacquirelicenseforpackageasync) 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)
* [Concedendo aos jogadores acesso a conteúdo complementar](/pt-BR/publishing/xstore-commerce/xstore-granting-access)

## Confira também

[XStore](/pt-BR/reference/system/xstore/xstore_members)\
[XStoreAcquireLicenseForPackageAsync](/pt-BR/reference/system/xstore/functions/xstoreacquirelicenseforpackageasync)\
[XStoreAcquireLicenseForPackageResult](/pt-BR/reference/system/xstore/functions/xstoreacquirelicenseforpackageresult)\
[XStoreIsLicenseValid](/pt-BR/reference/system/xstore/functions/xstoreislicensevalid)\
[XStoreCloseLicenseHandle](/pt-BR/reference/system/xstore/functions/xstorecloselicensehandle)\
[XStoreRegisterPackageLicenseLost](/pt-BR/reference/system/xstore/functions/xstoreregisterpackagelicenselost)\
[XStoreUnregisterPackageLicenseLost](/pt-BR/reference/system/xstore/functions/xstoreunregisterpackagelicenselost)


## Related topics

- [XStoreCloseLicenseHandle](/reference/system/xstore/functions/xstorecloselicensehandle.md)
- [XStoreIsLicenseValid](/reference/system/xstore/functions/xstoreislicensevalid.md)
- [XStoreAcquireLicenseForPackageResult](/reference/system/xstore/functions/xstoreacquirelicenseforpackageresult.md)
