interop::GetDXGIInterfaceFromObject function (windows.graphics.directx.direct3d11.interop.h)

Retrieves a DXGI interface from an object.

Syntax

HRESULT GetDXGIInterfaceFromObject(
  Platform::Object ^ object,
  REFIID             iid,
  void               **p
);

Parameters

object

Type: Platform::Object^

The object to retrieve the DXGI interface from.

iid

Type: REFIID

The ID of the interface to retrieve.

p

Type: void**

On return, contains the retrieved DXGI interface.

Return value

Type: HRESULT

If the function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Target Platform Windows
Header windows.graphics.directx.direct3d11.interop.h
Library D3D11.lib
DLL D3D11.dll