HRESULT EnumDevices(LPD3DENUMDEVICESCALLBACK lpEnumDevicesCallback,
LPVOID lpUserArg);
Enumerates all Direct3D device drivers installed on the system.
·Returns D3D_OK if successful, or an error otherwise, which may be one of the following values:
lpEnumDevicesCallback
Address of the D3DENUMDEVICESCALLBACK callback function that the enumeration procedure will call every time a match is found.
lpUserArg
Address of application-defined data passed to the callback function.