IDirect3DDeviceManager9::TestDevice method
Tests whether a Direct3D device handle is valid.
Syntax
HRESULT TestDevice(
[in] HANDLE hDevice
);
Parameters
- hDevice [in]
-
Handle to a Direct3D device. To get a device handle, call IDirect3DDeviceManager9::OpenDeviceHandle.
Return value
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
| Return code | Description |
|---|---|
|
The device handle is valid. |
|
The specified handle is not a Direct3D device handle. |
|
The device handle is invalid. |
Remarks
If the method returns DXVA2_E_NEW_VIDEO_DEVICE, call IDirect3DDeviceManager9::CloseDeviceHandle to close the handle and then call OpenDeviceHandle again to get a new handle. The IDirect3DDeviceManager9::ResetDevice method invalidates all open device handles.
Requirements
|
Minimum supported client | Windows Vista [desktop apps only] |
|---|---|
|
Minimum supported server | Windows Server 2008 [desktop apps only] |
|
Header |
|
See also
Send comments about this topic to Microsoft
Build date: 11/28/2012