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

Creates a new buffer represented by an [IGameInputRawDeviceReport](/reference/input/gameinput/interfaces/igameinputrawdevicereport/igameinputrawdevicereport) instance.

## Syntax

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

### Parameters

*reportId*   \_In\_<br />
Type: uint32\_t

Device-defined ID for the created [InputRawDeviceReport](/reference/input/gameinput/interfaces/igameinputrawdevicereport/igameinputrawdevicereport) interface.

*reportKind*   \_In\_<br />
Type: [GameInputRawDeviceReportKind](/reference/input/gameinput/enums/gameinputrawdevicereportkind)

Defines the type of raw device report to create.
The `GameInputRawDeviceReportKind` enumeration only accepts the values of the `GameInputRawFeatureReport` and `GameInputRawOutputReport` constants.

*report*   \_COM\_Outptr\_<br />
Type: IGameInputRawDeviceReport\*\*

The resulting `IGameInputRawDeviceReport` instance.

### Return value

Type: HRESULT

Function result.

## Remarks

The `CreateRawDeviceReport` method creates a buffer that is used to send raw information to the device. It is represented by the `IGameInputRawDeviceReport` instance. For intermediate and advanced use-cases of the GameInput API, see [Advanced GameInput topics](/build/core-features/common/input/advanced/input-advanced-topics).

## Requirements

**Header:** GameInput.h

**Library:** xgameruntime.lib

**Supported platforms:** Windows, XBOX One family consoles and XBOX Series consoles

[Overview of GameInput](/build/core-features/common/input/overviews/input-overview)\
[IGameInputDevice](/reference/input/gameinput/interfaces/igameinputdevice/igameinputdevice)

## Version History

| Version | Changes                     |
| ------- | --------------------------- |
| **v3**  | Re-introduced (simplified). |
| **v1**  | Removed.                    |
| **v0**  | Introduced.                 |


## Related topics

- [GameInputRawDeviceReportKind](/reference/input/gameinput/enums/gameinputrawdevicereportkind.md)
- [IGameInputDevice](/reference/input/gameinput/interfaces/igameinputdevice/igameinputdevice.md)
- [IGameInputRawDeviceReport](/reference/input/gameinput/interfaces/igameinputrawdevicereport/igameinputrawdevicereport.md)
- [IGameInputDevice::GetRawDeviceFeature](/reference/input/gameinput/deprecated/interfaces/igameinputdevice/methods/igameinputdevice_getrawdevicefeature.md)
- [IGameInputDevice::SetRawDeviceFeature](/reference/input/gameinput/deprecated/interfaces/igameinputdevice/methods/igameinputdevice_setrawdevicefeature.md)
