SetupDiDestroyDeviceInfoList function (setupapi.h)

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

Syntax

WINSETUPAPI BOOL SetupDiDestroyDeviceInfoList(
  [in] HDEVINFO DeviceInfoSet
);

Parameters

[in] 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

Requirement Value
Minimum supported client 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
API set ext-ms-win-setupapi-classinstallers-l1-1-0 (introduced in Windows 8)

See also

SetupDiCreateDeviceInfoList

SetupDiGetClassDevs