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

# XStoreUnregisterPackageLicenseLost

> XStoreUnregisterPackageLicenseLost

# XStoreUnregisterPackageLicenseLost

Désinscrit le rappel de perte de licence du Store spécifié.

## Syntaxe

```cpp theme={null}
bool XStoreUnregisterPackageLicenseLost(  
         XStoreLicenseHandle licenseHandle,  
         XTaskQueueRegistrationToken token,  
         bool wait  
)  
```

### Paramètres

*licenseHandle*   \_In\_\
Type : XStoreLicenseHandle

Handle de licence auquel le rappel est associé.

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

Jeton identifiant le rappel à désinscrire.

*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* a la valeur false et que la désinscription du rappel est en attente.
Retourne true dans les autres cas.

## Remarques

<Note>Il n'est pas sûr 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 désinscrit la fonction de rappel définie par [XStorePackageLicenseLostCallback](/fr/reference/system/xstore/functions/xstorepackagelicenselostcallback).
Utilisez le même **XTaskQueueRegistrationToken** généré par [XStoreRegisterPackageLicenseLost](/fr/reference/system/xstore/functions/xstoreregisterpackagelicenselost) pour désinscrire la fonction de rappel.
Pour éviter une fuite de mémoire, chaque fonction inscrite avec [XStoreRegisterPackageLicenseLost](/fr/reference/system/xstore/functions/xstoreregisterpackagelicenselost) doit être désinscrite par **XStoreUnregisterPackageLicenseLost** lorsque la fonction de rappel n'est plus nécessaire.

Consultez [XStoreAcquireLicenseForPackageAsync](/fr/reference/system/xstore/functions/xstoreacquirelicenseforpackageasync) 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)
* [Accorder aux joueurs l'accès au contenu des extensions](/fr/publishing/xstore-commerce/xstore-granting-access)

## Voir aussi

[XStore](/fr/reference/system/xstore/xstore_members)\
[XStoreAcquireLicenseForPackageAsync](/fr/reference/system/xstore/functions/xstoreacquirelicenseforpackageasync)\
[XStoreAcquireLicenseForPackageResult](/fr/reference/system/xstore/functions/xstoreacquirelicenseforpackageresult)\
[XStoreIsLicenseValid](/fr/reference/system/xstore/functions/xstoreislicensevalid)\
[XStoreCloseLicenseHandle](/fr/reference/system/xstore/functions/xstorecloselicensehandle)\
[XStoreRegisterPackageLicenseLost](/fr/reference/system/xstore/functions/xstoreregisterpackagelicenselost)\
[XStorePackageLicenseLostCallback](/fr/reference/system/xstore/functions/xstorepackagelicenselostcallback)\
[Accorder aux joueurs l'accès au contenu des extensions](/fr/publishing/xstore-commerce/xstore-granting-access)


## Related topics

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