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

# XStoreUnregisterGameLicenseChanged

> XStoreUnregisterGameLicenseChanged

# XStoreUnregisterGameLicenseChanged

Annule l'inscription du rappel de modification de licence de titre spécifié.

## Syntaxe

```cpp theme={null}
bool XStoreUnregisterGameLicenseChanged(  
         XStoreContextHandle storeContextHandle,  
         XTaskQueueRegistrationToken token,  
         bool wait  
)  
```

### Paramètres

*storeContextHandle*   \_In\_\
Type : XStoreContextHandle

Handle de contexte du magasin pour l'utilisateur, retourné par [XStoreCreateContext](/fr-CA/reference/system/xstore/functions/xstorecreatecontext).

*token*   \_In\_\
Type : [XTaskQueueRegistrationToken](/fr-CA/reference/system/xtaskqueue/structs/xtaskqueueregistrationtoken)

Un jeton identifiant le rappel dont l'inscription doit être annulée.

*wait*   \_In\_\
Type : bool

Attendre la fin de tous les rappels d'événements en attente.

### Valeur de retour

Type : bool

Retourne false si *wait* est false et que l'annulation de l'inscription est en attente. Retourne true dans les autres cas.

## Remarques

<Note>Il n'est pas sécuritaire d'appeler cette fonction sur un thread urgent. Pour plus d'informations, consultez [Threads urgents](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads).</Note>

Cette fonction annule l'inscription de la fonction de rappel définie par [XStoreGameLicenseChangedCallback](/fr-CA/reference/system/xstore/functions/xstoregamelicensechangedcallback). Vous utiliserez le même **XTaskQueueRegistrationToken** généré par [XStoreRegisterGameLicenseChanged](/fr-CA/reference/system/xstore/functions/xstoreregistergamelicensechanged) pour annuler l'inscription de la fonction de rappel. Afin d'éviter une fuite de mémoire, l'inscription de chaque fonction inscrite avec [XStoreRegisterGameLicenseChanged](/fr-CA/reference/system/xstore/functions/xstoreregistergamelicensechanged) doit être annulée par **XStoreUnregisterGameLicenseChanged** lorsque la fonction de rappel n'est plus nécessaire.

Consultez [XStoreCreateContext](/fr-CA/reference/system/xstore/functions/xstorecreatecontext) pour un exemple d'utilisation.

## Configuration requise

**En-tête :** XStore.h (inclus dans XGameRuntime.h)

**Bibliothèque :** xgameruntime.lib

**Plateformes prises en charge :** Windows, consoles de la famille XBOX One et consoles XBOX Series

## Documentation conceptuelle

* [Threads urgents](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads)

## Voir aussi

[XStore](/fr-CA/reference/system/xstore/xstore_members)\
[XStoreRegisterGameLicenseChanged](/fr-CA/reference/system/xstore/functions/xstoreregistergamelicensechanged)\
[XStoreGameLicenseChangedCallback](/fr-CA/reference/system/xstore/functions/xstoregamelicensechangedcallback)


## Related topics

- [XStoreUnregisterGameLicenseChanged](/reference/system/xstore/functions/xstoreunregistergamelicensechanged.md)
- [XStoreRegisterGameLicenseChanged](/ko/reference/system/xstore/functions/xstoreregistergamelicensechanged.md)
- [XStoreGameLicenseChangedCallback](/ko/reference/system/xstore/functions/xstoregamelicensechangedcallback.md)
