Platform SDK: Hardware |
The SetupDiCreateDeviceInfoListEx function creates an empty device information set for a local or remote computer. This set can be associated with a class GUID.
HDEVINFO SetupDiCreateDeviceInfoListEx( CONST LPGUID ClassGuid, HWND hwndParent, PCTSTR MachineName, PVOID Reserved );
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: Unsupported.
Header: Declared in Setupapi.h.
Library: Use Setupapi.lib.
Device Management Overview, Device Management Functions, SetupDiDestroyDeviceInfoList