Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IDXGIDeviceSubObject::GetDevice method

Retrieves the device.

Syntax


HRESULT GetDevice(
  [in]  REFIID riid,
  [out] void   **ppDevice
);

Parameters

riid [in]

Type: REFIID

The reference id for the device.

ppDevice [out]

Type: void**

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

DXGI.h

Library

DXGI.lib

See also

IDXGIDeviceSubObject
DXGI Interfaces

 

 

Show:
© 2017 Microsoft