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

# XUserUnregisterForDeviceAssociationChanged

> XUserUnregisterForDeviceAssociationChanged

# XUserUnregisterForDeviceAssociationChanged

Désinscrit un rappel de modification de l'association entre utilisateur et appareil précédemment inscrit.

## Syntaxe

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

### Paramètres

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

Jeton renvoyé par [XUserRegisterForDeviceAssociationChanged](https://docs.xbox.com/fr/reference/system/xuser/functions/xuserregisterfordeviceassociationchanged.md) lors de l'inscription du rappel.

*wait*   \
Type : bool

Spécifiez **true** pour attendre que le rappel soit désinscrit ; **false** pour renvoyer immédiatement.

### Valeur de retour

Type : bool

Renvoie **true** si le rappel est correctement désinscrit ; **false** dans le cas contraire.

## Remarques

> [!NOTE]
>
> Cette fonction ne peut pas être appelée en toute sécurité 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 les événements de modification de l'association entre utilisateur et appareil, appelez [XUserRegisterForDeviceAssociationChanged](https://docs.xbox.com/fr/reference/system/xuser/functions/xuserregisterfordeviceassociationchanged.md).

Pour inscrire un rappel défini par l'application et invoqué lorsque le point de terminaison audio par défaut change, appelez [XUserRegisterForDefaultAudioEndpointUtf16Changed](https://docs.xbox.com/fr/reference/system/xuser/functions/xuserregisterfordefaultaudioendpointutf16changed.md).

Pour désinscrire un rappel de modification du point de terminaison audio par défaut précédemment inscrit, appelez [XUserUnregisterForDefaultAudioEndpointUtf16Changed](https://docs.xbox.com/fr/reference/system/xuser/functions/xuserunregisterfordefaultaudioendpointutf16changed.md).

## Configuration requise

**En-tête :** XUser.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

[XUser](https://docs.xbox.com/fr/reference/system/xuser/xuser_members.md)

[XUserRegisterForDeviceAssociationChanged](https://docs.xbox.com/fr/reference/system/xuser/functions/xuserregisterfordeviceassociationchanged.md)

[XUserRegisterForDefaultAudioEndpointUtf16Changed](https://docs.xbox.com/fr/reference/system/xuser/functions/xuserregisterfordefaultaudioendpointutf16changed.md)

[XUserUnregisterForDefaultAudioEndpointUtf16Changed](https://docs.xbox.com/fr/reference/system/xuser/functions/xuserunregisterfordefaultaudioendpointutf16changed.md)


## Related topics

- [XUserRegisterForDeviceAssociationChanged](https://docs.xbox.com/fr/reference/system/xuser/functions/xuserregisterfordeviceassociationchanged.md)
- [XUserRegisterForDefaultAudioEndpointUtf16Changed](https://docs.xbox.com/fr/reference/system/xuser/functions/xuserregisterfordefaultaudioendpointutf16changed.md)
- [XTaskQueueRegistrationToken](https://docs.xbox.com/fr/reference/system/xtaskqueue/structs/xtaskqueueregistrationtoken.md)
- [XUser (contenu de l'API)](https://docs.xbox.com/fr/reference/system/xuser/xuser_members.md)
- [Utilisation des wrappers C# pour les API GDK dans votre projet Unity](https://docs.xbox.com/fr/build/gdk-and-engines/unity/unity-api-wrappers.md)
