SetupDiDestroyClassImageList function (setupapi.h)

The SetupDiDestroyClassImageList function destroys a class image list that was built by a call to SetupDiGetClassImageList or SetupDiGetClassImageListEx.

Syntax

WINSETUPAPI BOOL SetupDiDestroyClassImageList(
  [in] PSP_CLASSIMAGELIST_DATA ClassImageListData
);

Parameters

[in] ClassImageListData

A pointer to an SP_CLASSIMAGELIST_DATA structure that contains the class image list to destroy.

Return value

The function returns TRUE if it is successful. Otherwise, it returns FALSE and the logged error can be retrieved by 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

See also

SetupDiGetClassImageList

SetupDiGetClassImageListEx