Where can I find the default icons used for folders and applications?

前端 未结 8 1777
闹比i
闹比i 2021-01-03 09:49

I\'m trying to load the default HICON that explorer displays for:

  • An open folder
  • An exe that has no embedded default icon of its own. This can also
8条回答
  •  耶瑟儿~
    2021-01-03 10:10

    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

提交回复
热议问题