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

# GetDeviceId

> ILampArray::GetDeviceId

# ILampArray::GetDeviceId

ILampArray のシステム生成の ID を返します。

## 構文

```cpp theme={null}
void GetDeviceId(
    APP_LOCAL_DEVICE_ID* deviceId)
```

### パラメーター

*deviceId*  \_Out\_
Type: APP\_LOCAL\_DEVICE\_ID\*

デバイス ID がコピーされる APP\_LOCAL\_DEVICE\_ID 構造体へのポインター。

### 戻り値

Type: void

## 解説

*application-local device ID* とは、アプリケーションの再起動やシステムの再起動を経てもデバイスを一意に識別する特別な 32 バイトの値です。この ID は、ワイヤレス デバイスの切断と再接続や、同じ USB ポートに差し戻される限りは有線 USB デバイスの切断と再接続を経ても安定しています。

初回リリースでは、この関数はすべてゼロの値を設定します。

## 要件

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

**ライブラリ:** xgameplatform.lib

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

## 関連項目

[Lighting API の概要](https://docs.xbox.com/ja-jp/build/core-features/common/lighting/gc-lighting-toc.md)\
[ILampArray](https://docs.xbox.com/ja-jp/reference/lighting/lamparray/interfaces/ilamparray/ilamparray.md)


## Related topics

- [ILampArray (インターフェイスの内容)](https://docs.xbox.com/ja-jp/reference/lighting/lamparray/interfaces/ilamparray/ilamparray.md)
- [post_decode_audio_sink_stream::get_device_id](https://docs.xbox.com/ja-jp/reference/chat/gamechat2/classes/post_decode_audio_sink_stream/methods/post_decode_audio_sink_stream_get_device_id.md)
- [XInputGetDeviceId](https://docs.xbox.com/ja-jp/reference/input/xinputongameinput/functions/xinputgetdeviceid.md)
- [XSystemGetAppSpecificDeviceId](https://docs.xbox.com/ja-jp/reference/system/xsystem/functions/xsystemgetappspecificdeviceid.md)
- [APP_LOCAL_DEVICE_ID](https://docs.xbox.com/ja-jp/reference/system/xuser/structs/app_local_device_id.md)
