 |
SetupDiGetClassImageIndex ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
Retrieves the index within the class image list of a specified class. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
WINSETUPAPI BOOL WINAPI
SetupDiGetClassImageIndex(
IN PSP_CLASSIMAGELIST_DATA ClassImageListData,
IN LPGUID ClassGuid,
OUT PINT ImageIndex
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER SetupDiGetClassImageIndex IN setupapi;
STRING ClassImageListData,;
STRING ClassGuid,;
LONG @ImageIndex
|
 |
 |
 |
| Parameters: |
 |
ClassImageListData
A pointer to an SP_CLASSIMAGELIST_DATA structure that describes a class image list that includes the image for the device setup class that is specified by the ClassGuid parameter.
ClassGuid
A pointer to the GUID of the device setup class for which to retrieve the index of the class image in the specified class image list.
ImageIndex
A pointer to an INT-typed variable that receives the index of the specified class image in the class image list. |
 |
 |
| Return value: |
 |
| The function returns TRUE if it is successful. |
 |
 |
| Usage: |
 |
nImageIndex=0
= SetupDiGetClassImageIndex(cImageListData,;
cClassGuid, @nImageIndex)
|
 |
 |
| My comment: |
 |
In the Usage, the value of cImageListData is obtained through call to the SetupDiGetClassImageListEx function.
The cClassGuid is 16-byte string variable containing the GUID of a installed class. For example, the Class GUID for the USB Root Hub is {36fc9e60-c465-11cf-8056-444553540000}.
See also: CLSIDFromString, CM_Locate_DevNode_Ex,
CM_Get_DevNode_Registry_Property_Ex |
 |
 |
| Word Index links for the SetupDiGetClassImageIndex : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2008-12-18 17:49:51 | | Modified: | 2008-12-18 18:04:27 | Visited in last 7 days: 9 |