I'd like to get the Tree icon to use for a homegrown app. Does anyone know how to extract the images out as .icon files? I'd like both the 16x16 and 32x32, or I'd just do a screen capture.
I'd like to get the Tree icon to use for a homegrown app. Does anyone know how to extract the images out as .icon files? I'd like both the 16x16 and 32x32, or I'd just do a screen capture.
In Visual Studio, choose "File Open..." then "File...". Then pick the Shell32.dll. A folder tree should be opened, and you will find the icons in the "Icon" folder.
To save an Icon, you can right-click on the icon in the folder tree and choose "Export".
Another option is to use a tool such as ResourceHacker. It handles way more than just icons as well. Cheers!
Not sure if I am 100% correct, but from my testing, the above options for using 7Zip or VS don't work on Windows 10 / 11 versions of imageres.dll or shell32.dll. This is the content I see:
[shell32.dll]
.rsrc\MANIFEST\124
.rsrc\MUI\1
.rsrc\TYPELIB\1
.rsrc\version.txt
.data
.didat
.pdata
.rdata
.reloc
.text
CERTIFICATE
Update: And I think I found why. Link to an article I found. (Sorry for being off-domain). You can find the resources in files in these locations:
"C:\Windows\SystemResources\shell32.dll.mun"
"C:\Windows\SystemResources\imageres.dll.mun"
Icons no longer in imageres.dll in Windows 10 1903 - 4kb file (superuser.com)
This question already has answers here, but for anybody new wondering how to do this, I used 7Zip and navigated to %SystemRoot%\system32\SHELL32.dll\.rsrc\ICON, then copied all the files to a desired location.
If you'd like a pre-extracted directory, you can download the ZIP here.
Note: I extracted the files on a Windows 8.1 installation, so they may vary from the ones on other versions of Windows.