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

# GetDevice (consoles XBOX Series)

> Recupera o dispositivo.

Recupera o dispositivo.

## Sintaxe

```cpp theme={null}
HRESULT GetDevice(  
         REFIID riid,  
         void** ppDevice  
)  
```

### Parâmetros

*riid*   \_In\_\
Tipo: REFIID

A ID de referência do dispositivo.

*ppDevice*   \_Out\_\
Tipo: void\*\*

O endereço de um ponteiro para o dispositivo.

### Valor retornado

Tipo: HRESULT

Retorna S\_OK se bem-sucedido; caso contrário, retorna um código de erro. Para obter uma lista de códigos de erro, consulte [Códigos de retorno do Direct3D 12](https://learn.microsoft.com/en-us/windows/win32/direct3d12/d3d12-graphics-reference-returnvalues).

## Requisitos

**Cabeçalho:** d3d12\_xs.h

**Biblioteca:** d3d12\_xs.lib\
**Plataformas com suporte**: consoles XBOX Series

## Confira também

[IDXGIDeviceSubObject](/pt-BR/reference/graphics/d3d12_xs/interfaces/IDXGIDeviceSubObject/idxgidevicesubobject)


## Related topics

- [GetDevice](/reference/graphics/d3d12/interfaces/id3d12devicechild/methods/id3d12devicechild_getdevice_public.md)
- [IGameInputForceFeedbackEffect::GetDevice](/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/methods/igameinputforcefeedbackeffect_getdevice.md)
- [GetDeviceRemovedReason](/reference/graphics/d3d12/interfaces/id3d12device/methods/id3d12device_getdeviceremovedreason_public.md)
- [ILampArray::GetDeviceId method](/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getdeviceid.md)
- [post_decode_audio_sink_stream::get_device_id](/reference/chat/gamechat2/classes/post_decode_audio_sink_stream/methods/post_decode_audio_sink_stream_get_device_id.md)
