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

> IGameInputDevice::AcquireExclusiveRawDeviceAccess

# IGameInputDevice::AcquireExclusiveRawDeviceAccess

<Warning>**已弃用。** 此方法已在 GameInput v1 中移除，当前 API 中不再提供。</Warning>

获取对原始设备接口的独占访问权限，阻止其他应用程序读取原始设备报告。

## 语法

```cpp theme={null}
HRESULT AcquireExclusiveRawDeviceAccess(
    uint64_t timeoutInMicroseconds
);
```

### 参数

*timeoutInMicroseconds*   \_In\_\
类型：uint64\_t

等待授予独占访问权限的时长（以微秒为单位）。

### 返回值

类型：HRESULT

返回 E\_NOTIMPL，因为此方法在 v0 中从未实现。

## 备注

作为原始设备访问模型简化的一部分，此方法已在 v1 中移除。当前 API 中的原始设备报告访问通过 [IGameInputRawDeviceReport](/reference/input/gameinput/interfaces/igameinputrawdevicereport/igameinputrawdevicereport) 接口处理。

## 版本历史

| 版本     | 变更   |
| ------ | ---- |
| **v1** | 已移除。 |
| **v0** | 已引入。 |

## 另请参阅

[已弃用的 GameInput API 成员](/reference/input/gameinput/deprecated/gameinput_deprecated_members)\
[IGameInputDevice::ReleaseExclusiveRawDeviceAccess](/reference/input/gameinput/deprecated/interfaces/igameinputdevice/methods/igameinputdevice_releaseexclusiverawdeviceaccess)\
[IGameInputDevice](/reference/input/gameinput/interfaces/igameinputdevice/igameinputdevice)
