SetupDiDestroyClassImageList function

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

Syntax

WINSETUPAPI BOOL SetupDiDestroyClassImageList(
  PSP_CLASSIMAGELIST_DATA ClassImageListData
);

Parameters

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

   
Windows version 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