Export (0) Print
Expand All
Expand Minimize

SetupDiGetClassBitmapIndex function

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

Syntax


BOOL SetupDiGetClassBitmapIndex(
  _In_opt_  const GUID *ClassGuid,
  _Out_     PINT MiniIconIndex
);

Parameters

ClassGuid [in, optional]

A pointer to the GUID of the device setup class for which to retrieve the mini-icon. This pointer is optional and can be NULL.

MiniIconIndex [out]

A pointer to a variable of type INT that receives the index of the mini-icon for the specified device setup class. If the ClassGuid parameter is NULL or if there is no mini-icon for the specified class, SetupDiGetClassBitmapIndex returns the index of the mini-icon for the Unknown device setup class.

Return value

If there is a min-icon for the specified device setup class, SetupDiGetClassBitmapIndex returns TRUE. Otherwise, this function returns FALSE and the logged error can be retrieved with a call to GetLastError. If the ClassGuid parameter is NULL, or if there is no mini-icon for the specified class, the function returns FALSE and GetLastError returns ERROR_NO_DEVICE_ICON.

Remarks

For a list of the device setup class mini-icons and their corresponding indexes, see SetupDiDrawMiniIcon.

Requirements

Version

Available in Microsoft Windows 2000 and later versions of Windows.

Header

Setupapi.h (include Setupapi.h)

Library

Setupapi.lib

See also

SetupDiDrawMiniIcon
SetupDiLoadClassIcon

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft