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

> IGameInputDevice::ExecuteRawDeviceIoControl

# IGameInputDevice::ExecuteRawDeviceIoControl

<Warning>**非推奨。** このメソッドは GameInput v1 で削除され、現在の API では利用できません。</Warning>

I/O 制御コードを生の HID デバイスへ直接送信します。

## 構文

```cpp theme={null}
HRESULT ExecuteRawDeviceIoControl(
    uint32_t controlCode,
    size_t inputBufferSize,
    const void* inputBuffer,
    size_t outputBufferSize,
    void* outputBuffer,
    size_t* outputSizeWritten
);
```

### パラメーター

*controlCode*   \_In\_\
型: uint32\_t

送信する I/O 制御コードです。

*inputBufferSize*   \_In\_\
型: size\_t

`inputBuffer` のサイズ (バイト単位) です。

*inputBuffer*   \_In\_reads\_bytes\_opt\_(inputBufferSize)\_\
型: const void\*

入力データ バッファへのポインターです。

*outputBufferSize*   \_In\_\
型: size\_t

`outputBuffer` のサイズ (バイト単位) です。

*outputBuffer*   \_Out\_writes\_bytes\_opt\_(outputBufferSize)\_\
型: void\*

出力データ バッファへのポインターです。

*outputSizeWritten*   \_Out\_opt\_\
型: size\_t\*

`outputBuffer` に書き込まれたバイト数です。

### 戻り値

型: HRESULT

このメソッドは v0 で実装されなかったため、E\_NOTIMPL を返します。

## 解説

このメソッドは、`AcquireExclusiveRawDeviceAccess` を通じて排他的な生デバイス アクセスを取得しているときに利用できました。生のデバイス アクセス モデルの簡素化の一環として v1 で削除されました。

## バージョン履歴

| バージョン  | 変更内容     |
| ------ | -------- |
| **v1** | 削除されました。 |
| **v0** | 導入されました。 |

## 関連項目

[非推奨の GameInput API メンバー](/reference/input/gameinput/deprecated/gameinput_deprecated_members)\
[IGameInputDevice::AcquireExclusiveRawDeviceAccess](/reference/input/gameinput/deprecated/interfaces/igameinputdevice/methods/igameinputdevice_acquireexclusiverawdeviceaccess)\
[IGameInputDevice](/reference/input/gameinput/interfaces/igameinputdevice/igameinputdevice)


## Related topics

- [IGameInputDevice::SetRawDeviceFeature](/ja-jp/reference/input/gameinput/deprecated/interfaces/igameinputdevice/methods/igameinputdevice_setrawdevicefeature.md)
- [IGameInputDevice::GetRawDeviceFeature](/ja-jp/reference/input/gameinput/deprecated/interfaces/igameinputdevice/methods/igameinputdevice_getrawdevicefeature.md)
- [IGameInputDevice::AcquireExclusiveRawDeviceAccess](/ja-jp/reference/input/gameinput/deprecated/interfaces/igameinputdevice/methods/igameinputdevice_acquireexclusiverawdeviceaccess.md)
- [IGameInputDevice::ReleaseExclusiveRawDeviceAccess](/ja-jp/reference/input/gameinput/deprecated/interfaces/igameinputdevice/methods/igameinputdevice_releaseexclusiverawdeviceaccess.md)
- [非推奨の GameInput API メンバー](/ja-jp/reference/input/gameinput/deprecated/gameinput_deprecated_members.md)
