Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Retrieval of icons associated with files/applications
Message
 
To
14/08/2001 09:08:41
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00542621
Message ID:
00543466
Views:
25
>>>> CLASSLIB TO REGISTRY.VCX ADDITIVE && Registry class from the FFC
>>>
>>>George,
>>>
>>>PMFJI, but what is the "FFC" referenced above? Tried your code and it couldn't find the Registry library.
>>>
>>Renoir,
>>
>>There should be an FFC folder right beneath the main VFP one. It's there.
>
>George,
>
>The path result from your code was "C:\Program Files\Microsoft Office\Office\Winword.exe,1" and I'm curious as to what the ",1" means at the end of the line.
>
Renoir,

It represents a zero based offset of the icon in the actual executable. An executable or dynamic link library can contain multiple icons. This little code snippet, demonstrates how to find out how many icons are in a particular EXE or DLL
DECLARE INTEGER ExtractIcon IN Shell32;
  INTEGER hInst, STRING @lpszExeFileName,;
  INTEGER nIconIndex
lcfile = "C:\Program Files\Microsoft Office\Office\Winword.exe"
? ExtractIcon(0, @lcfile, -1)
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform