SetupDiDestroyDeviceInfoList function

The SetupDiDestroyDeviceInfoList function deletes a device information set and frees all associated memory.

Syntax

WINSETUPAPI BOOL SetupDiDestroyDeviceInfoList(
  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

   
Windows version Available in Microsoft Windows 2000 and later versions of Windows.
Target Platform Desktop
Header setupapi.h (include Setupapi.h)
Library Setupapi.lib
DLL Setupapi.dll

See Also

SetupDiCreateDeviceInfoList

SetupDiGetClassDevs