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

# XStoreUnregisterPackageLicenseLost

> XStoreUnregisterPackageLicenseLost

# XStoreUnregisterPackageLicenseLost

Annule l'inscription du rappel de perte de licence du magasin spécifié.

## Syntaxe

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

### Paramètres

*licenseHandle*   \_In\_\
Type : XStoreLicenseHandle

Le handle de licence auquel le rappel est associé.

*token*   \_In\_\
Type : [XTaskQueueRegistrationToken](https://docs.xbox.com/fr-CA/reference/system/xtaskqueue/structs/xtaskqueueregistrationtoken.md)

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 du rappel 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).

Cette fonction annule l'inscription de la fonction de rappel définie par [XStorePackageLicenseLostCallback](https://docs.xbox.com/fr-CA/reference/system/xstore/functions/xstorepackagelicenselostcallback.md).
Utilisez le même **XTaskQueueRegistrationToken** généré par [XStoreRegisterPackageLicenseLost](https://docs.xbox.com/fr-CA/reference/system/xstore/functions/xstoreregisterpackagelicenselost.md) pour annuler l'inscription de la fonction de rappel.
Pour éviter une fuite de mémoire, l'inscription de chaque fonction inscrite avec [XStoreRegisterPackageLicenseLost](https://docs.xbox.com/fr-CA/reference/system/xstore/functions/xstoreregisterpackagelicenselost.md) doit être annulée par **XStoreUnregisterPackageLicenseLost** lorsque la fonction de rappel n'est plus nécessaire.

Consultez [XStoreAcquireLicenseForPackageAsync](https://docs.xbox.com/fr-CA/reference/system/xstore/functions/xstoreacquirelicenseforpackageasync.md) 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](https://docs.xbox.com/fr-CA/publishing/xstore-commerce/xstore-granting-access.md)

## Voir aussi

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


## Related topics

- [XStorePackageLicenseLostCallback](https://docs.xbox.com/fr-CA/reference/system/xstore/functions/xstorepackagelicenselostcallback.md)
- [XStoreRegisterPackageLicenseLost](https://docs.xbox.com/fr-CA/reference/system/xstore/functions/xstoreregisterpackagelicenselost.md)
- [XStoreAcquireLicenseForPackageResult](https://docs.xbox.com/fr-CA/reference/system/xstore/functions/xstoreacquirelicenseforpackageresult.md)
- [XStoreCloseLicenseHandle](https://docs.xbox.com/fr-CA/reference/system/xstore/functions/xstorecloselicensehandle.md)
- [XStoreIsLicenseValid](https://docs.xbox.com/fr-CA/reference/system/xstore/functions/xstoreislicensevalid.md)
