IDXGIDeviceSubObject::GetDevice Method

Retrieves the device.

Syntax

public:
HRESULT GetDevice(
         REFIID riid,
         void **ppDevice
)  

Parameters

riid
Type: REFIID 

[in] The reference id for the device.

ppDevice
Type: void **

[out] The address of a pointer to the device.

Return value

Type: HRESULT 

A code that indicates success or failure (see DXGI_ERROR).

Remarks

The type of interface that is returned can be any interface published by the device. For example, it could be an IDXGIDevice * called pDevice, and therefore the REFIID would be obtained by calling __uuidof(pDevice).

Requirements

Header: Declared in d3d11_x.h (dxgi.h on other Windows platforms).

Library: Use d3d11_x.lib (dxgi.lib on other Windows platforms).

See also

IDXGIDeviceSubObject

IDXGIDeviceSubObject Members