This topic has not yet been rated - Rate this topic

IMFDXGIDeviceManager::GetVideoService method

Queries the Microsoft Direct3D device for an interface.

Syntax


HRESULT GetVideoService(
  [in]   HANDLE hDevice,
  [in]   REFIID riid,
  [out]  void **ppService
);

Parameters

hDevice [in]

A handle to the Direct3D device. To get the device handle, call IMFDXGIDeviceManager::OpenDeviceHandle.

riid [in]

The interface identifier (IID) of the requested interface. The Direct3D device supports the following interfaces:

ppService [out]

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

Return value

This method can return one of these values.

Return codeDescription
S_OK

Success.

E_HANDLE

The specified handle is not a Direct3D device handle.

MF_E_DXGI_DEVICE_NOT_INITIALIZED

The DXGI Device Manager was not initialized. The owner of the device must call IMFDXGIDeviceManager::ResetDevice.

MF_E_DXGI_NEW_VIDEO_DEVICE

The device handle is invalid.

 

Remarks

If the method returns MF_E_DXGI_NEW_VIDEO_DEVICE, call IMFDXGIDeviceManager::CloseDeviceHandle to close the handle and then call OpenDeviceHandle again to get a new handle. The IMFDXGIDeviceManager::ResetDevice method invalidates all open device handles.

Requirements

Minimum supported client

Windows 8 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]

Header

Mfobjects.h (include Mfidl.h)

See also

IMFDXGIDeviceManager

 

 

Send comments about this topic to Microsoft

Build date: 11/28/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.