Previous Next

SetupDiGetClassBitmapIndex

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
    );

Parameters

ClassGuid
Pointer to 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.

Headers

Declared in setupapi.h. Include setupapi.h.

See Also

SetupDiDrawMiniIcon, SetupDiLoadClassIcon