SetupDiDestroyDeviceInfoList

BOOLEAN
SetupDiDestroyDeviceInfoList(
IN HDEVINFO DeviceInfoSet
);

SetupDiDestroyDeviceInfoList destroys a device information set and frees all associated memory.

Parameters

DeviceInfoSet

Supplies a handle to the device information set to destroy.

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.

See Also

SetupDiCreateDeviceInfoList, SetupDiGetClassDevs