MFCreateDXGIDeviceManager function

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

Syntax

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

Parameters

resetToken

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

ppDeviceManager

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

Return Value

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

Remarks

When you create an IMFDXGIDeviceManager with MFCreateDXGIDeviceManager, a Microsoft Direct3D 11 device is not associated with the device manager. To associate a Direct3D 11 device with the device manager, call IMFDXGIDeviceManager::ResetDevice, passing in the pointer to the Direct3D 11 device. To create a Direct3D 11 device, call D3D11CreateDevice. The device should be created with the D3D11_CREATE_DEVICE_VIDEO_SUPPORT device creation flag which is defined in the D3D11_CREATE_DEVICE_FLAG enumeration.

Requirements

   
Minimum supported client Windows 8 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 [desktop apps | UWP apps]
Target Platform Windows
Header mfapi.h
Library Mfplat.lib
DLL Mfplat.dll

See Also

Media Foundation Functions