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

# GetProductId

> 傳回 LampArray 周邊裝置所回報的 USB 產品識別碼，讓遊戲能偵測特定硬體型號以套用自訂照明效果。

# ILampArray::GetProductId

擷取 ILampArray 的硬體產品識別碼。

## 語法

```cpp theme={null}
uint16_t GetProductId(
)
```

### 參數

此方法沒有參數。

### 傳回值

類型：uint16\_t

硬體產品識別碼。

## 需求

**標頭：** LampArray.h

**程式庫：** xgameplatform.lib

**支援的平台：** XBOX One 系列主機和 XBOX Series 主機

## 另請參閱

[照明 API 概觀](https://docs.xbox.com/zh-TW/build/core-features/common/lighting/gc-lighting-toc.md)\
[ILampArray](https://docs.xbox.com/zh-TW/reference/lighting/lamparray/interfaces/ilamparray/ilamparray.md)


## Related topics

- [ILampArray (介面內容)](https://docs.xbox.com/zh-TW/reference/lighting/lamparray/interfaces/ilamparray/ilamparray.md)
- [XStoreQueryAssociatedProductsForStoreIdAsync](https://docs.xbox.com/zh-TW/reference/system/xstore/functions/xstorequeryassociatedproductsforstoreidasync.md)
- [XStoreQueryAssociatedProductsForStoreIdResult](https://docs.xbox.com/zh-TW/reference/system/xstore/functions/xstorequeryassociatedproductsforstoreidresult.md)
- [Get Multiplayer Session Logs By Session Id](https://docs.xbox.com/api-reference/multiplayerserver/get-multiplayer-session-logs-by-session-id.md)
- [Get All Segments](https://docs.xbox.com/api-reference/playstream/get-all-segments.md)
