BOOLEAN
SetupDiGetClassImageIndex(
IN PSP_CLASSIMAGELIST_DATA ClassImageListData,
IN LPGUID ClassGuid,
OUT PINT ImageIndex
);
SetupDiGetClassImageIndex retrieves the index within the class image list of a specified class.
Parameters
ClassImageListData
Supplies a pointer to an SP_CLASSIMAGELIST_DATA structure that contains the class' image.
ClassGuid
Supplies a pointer to the GUID for the class.
ImageIndex
Supplies a pointer to a variable that receives the index of the specified class' image within the class image list.
Return Value
The function returns TRUE if it is successful. Otherwise it returns FALSE and the logged error can be retrieved by a call to GetLastError.
See Also