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

# IGameInputDevice::CreateRawDeviceReport

> IGameInputDevice::CreateRawDeviceReport

# IGameInputDevice::CreateRawDeviceReport

建立以 [IGameInputRawDeviceReport](/zh-TW/reference/input/gameinput/interfaces/igameinputrawdevicereport/igameinputrawdevicereport) 執行個體表示的新緩衝區。

## 語法

```cpp theme={null}
HRESULT CreateRawDeviceReport(
    uint32_t reportId,
    GameInputRawDeviceReportKind reportKind,
    IGameInputRawDeviceReport** report
)
```

### 參數

*reportId*   \_In\_<br />
類型：uint32\_t

所建立之 [InputRawDeviceReport](/zh-TW/reference/input/gameinput/interfaces/igameinputrawdevicereport/igameinputrawdevicereport) 介面的裝置定義識別碼。

*reportKind*   \_In\_<br />
類型：[GameInputRawDeviceReportKind](/zh-TW/reference/input/gameinput/enums/gameinputrawdevicereportkind)

定義要建立的原始裝置報告類型。
`GameInputRawDeviceReportKind` 列舉只接受 `GameInputRawFeatureReport` 和 `GameInputRawOutputReport` 常數的值。

*report*   \_COM\_Outptr\_<br />
類型：IGameInputRawDeviceReport\*\*

產生的 `IGameInputRawDeviceReport` 執行個體。

### 傳回值

類型：HRESULT

函式結果。

## 備註

`CreateRawDeviceReport` 方法會建立用來將原始資訊傳送至裝置的緩衝區。此緩衝區以 `IGameInputRawDeviceReport` 執行個體表示。如需 GameInput API 的中階和進階使用案例，請參閱 [GameInput 進階主題](/zh-TW/build/core-features/common/input/advanced/input-advanced-topics)。

## 需求

**標頭：** GameInput.h

**程式庫：** xgameruntime.lib

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

[GameInput 概觀](/zh-TW/build/core-features/common/input/overviews/input-overview)\
[IGameInputDevice](/zh-TW/reference/input/gameinput/interfaces/igameinputdevice/igameinputdevice)

## 版本歷程記錄

| 版本 | 變更 |
| - | - |
| **v3** | 重新推出 (簡化版)。 |
| **v1** | 已移除。 |
| **v0** | 已推出。 |


## Related topics

- [IGameInputDevice::CreateRawDeviceReport](/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_createrawdevicereport.md)
- [GameInputRawDeviceReportKind](/reference/input/gameinput/enums/gameinputrawdevicereportkind.md)
- [IGameInputDevice](/reference/input/gameinput/interfaces/igameinputdevice/igameinputdevice.md)
- [IGameInputRawDeviceReport](/reference/input/gameinput/interfaces/igameinputrawdevicereport/igameinputrawdevicereport.md)
