HDEVINFO
SetupDiCreateDeviceInfoList(
IN LPGUID ClassGuid, /* optional */
IN HWND hwndParent /* optional */
);
SetupDiCreateDeviceInfoList creates an empty device information set. This set can be associated with a class GUID.
The function returns a handle to an empty device information set if it is successful. Otherwise it returns INVALID_HANDLE_VALUE. To get extended error information, call GetLastError.
SetupDiGetClassDevs, SetupDiDestroyDeviceInfoList, SetupDiGetDeviceInfoListClass