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

# XStoreGameLicenseChangedCallback

> XStoreGameLicenseChangedCallback

# XStoreGameLicenseChangedCallback

Devolución de llamada definida por el juego para el evento de cambio de licencia del juego.

## Sintaxis

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

### Parámetros

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

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

### Valor devuelto

Tipo: void

## Comentarios

Un evento de cambio de licencia del juego se produce cuando se realiza una compra relacionada con el juego actual en este dispositivo o cuando se actualiza la licencia del juego y el juego pasa de una licencia de prueba a una licencia completa. Cuando se produce dicho evento, se llama a **XStoreGameLicenseChangedCallback**. Para que se llame a esta función definida por el juego, primero debe registrarse con la función [XStoreRegisterGameLicenseChanged](/reference/system/xstore/functions/xstoreregistergamelicensechanged). La función debe coincidir con el tipo de valor devuelto y los parámetros de **XStoreGameLicenseChangedCallback**. Para evitar una pérdida de memoria, debe llamar a [XStoreUnregisterGameLicenseChanged](/reference/system/xstore/functions/xstoreunregistergamelicensechanged) 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)\
[XStoreRegisterGameLicenseChanged](/reference/system/xstore/functions/xstoreregistergamelicensechanged)\
[XStoreUnregisterGameLicenseChanged](/reference/system/xstore/functions/xstoreunregistergamelicensechanged)


## Related topics

- [XStoreUnregisterGameLicenseChanged](/es/reference/system/xstore/functions/xstoreunregistergamelicensechanged.md)
- [XStoreRegisterGameLicenseChanged](/es/reference/system/xstore/functions/xstoreregistergamelicensechanged.md)
- [XStore](/es/reference/system/xstore/xstore_members.md)
- [XStorePackageLicenseLostCallback](/es/reference/system/xstore/functions/xstorepackagelicenselostcallback.md)
- [XStoreCreateContext](/es/reference/system/xstore/functions/xstorecreatecontext.md)
