Forgot the "extension" part of your question:
FindExecutable API #12662
If you don't have a file you can use with FindExecutable() you can simply create a dummy file in the temp folder.
You can also have a look at ExtractIconEx() in the MSDN library. You can get the small and large icon with that function.
Armin
>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