SetupDiGetClassImageList

BOOLEAN
    SetupDiGetClassImageList( 
        OUT PSP_CLASSIMAGELIST_DATA  ClassImageListData
        );

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

Parameters
ClassImageListData
Supplies 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.

Comments

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

See Also

SetupDiDestroyClassImageList