Platform SDK: Hardware

SetupDiDestroyDeviceInfoList

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

BOOL SetupDiDestroyDeviceInfoList(
  HDEVINFO DeviceInfoSet
);

Parameters

DeviceInfoSet
[in] Specifies a handle to the device information set to destroy. This handle is created by the SetupDiCreateDeviceInfoList or SetupDiCreateDeviceInfoListEx function.

Return Values

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. To get extended error information, call GetLastError.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Requires Windows 98.
  Header: Declared in Setupapi.h.
  Library: Use Setupapi.lib.

See Also

Device Management Overview, Device Management Functions, SetupDiCreateDeviceInfoList, SetupDiCreateDeviceInfoListEx