IDMLDeviceChild::GetDevice method (directml.h)

Retrieves the DirectML device that was used to create this object.

Syntax

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

Parameters

riid

Type: REFIID

A reference to the globally unique identifier (GUID) of the interface that you wish to be returned in ppv. This is expected to be the GUID of IDMLDevice.

[out] ppv

Type: void**

A pointer to a memory block that receives a pointer to the DirectML device. This is the address of a pointer to an IDMLDevice, representing the DirectML device.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Target Platform Windows
Header directml.h
Library DirectML.lib
DLL DirectML.dll

See also

IDMLDeviceChild