Windows Driver Kit: Device Installation
SetupDiDestroyDeviceInfoList
The SetupDiDestroyDeviceInfoList function deletes a device information set and frees all associated memory.
WINSETUPAPI BOOL WINAPI
SetupDiDestroyDeviceInfoList(
IN HDEVINFO DeviceInfoSet
);
Parameters
- DeviceInfoSet
- A handle to the device information set to delete.
Return Value
The function returns TRUE if it is successful. Otherwise, it returns FALSE and the logged error can be retrieved with a call to GetLastError.
Requirements
Versions: The SetupDiDestroyDeviceInfoList function is available in Microsoft Windows 2000 and later versions of Windows.
Headers: Declared in Setupapi.h. Include Setupapi.h.
Library: Contained in Setupapi.lib. Link to Setupapi.lib.
See Also
SetupDiCreateDeviceInfoList, SetupDiGetClassDevs