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

# IGameInput::FindDeviceFromPlatformHandle (非推奨)

> IGameInput::FindDeviceFromPlatformHandle

# IGameInput::FindDeviceFromPlatformHandle

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

一致するプラットフォーム ウィンドウまたはファイル ハンドルに基づいて [IGameInputDevice](https://docs.xbox.com/ja-jp/reference/input/gameinput/interfaces/igameinputdevice/igameinputdevice.md) インターフェイスを取得します。

## 構文

```cpp theme={null}
HRESULT FindDeviceFromPlatformHandle(
    HANDLE value,
    IGameInputDevice** device
);
```

### パラメーター

*value*   \_In\_\
型: HANDLE

照合対象となるプラットフォーム HANDLE (ウィンドウ ハンドルまたはデバイス ファイル ハンドルなど) です。

*device*   \_COM\_Outptr\_\
型: IGameInputDevice\*\*

返される [IGameInputDevice](https://docs.xbox.com/ja-jp/reference/input/gameinput/interfaces/igameinputdevice/igameinputdevice.md) インターフェイスです。

### 戻り値

型: HRESULT

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

## 解説

このメソッドを使用すると、アプリケーションはそのデバイスに関連付けられた Win32 ハンドルを使って GameInput デバイスを見つけることができました。v1 で削除されました。代わりに [FindDeviceFromId](https://docs.xbox.com/ja-jp/reference/input/gameinput/interfaces/igameinput/methods/igameinput_finddevicefromid.md) または [FindDeviceFromPlatformString](https://docs.xbox.com/ja-jp/reference/input/gameinput/interfaces/igameinput/methods/igameinput_finddevicefromplatformstring.md) を使用してください。

## バージョン履歴

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

## 関連項目

[非推奨の GameInput API メンバー](https://docs.xbox.com/ja-jp/reference/input/gameinput/deprecated/gameinput_deprecated_members.md)\
[IGameInput::FindDeviceFromId](https://docs.xbox.com/ja-jp/reference/input/gameinput/interfaces/igameinput/methods/igameinput_finddevicefromid.md)\
[IGameInput::FindDeviceFromPlatformString](https://docs.xbox.com/ja-jp/reference/input/gameinput/interfaces/igameinput/methods/igameinput_finddevicefromplatformstring.md)\
[IGameInput](https://docs.xbox.com/ja-jp/reference/input/gameinput/interfaces/igameinput/igameinput.md)


## Related topics

- [IGameInput::FindDeviceFromObject (非推奨)](https://docs.xbox.com/ja-jp/reference/input/gameinput/deprecated/interfaces/igameinput/methods/igameinput_finddevicefromobject.md)
- [IGameInput::EnableOemDeviceSupport (非推奨)](https://docs.xbox.com/ja-jp/reference/input/gameinput/deprecated/interfaces/igameinput/methods/igameinput_enableoemdevicesupport.md)
- [IGameInput::FindDeviceFromPlatformString](https://docs.xbox.com/ja-jp/reference/input/gameinput/interfaces/igameinput/methods/igameinput_finddevicefromplatformstring.md)
- [非推奨の GameInput API メンバー](https://docs.xbox.com/ja-jp/reference/input/gameinput/deprecated/gameinput_deprecated_members.md)
- [IGameInputDevice::PowerOff (非推奨)](https://docs.xbox.com/ja-jp/reference/input/gameinput/deprecated/interfaces/igameinputdevice/methods/igameinputdevice_poweroff.md)
