The SetupDiGetClassBitmapIndex function retrieves the index of the mini-icon supplied for the specified class.
WINSETUPAPI BOOL WINAPI
SetupDiGetClassBitmapIndex(
IN LPGUID ClassGuid, OPTIONAL
OUT PINT MiniIconIndex
);
If there is a min-icon for the specified class, the function returns TRUE.
If there is no mini-icon for the specified class, the function returns FALSE and the MiniIconIndex buffer receives the index for the Unknown mini-icon.
Declared in setupapi.h. Include setupapi.h.