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

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](/reference/system/xstore/functions/xstoreregisterpackagelicenselost). 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](/reference/system/xstore/functions/xstoreunregisterpackagelicenselost) 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](/reference/system/xstore/xstore_members)\
[XStoreRegisterPackageLicenseLost](/reference/system/xstore/functions/xstoreregisterpackagelicenselost)\
[XStoreUnregisterPackageLicenseLost](/reference/system/xstore/functions/xstoreunregisterpackagelicenselost)


## Related topics

- [XStoreUnregisterPackageLicenseLost](/es/reference/system/xstore/functions/xstoreunregisterpackagelicenselost.md)
- [XStoreRegisterPackageLicenseLost](/es/reference/system/xstore/functions/xstoreregisterpackagelicenselost.md)
- [XStore](/es/reference/system/xstore/xstore_members.md)
- [XStoreAcquireLicenseForPackageResult](/es/reference/system/xstore/functions/xstoreacquirelicenseforpackageresult.md)
- [XStoreAcquireLicenseForPackageAsync](/es/reference/system/xstore/functions/xstoreacquirelicenseforpackageasync.md)
