Platform SDK: Hardware |
The SetupDiCreateDeviceInfoList function creates an empty device information set. This set can be associated with a class GUID.
To create a device information set for a remote computer, call the SetupDiCreateDeviceInfoListEx function.
HDEVINFO SetupDiCreateDeviceInfoList( CONST LPGUID ClassGuid, HWND hwndParent );
If the function succeeds, the return value is a handle to an empty device information set.
If the function fails, the return value is INVALID_HANDLE_VALUE. To get extended error information, call GetLastError.
To destroy the device information set when you have finished, call the SetupDiDestroyDeviceInfoList function.
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Requires Windows 98.
Header: Declared in Setupapi.h.
Library: Use Setupapi.lib.
Device Management Overview, Device Management Functions, SetupDiCreateDeviceInfoListEx, SetupDiDestroyDeviceInfoList