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

# XUserDeviceAssociationChangedCallback

> XUserDeviceAssociationChangedCallback

# XUserDeviceAssociationChangedCallback

Rappel appelé lorsque l'association entre l'utilisateur et l'appareil change.

## Syntaxe

```cpp theme={null}
void XUserDeviceAssociationChangedCallback(  
         void* context,  
         const XUserDeviceAssociationChange* change  
)  
```

### Paramètres

*context*   \_In\_opt\_\
Type : void\*

Contexte que l'application définit et envoie à [XUserRegisterForDeviceAssociationChanged](/fr-CA/reference/system/xuser/functions/xuserregisterfordeviceassociationchanged) lors de l'inscription du rappel.

*change*   \_In\_\
Type : [XUserDeviceAssociationChange\*](/fr-CA/reference/system/xuser/structs/xuserdeviceassociationchange)

Structure qui contient les anciennes et les nouvelles associations d'appareils.

### Valeur de retour

Type : void

## Remarques

Pour inscrire un rappel pour les événements de changement d'association entre l'utilisateur et l'appareil, appelez [XUserRegisterForDeviceAssociationChanged](/fr-CA/reference/system/xuser/functions/xuserregisterfordeviceassociationchanged). La fonction prend comme argument un pointeur vers une fonction **XUserDeviceAssociationChangedCallback**. La fonction retourne le pointeur vers la fonction de rappel.

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

## Voir aussi

[XUser](/fr-CA/reference/system/xuser/xuser_members)

[XUserRegisterForDeviceAssociationChanged](/fr-CA/reference/system/xuser/functions/xuserregisterfordeviceassociationchanged)


## Related topics

- [XUserDeviceAssociationChangedCallback](/reference/system/xuser/functions/xuserdeviceassociationchangedcallback.md)
- [XUserDeviceAssociationChange](/reference/system/xuser/structs/xuserdeviceassociationchange.md)
