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

# XGameInviteUnregisterForEvent (déprécié)

> XGameInviteUnregisterForEvent (déprécié)

# XGameInviteUnregisterForEvent (déprécié)

> [!NOTE]
>
> Cette API est désormais dépréciée. Utilisez plutôt [XGameActivationUnregisterForEvent](https://docs.xbox.com/fr/reference/system/xgameactivation/functions/xgameactivationunregisterforevent.md).

Désinscrit un rappel pour un événement d'invitation de jeu.

## Syntaxe

```cpp theme={null}
bool XGameInviteUnregisterForEvent(  
         XTaskQueueRegistrationToken token,  
         bool wait  
)  
```

### Paramètres

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

Jeton retourné par [XGameInviteRegisterForEvent](https://docs.xbox.com/fr/reference/system/xgameinvite/functions/xgameinviteregisterforevent.md).

*wait*   \_In\_\
Type : bool

Attendre la fin des rappels d'événement en attente.

### Valeur de retour

Type : bool

Retourne false si *wait* a la valeur false et que la désinscription est en attente. Retourne true dans le cas contraire.

## Remarques

> [!NOTE]
>
> Cette fonction ne peut pas être appelée sans risque sur un thread à durée critique. Pour plus d'informations, consultez [Threads à durée critique](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads).

Pour inscrire un rappel pour un événement d'invitation de jeu, appelez [XGameInviteRegisterForEvent](https://docs.xbox.com/fr/reference/system/xgameinvite/functions/xgameinviteregisterforevent.md). La fonction prend comme argument un pointeur vers un [XGameInviteEventCallback](https://docs.xbox.com/fr/reference/system/xgameinvite/functions/xgameinviteeventcallback.md).

Pour obtenir un exemple d'appel de cette fonction, consultez la section Remarques de la rubrique [XGameInviteEventCallback](https://docs.xbox.com/fr/reference/system/xgameinvite/functions/xgameinviteeventcallback.md#ID_XGameInviteEventCallback_Remarks).

## Configuration requise

**En-tête :** XGameInvite.h

**Bibliothèque :** xgameruntime.lib

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

## Documentation conceptuelle

* [Threads à durée critique](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads)

## Voir aussi

[XGameInvite](https://docs.xbox.com/fr/reference/system/xgameinvite/xgameinvite_members.md)

[XGameInviteRegisterForEvent](https://docs.xbox.com/fr/reference/system/xgameinvite/functions/xgameinviteregisterforevent.md)

[XGameInviteEventCallback](https://docs.xbox.com/fr/reference/system/xgameinvite/functions/xgameinviteeventcallback.md)


## Related topics

- [XGameInviteEventCallback (déprécié)](https://docs.xbox.com/fr/reference/system/xgameinvite/functions/xgameinviteeventcallback.md)
- [XGameInviteRegisterForEvent (déprécié)](https://docs.xbox.com/fr/reference/system/xgameinvite/functions/xgameinviteregisterforevent.md)
- [XGameInvite (déprécié)](https://docs.xbox.com/fr/reference/system/xgameinvite/xgameinvite_members.md)
- [XGameProtocolUnregisterForActivation (déprécié)](https://docs.xbox.com/fr/reference/system/xgameprotocol/functions/xgameprotocolunregisterforactivation.md)
- [Passer de MPSD à PlayFab Multiplayer et MPA](https://docs.xbox.com/fr/services/xbox-services/multiplayer/mpsd/concepts/live-mpsd-to-mlp.md)
