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

# APP_LOCAL_DEVICE_ID

> APP_LOCAL_DEVICE_ID

# APP\_LOCAL\_DEVICE\_ID

Spécifie l'ID racine d'un périphérique d'entrée local.

## Syntaxe

```cpp theme={null}
typedef struct APP_LOCAL_DEVICE_ID {  
    BYTE value[APP_LOCAL_DEVICE_ID_SIZE];  
} APP_LOCAL_DEVICE_ID  
```

### Membres

*value*\
Type : BYTE\[APP\_LOCAL\_DEVICE\_ID\_SIZE]

L'ID racine d'un périphérique d'entrée local.

## Remarques

La méthode [IGameInput::FindDeviceFromId](/fr/reference/input/gameinput/interfaces/igameinput/methods/igameinput_finddevicefromid) utilise un pointeur vers une constante APP\_LOCAL\_DEVICE\_ID pour récupérer un appareil en fonction du DeviceID.

La fonction [XInputGetDeviceId](/fr/reference/input/xinputongameinput/functions/xinputgetdeviceid) utilise un pointeur vers une structure APP\_LOCAL\_DEVICE\_ID pour renvoyer l'APP\_LOCAL\_DEVICE\_ID de l'appareil situé à un index d'utilisateur donné.

La structure [XUserDeviceAssociationChange](/fr/reference/system/xuser/structs/xuserdeviceassociationchange) comprend un membre de structure APP\_LOCAL\_DEVICE\_ID.

La fonction [XUserFindForDevice](/fr/reference/system/xuser/functions/xuserfindfordevice) utilise un pointeur vers une structure APP\_LOCAL\_DEVICE\_ID pour récupérer un ID utilisateur correspondant à un ID d'appareil spécifique.

Un APP\_LOCAL\_DEVICE\_ID « null » sera égal à la valeur de **XUserNullDeviceId**.

## Configuration requise

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

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

## Voir aussi

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

[XUserLocalId](/fr/reference/system/xuser/structs/xuserlocalid)

[IGameInput::FindDeviceFromId](/fr/reference/input/gameinput/interfaces/igameinput/methods/igameinput_finddevicefromid)

[XInputGetDeviceId](/fr/reference/input/xinputongameinput/functions/xinputgetdeviceid)


## Related topics

- [APP_LOCAL_DEVICE_ID](/reference/system/xuser/structs/app_local_device_id.md)
- [ILampArray::GetDeviceId method](/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getdeviceid.md)
- [ILampArray::GetDeviceId](/ko/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getdeviceid.md)
- [Método ILampArray::GetDeviceId](/es/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getdeviceid.md)
- [XUserFindForDevice](/reference/system/xuser/functions/xuserfindfordevice.md)
