Share via


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

Récupère une interface DXGI à partir d’un objet.

Syntaxe

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

Paramètres

object

Type : Platform ::Object^

Objet à partir duquel récupérer l’interface DXGI.

iid

Type : REFIID

ID de l’interface à récupérer.

p

Type : void**

Au retour, contient l’interface DXGI récupérée.

Valeur retournée

Type : HRESULT

Si la fonction réussit, elle retourne S_OK. Sinon, il retourne un code d’erreurHRESULT.

Configuration requise

Condition requise Valeur
Plateforme cible Windows
En-tête windows.graphics.directx.direct3d11.interop.h
Bibliothèque D3D11.lib
DLL D3D11.dll