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

# IGameInputDevice::AcquireExclusiveRawDeviceAccess (已淘汰)

> IGameInputDevice::AcquireExclusiveRawDeviceAccess

# IGameInputDevice::AcquireExclusiveRawDeviceAccess

> [!WARNING]
>
> **已淘汰。** 此方法已在 GameInput v1 中移除，目前的 API 中無法使用。

取得原始裝置介面的獨佔存取權，以防止其他應用程式讀取原始裝置報告。

## 語法

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

### 參數

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

等候授與獨佔存取權的時間長度，以微秒為單位。

### 傳回值

類型：HRESULT

傳回 E\_NOTIMPL，因為此方法在 v0 中從未實作。

## 備註

此方法已在 v1 中移除，作為簡化原始裝置存取模型的一部分。在目前的 API 中，原始裝置報告的存取是透過 [IGameInputRawDeviceReport](https://docs.xbox.com/zh-TW/reference/input/gameinput/interfaces/igameinputrawdevicereport/igameinputrawdevicereport.md) 介面處理。

## 版本歷程記錄

| 版本 | 變更 |
| - | - |
| **v1** | 已移除。 |
| **v0** | 推出。 |

## 另請參閱

[已淘汰的 GameInput API 成員](https://docs.xbox.com/zh-TW/reference/input/gameinput/deprecated/gameinput_deprecated_members.md)\
[IGameInputDevice::ReleaseExclusiveRawDeviceAccess](https://docs.xbox.com/zh-TW/reference/input/gameinput/deprecated/interfaces/igameinputdevice/methods/igameinputdevice_releaseexclusiverawdeviceaccess.md)\
[IGameInputDevice](https://docs.xbox.com/zh-TW/reference/input/gameinput/interfaces/igameinputdevice/igameinputdevice.md)


## Related topics

- [IGameInputDevice::ReleaseExclusiveRawDeviceAccess (已淘汰)](https://docs.xbox.com/zh-TW/reference/input/gameinput/deprecated/interfaces/igameinputdevice/methods/igameinputdevice_releaseexclusiverawdeviceaccess.md)
- [IGameInputDevice::ExecuteRawDeviceIoControl (已淘汰)](https://docs.xbox.com/zh-TW/reference/input/gameinput/deprecated/interfaces/igameinputdevice/methods/igameinputdevice_executerawdeviceiocontrol.md)
- [IGameInputDevice::GetRawDeviceFeature (已淘汰)](https://docs.xbox.com/zh-TW/reference/input/gameinput/deprecated/interfaces/igameinputdevice/methods/igameinputdevice_getrawdevicefeature.md)
- [IGameInputDevice::SetRawDeviceFeature (已淘汰)](https://docs.xbox.com/zh-TW/reference/input/gameinput/deprecated/interfaces/igameinputdevice/methods/igameinputdevice_setrawdevicefeature.md)
- [IGameInputDevice::PowerOff (已淘汰)](https://docs.xbox.com/zh-TW/reference/input/gameinput/deprecated/interfaces/igameinputdevice/methods/igameinputdevice_poweroff.md)
