> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XStorePackageLicenseLostCallback

> XStorePackageLicenseLostCallback

# XStorePackageLicenseLostCallback

Devolución de llamada definida por el juego para el evento de pérdida de licencia.

## Sintaxis

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

### Parámetros

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

Contexto definido por el juego que se pasa a la devolución de llamada.

### Valor devuelto

Tipo: void

## Comentarios

Para que se llame a esta función definida por el juego, primero debe registrarse con la función [XStoreRegisterPackageLicenseLost](https://docs.xbox.com/es/reference/system/xstore/functions/xstoreregisterpackagelicenselost.md). La función debe coincidir con el tipo de valor devuelto y los parámetros de **XStorePackageLicenseLostCallback**. Para evitar una pérdida de memoria, debe llamar a [XStoreUnregisterPackageLicenseLost](https://docs.xbox.com/es/reference/system/xstore/functions/xstoreunregisterpackagelicenselost.md) cuando haya terminado con la función de devolución de llamada.

## Requisitos

**Encabezado:** XStore.h (incluido en XGameRuntime.h)

**Biblioteca:** xgameruntime.lib

**Plataformas compatibles:** Windows, consolas de la familia XBOX One y consolas XBOX Series

## Consulte también

[XStore](https://docs.xbox.com/es/reference/system/xstore/xstore_members.md)\
[XStoreRegisterPackageLicenseLost](https://docs.xbox.com/es/reference/system/xstore/functions/xstoreregisterpackagelicenselost.md)\
[XStoreUnregisterPackageLicenseLost](https://docs.xbox.com/es/reference/system/xstore/functions/xstoreunregisterpackagelicenselost.md)


## Related topics

- [XStoreUnregisterPackageLicenseLost](https://docs.xbox.com/es/reference/system/xstore/functions/xstoreunregisterpackagelicenselost.md)
- [XStoreRegisterPackageLicenseLost](https://docs.xbox.com/es/reference/system/xstore/functions/xstoreregisterpackagelicenselost.md)
- [XStore (contenido de la API)](https://docs.xbox.com/es/reference/system/xstore/xstore_members.md)
- [XStoreAcquireLicenseForPackageResult](https://docs.xbox.com/es/reference/system/xstore/functions/xstoreacquirelicenseforpackageresult.md)
- [XStoreAcquireLicenseForPackageAsync](https://docs.xbox.com/es/reference/system/xstore/functions/xstoreacquirelicenseforpackageasync.md)
