Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

SetupDiDestroyDeviceInfoList function

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

Syntax


BOOL SetupDiDestroyDeviceInfoList(
  _In_ HDEVINFO DeviceInfoSet
);

Parameters

DeviceInfoSet [in]

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

Target platform

Desktop

Version

Available in Microsoft Windows 2000 and later versions of Windows.

Header

Setupapi.h (include Setupapi.h)

Library

Setupapi.lib

DLL

Setupapi.dll

See also

SetupDiCreateDeviceInfoList
SetupDiGetClassDevs

 

 

Send comments about this topic to Microsoft

Show: