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

# XStorePackageLicenseLostCallback

> XStorePackageLicenseLostCallback

# XStorePackageLicenseLostCallback

Retorno de chamada definido pelo jogo para o evento de perda de licença.

## Sintaxe

```cpp theme={null}
void XStorePackageLicenseLostCallback(  
         void* context  
)  
```

### Parâmetros

*context*   \_In\_\
Tipo: void\*

Contexto definido pelo jogo a ser passado para o retorno de chamada.

### Valor retornado

Tipo: void

## Comentários

Para que esta função definida pelo jogo seja chamada, ela deve primeiro ser registrada com a função [XStoreRegisterPackageLicenseLost](/pt-BR/reference/system/xstore/functions/xstoreregisterpackagelicenselost). A função deve corresponder ao tipo de retorno e aos parâmetros de **XStorePackageLicenseLostCallback**. Para evitar um vazamento de memória, você deve chamar [XStoreUnregisterPackageLicenseLost](/pt-BR/reference/system/xstore/functions/xstoreunregisterpackagelicenselost) quando terminar de usar a função de retorno de chamada.

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

## Confira também

[XStore](/pt-BR/reference/system/xstore/xstore_members)\
[XStoreRegisterPackageLicenseLost](/pt-BR/reference/system/xstore/functions/xstoreregisterpackagelicenselost)\
[XStoreUnregisterPackageLicenseLost](/pt-BR/reference/system/xstore/functions/xstoreunregisterpackagelicenselost)


## Related topics

- [XStorePackageLicenseLostCallback](/reference/system/xstore/functions/xstorepackagelicenselostcallback.md)
- [XStoreUnregisterPackageLicenseLost](/reference/system/xstore/functions/xstoreunregisterpackagelicenselost.md)
- [XStoreRegisterPackageLicenseLost](/reference/system/xstore/functions/xstoreregisterpackagelicenselost.md)
