Click to Rate and Give Feedback
MSDN
MSDN Library
Windows Driver Kit
Reference
SetupAPI Reference
 SetupDiDestroyDeviceInfoList
Windows Driver Kit: Device Installation
SetupDiDestroyDeviceInfoList

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

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

Versions: The SetupDiDestroyDeviceInfoList function is available in Microsoft Windows 2000 and later versions of Windows.

Headers: Declared in Setupapi.h. Include Setupapi.h.

Library: Contained in Setupapi.lib. Link to Setupapi.lib.

See Also

SetupDiCreateDeviceInfoList, SetupDiGetClassDevs


Send feedback on this topic
Built on November 19, 2009
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker