Expand Minimize

MFLockDXGIDeviceManager function

Locks the shared Microsoft DirectX Graphics Infrastructure (DXGI) Device Manager.

Syntax


HRESULT MFLockDXGIDeviceManager(
  _Out_  UINT *pResetToken,
  _Out_  IMFDXGIDeviceManager **ppManager
);

Parameters

pResetToken [out]

Receives a token that identifies this instance of the DXGI Device Manager. Use this token when calling IMFDXGIDeviceManager::ResetDevice. This parameter can be NULL.

ppManager [out]

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

This function obtains a pointer to a DXGI Device Manager instance that can be shared between components. The Microsoft Media Foundation platform creates this instance of the DXGI Device Manager as a singleton object. Alternatively, you can create a new DXGI Device Manager by calling MFCreateDXGIDeviceManager.

The first time this function is called, the Media Foundation platform creates the shared DXGI Device Manager.

When you are done use the IMFDXGIDeviceManager pointer, call the MFUnlockDXGIDeviceManager.

Windows Phone 8: This API is supported.

Windows Phone 8.1: This API is supported.

Requirements

Minimum supported client

Windows 8 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]

Header

Mfapi.h

Library

Mfplat.lib

DLL

Mfplat.dll

See also

MFCreateDXGIDeviceManager

 

 

Community Additions

ADD
Show:
© 2014 Microsoft