> ## 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](/zh-TW/reference/input/gameinput/interfaces/igameinputrawdevicereport/igameinputrawdevicereport) 介面處理。

## 版本歷程記錄

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

## 另請參閱

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


## Related topics

- [IGameInputDevice::AcquireExclusiveRawDeviceAccess](/reference/input/gameinput/deprecated/interfaces/igameinputdevice/methods/igameinputdevice_acquireexclusiverawdeviceaccess.md)
- [IGameInputDevice::ReleaseExclusiveRawDeviceAccess](/reference/input/gameinput/deprecated/interfaces/igameinputdevice/methods/igameinputdevice_releaseexclusiverawdeviceaccess.md)
