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

# CreateRawDeviceReport

> IGameInputDevice::CreateRawDeviceReport

Creates a new buffer represented by an [IGameInputRawDeviceReport](https://docs.xbox.com/reference/input/gameinput/interfaces/igameinputrawdevicereport/igameinputrawdevicereport.md) instance.

## Syntax

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

### Parameters

*reportId*   \_In\_\

Type: uint32\_t

Device-defined ID for the created [InputRawDeviceReport](https://docs.xbox.com/reference/input/gameinput/interfaces/igameinputrawdevicereport/igameinputrawdevicereport.md) interface.

*reportKind*   \_In\_\

Type: [GameInputRawDeviceReportKind](https://docs.xbox.com/reference/input/gameinput/enums/gameinputrawdevicereportkind.md)

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\_\

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](https://docs.xbox.com/build/core-features/common/input/advanced/input-advanced-topics.md).

## Requirements

**Header:** GameInput.h

**Library:** xgameruntime.lib

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

[Overview of GameInput](https://docs.xbox.com/build/core-features/common/input/overviews/input-overview.md)\
[IGameInputDevice](https://docs.xbox.com/reference/input/gameinput/interfaces/igameinputdevice/igameinputdevice.md)

## Version History

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


## Related topics

- [GameInputRawDeviceReportKind](https://docs.xbox.com/reference/input/gameinput/enums/gameinputrawdevicereportkind.md)
- [IGameInputRawDeviceReport (Interface contents)](https://docs.xbox.com/reference/input/gameinput/interfaces/igameinputrawdevicereport/igameinputrawdevicereport.md)
- [IGameInputDevice (Interface contents)](https://docs.xbox.com/reference/input/gameinput/interfaces/igameinputdevice/igameinputdevice.md)
- [IGameInputRawDeviceReport::GetDevice](https://docs.xbox.com/reference/input/gameinput/interfaces/igameinputrawdevicereport/methods/igameinputrawdevicereport_getdevice.md)
- [GameInputRawDeviceReportInfo](https://docs.xbox.com/reference/input/gameinput/structs/gameinputrawdevicereportinfo.md)
