Group: Setup API functions - Library: setupapi
How to view system icons for the classes installed on the local machine
Enumerating devices installed on the local machine
WINSETUPAPI BOOL WINAPI
SetupDiGetClassImageListEx(
OUT PSP_CLASSIMAGELIST_DATA ClassImageListData,
IN PCTSTR MachineName,
OPTIONAL IN PVOID Reserved
);
DECLARE INTEGER SetupDiGetClassImageListEx IN setupapi;
STRING @ClassImageListData,;
STRING MachineName,;
INTEGER Reserved
ClassImageListData A pointer to an SP_CLASSIMAGELIST_DATA structure to receive information regarding the class image list, including a handle to the image list.
MachineName A pointer to NULL-terminated string that supplies the name of a remote system for whose classes SetupDiGetClassImageListEx must build the bitmap.
Reserved Must be NULL.
The function returns TRUE if it is successful.
The cbSize field of the SP_CLASSIMAGELIST_DATA structure must be initialized with the size of the structure, in bytes, before calling this function or it will fail.
The image list built by this function should be destroyed by calling SetupDiDestroyClassImageList.