Using Win32 functions in Visual FoxPro Image Gallery
Setup API functions
..msdn
SetupCloseInfFile
SetupDiDestroyClassImageList
SetupDiGetClassImageIndex
SetupDiGetClassImageListEx
SetupGetInfFileList
SetupGetInfInformation
SetupOpenInfFile
Code examples:
Enumerating devices installed on the local machine
How to view system icons for the classes installed on the local machine
SetupDiGetClassImageIndex
..msdn    Add comment     W32 Constants      Translate this page
Retrieves the index within the class image list of a specified class.
Code examples:
Enumerating devices installed on the local machine
How to view system icons for the classes installed on the local machine
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:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2008-12-18 17:49:51
Modified: 2008-12-18 18:04:27
Visited in last 7 days: 25
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.221.73.186)
14 sec.Function: 'CryptGetProvParam'
27 sec.Function: 'DestroyMenu'
43 sec.Function: 'CreatePipe'
58 sec.Function: 'OpenProcessToken'
1.23 min.Function: 'SetTextColor'
1.5 min.Function: 'GdipCreateHICONFromBitmap'
1.77 min.Function: 'mmioCreateChunk'
2.08 min.Function: 'SHFormatDrive'
2.35 min.Function: 'GetRegionData'
2.62 min.Function: 'CreateWaitableTimer'
Google
Advertise here!