I\'m trying to load the default HICON that explorer displays for:
Vista added SHGetStockIconInfo and so on NT6+ its the best way.
Archive of MSDN documentation that shows the available icons
On older platforms, SHGetFileInfo like Stefan says.
If you want to use undocumented stuff, the first 5 or so icons in the system image list includes the default folder and application icon (system image list is NOT shared on NT, but for some reason, all the copies get the first 5 or so icons without asking for them with SHGetFileInfo)
These default icons come from shell32.dll by default, but can be changed in the registry:
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons