3

I show a bunch of exe files in a listview, and I want to show their default icon, but if the exe file has no icon resource, I would like to show the Windows default application icon regardless of the OS version. If I check the registries at:

 [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\exefile\DefaultIcon]

the default value is "%1", which is the first icon in the exe file itself. But where is the default .exe icon for exe files with no icon?

Chris
  • 1,213
  • 1
  • 21
  • 38

1 Answers1

0

This is what XP does (this is actually a shortcut, but you get the point)

Sample

It's been awhile; but doesn't shell32 handle this?

Here's an older article from stackoverflow

Community
  • 1
  • 1
Donny McCoy
  • 130
  • 7
  • Yes, on XP they are located in shell32.dll, and in Win 7 they are located in imageres.dll. So it may vary from version to version. – Chris Apr 23 '13 at 19:17