IMFDXGIDeviceManager::TestDevice method
Tests whether a Microsoft Direct3D device handle is valid.
Syntax
HRESULT TestDevice(
[in] HANDLE hDevice
);
Parameters
- hDevice [in]
-
A handle to the Direct3D device. To get the device handle, call IMFDXGIDeviceManager::OpenDeviceHandle.
Return value
This method can return one of these values.
| Return code | Description |
|---|---|
|
Success. |
|
The specified handle is not a Direct3D device handle. |
|
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 |
|
See also