>Hi, everybody!
>
>Maybe the title wasn´t quite clear... :)
>
>When we take a look on files through the windows exmplorer, we can see that the icon for each file is the one from the associated program that will execute them. Is there anyway that I could give an extension, and get the image of the program associated to that extension?
>
>TIA
Claudio,
The icon references are stored in the registry. Most applications have multiple icons stored internally that the user can select to associate the file with. The API call that would be needed is ExtractAssociatedIcon(). My Icon Extractor programming in the download section extracts icons from the executable or DLL. It isn't a major change, however, to replace the ExtractIcon call with the one mentioned previously.
George
Ubi caritas et amor, deus ibi est