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

# IGameInput::FindDeviceFromPlatformHandle

> IGameInput::FindDeviceFromPlatformHandle

# IGameInput::FindDeviceFromPlatformHandle

<Warning>**Preterido.** Este método foi removido no GameInput v1 e não está disponível na API atual.</Warning>

Recupera uma interface [IGameInputDevice](/pt-BR/reference/input/gameinput/interfaces/igameinputdevice/igameinputdevice) com base em um identificador de janela ou de arquivo correspondente da plataforma.

## Sintaxe

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

### Parâmetros

*value*   \_In\_\
Tipo: HANDLE

Um HANDLE da plataforma (como um identificador de janela ou um identificador de arquivo de dispositivo) a ser comparado.

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

A interface [IGameInputDevice](/pt-BR/reference/input/gameinput/interfaces/igameinputdevice/igameinputdevice) retornada.

### Valor retornado

Tipo: HRESULT

Retorna E\_NOTIMPL, pois este método nunca foi implementado na v0.

## Comentários

Este método permitia que os aplicativos encontrassem um dispositivo GameInput usando um identificador Win32 associado a esse dispositivo. Ele foi removido na v1. Em vez disso, use [FindDeviceFromId](/pt-BR/reference/input/gameinput/interfaces/igameinput/methods/igameinput_finddevicefromid) ou [FindDeviceFromPlatformString](/pt-BR/reference/input/gameinput/interfaces/igameinput/methods/igameinput_finddevicefromplatformstring).

## Histórico de versões

| Versão | Alterações |
| - | - |
| **v1** | Removido. |
| **v0** | Introduzido. |

## Confira também

[Membros preteridos da API GameInput](/pt-BR/reference/input/gameinput/deprecated/gameinput_deprecated_members)\
[IGameInput::FindDeviceFromId](/pt-BR/reference/input/gameinput/interfaces/igameinput/methods/igameinput_finddevicefromid)\
[IGameInput::FindDeviceFromPlatformString](/pt-BR/reference/input/gameinput/interfaces/igameinput/methods/igameinput_finddevicefromplatformstring)\
[IGameInput](/pt-BR/reference/input/gameinput/interfaces/igameinput/igameinput)


## Related topics

- [IGameInput::FindDeviceFromPlatformHandle](/reference/input/gameinput/deprecated/interfaces/igameinput/methods/igameinput_finddevicefromplatformhandle.md)
- [IGameInput::FindDeviceFromPlatformString](/reference/input/gameinput/interfaces/igameinput/methods/igameinput_finddevicefromplatformstring.md)
