MFCreateDXGIDeviceManager

Creates an instance of the Microsoft DirectX Graphics Infrastructure (DXGI) Device Manager.

Syntax

HRESULT MFCreateDXGIDeviceManager(
         UINT *resetToken,
         IMFDXGIDeviceManager **ppDeviceManager
)  

Parameters

resetToken
Type: UINT *

[out] Receives a token that identifies this instance of the DXGI Device Manager. Use this token when calling IMFDXGIDeviceManager::ResetDevice.

ppDeviceManager
Type: IMFDXGIDeviceManager **

[out] Receives a pointer to the IMFDXGIDeviceManager interface. The caller must release the interface.

Return value

Type: HRESULT 

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

Refer to Media Foundation return codes.

Requirements

Header: Declared in mfapi.h.

Library: Use Mfplat.lib.