SetupDiGetClassBitmapIndex

BOOLEAN
SetupDiGetClassBitmapIndex(
IN PGUID ClassGuid,
OUT PINT MiniIconIndex
);

SetupDiGetClassBitmapIndex retrieves the index of the mini-icon supplied for the specified class.

Parameters

ClassGuid

Supplies the GUID of the class for which to retrieve the mini-icon.

MiniIconIndex

A pointer to a buffer to receive the index of the mini-icon for the specified class. This buffer is always filled in. It receives the index of the Unknown mini-icon if there is no mini-icon for the specified class.

Return Value

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.

See Also

SetupDiDrawMiniIcon, SetupDiLoadClassIcon