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

Annule l'inscription d'un rappel de modification de l'association entre l'utilisateur et le périphérique inscrit précédemment.

## Syntaxe

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

### Paramètres

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

Le jeton que [XUserRegisterForDeviceAssociationChanged](https://docs.xbox.com/fr-CA/reference/system/xuser/functions/xuserregisterfordeviceassociationchanged.md) retourne lors de l'inscription du rappel.

*wait*   \
Type : bool

Spécifiez **true** pour attendre que l'inscription du rappel soit annulée; **false** pour retourner immédiatement.

### Valeur de retour

Type : bool

Retourne **true** si l'inscription du rappel est annulée avec succès; **false** sinon.

## Remarques

> [!NOTE]
>
> Il n'est pas sécuritaire d'appeler cette fonction sur un thread sensible au temps. Pour plus d'informations, consultez [Threads sensibles au temps](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 l'utilisateur et le périphérique, appelez [XUserRegisterForDeviceAssociationChanged](https://docs.xbox.com/fr-CA/reference/system/xuser/functions/xuserregisterfordeviceassociationchanged.md).

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

Pour annuler l'inscription d'un rappel de modification du point de terminaison audio par défaut inscrit précédemment, appelez [XUserUnregisterForDefaultAudioEndpointUtf16Changed](https://docs.xbox.com/fr-CA/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 sensibles au temps](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads)

## Voir aussi

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

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

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

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


## Related topics

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