I\'m trying to load the default HICON that explorer displays for:
it's much easier, just open the shell32.dll with resource hacker and right-click on "ICONS" and save all icons resource in a directory.
and you'll get all the windows default icons in that directory.
[link]http://www.angusj.com/resourcehacker/[/link]
The user's selected icon can be found in the registry at HKEY_CLASSES_ROOT\Folder\DefaultIcon
By looking up the value here, you'll also pick up if they've changed it for whatever reason.
For folders where a desktop.ini file exists, you'd need to read the IconFile
and IconIndex
entries.