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.
Parameters
ClassGuid
Supplies the GUID of the class associated with this device information set. If this parameter is specified, only devices of this class may be included in this device information set.
hwndParent
Supplies the window handle of the top-level window to use for any user interface related to installation of the class driver contained in this set's global class driver list.
Return Value
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.
See Also
SetupDiGetClassDevs, SetupDiDestroyDeviceInfoList, SetupDiGetDeviceInfoListClass