BOOLEAN
SetupDiGetClassBitmapIndex(
IN PGUID ClassGuid,
OUT PINT MiniIconIndex
);
SetupDiGetClassBitmapIndex retrieves the index of the mini-icon supplied for the specified class.
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.