Export (0) Print
Expand All
Expand Minimize

SetupDiGetClassImageList function

The SetupDiGetClassImageList function builds an image list that contains bitmaps for every installed class and returns the list in a data structure.

Syntax


BOOL SetupDiGetClassImageList(
  _Out_  PSP_CLASSIMAGELIST_DATA ClassImageListData
);

Parameters

ClassImageListData [out]

A pointer to an SP_CLASSIMAGELIST_DATA structure to receive information regarding the class image list, including a handle to the image list. The cbSize field of this structure must be initialized with the size of the structure, in bytes, before calling this function or it will fail.

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.

Remarks

The image list built by this function should be destroyed by calling SetupDiDestroyClassImageList.

Call SetupDiGetClassImageListEx to retrieve the image list for classes installed on a remote computer.

Requirements

Version

Available in Microsoft Windows 2000 and later versions of Windows.

Header

Setupapi.h (include Setupapi.h)

Library

Setupapi.lib

See also

SetupDiDestroyClassImageList
SetupDiGetClassImageListEx

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft