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

ローカル入力デバイスのルート ID を指定します。

## 構文

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

### メンバー

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

ローカル入力デバイスのルート ID です。

## 解説

[IGameInput::FindDeviceFromId](/reference/input/gameinput/interfaces/igameinput/methods/igameinput_finddevicefromid) メソッドは、APP\_LOCAL\_DEVICE\_ID 定数へのポインターを使用して、DeviceID に基づいてデバイスを取得します。

[XInputGetDeviceId](/reference/input/xinputongameinput/functions/xinputgetdeviceid) 関数は、APP\_LOCAL\_DEVICE\_ID 構造体へのポインターを使用して、指定したユーザー インデックスのデバイスの APP\_LOCAL\_DEVICE\_ID を返します。

[XUserDeviceAssociationChange](/reference/system/xuser/structs/xuserdeviceassociationchange) 構造体には、APP\_LOCAL\_DEVICE\_ID 構造体のメンバーが含まれます。

[XUserFindForDevice](/reference/system/xuser/functions/xuserfindfordevice) 関数は、APP\_LOCAL\_DEVICE\_ID 構造体へのポインターを使用して、特定のデバイス ID に対応するユーザー ID を取得します。

「null」の APP\_LOCAL\_DEVICE\_ID は、**XUserNullDeviceId** の値と等しくなります。

## 要件

**ヘッダー:** XUser.h

**サポートされているプラットフォーム:** Windows、XBOX One ファミリ本体および XBOX Series 本体

## 関連項目

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

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

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

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


## Related topics

- [ILampArray::GetDeviceId](/ja-jp/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getdeviceid.md)
- [IGameInput::FindDeviceFromId](/ja-jp/reference/input/gameinput/interfaces/igameinput/methods/igameinput_finddevicefromid.md)
- [XUserFindForDevice](/ja-jp/reference/system/xuser/functions/xuserfindfordevice.md)
- [XInputGetDeviceId](/ja-jp/reference/input/xinputongameinput/functions/xinputgetdeviceid.md)
- [XUserDeviceAssociationChange](/ja-jp/reference/system/xuser/structs/xuserdeviceassociationchange.md)
