SaveIconToFile from https://github.com/Skight/wndspy/blob/b89cc2df88ca3e58b26be491814008aaf6f11122/Source/Contrib/SaveIcon.cpp works for me (tested on Jumbo icon of Notepad (SHGetFileInfo with SHGFI_SYSICONINDEX + SHGetImageList with SHIL_JUMBO )
How to extract an icon from executable and save it on disk properly? Any lightweight library?
Is there something in c++? (Windows API/ WinRT) I've tried some solutions online and none of them work. I didn't find anything useful on Github either. I want to display the icons regardless of whether the exe is still there, so I want to save the icon; only 1 size is enough. (I think the difficult part is saving the HIcon, I can't find anything about the process.)
Have you tried any of the suggested solutions in this SO thread ? -- https://stackoverflow.com/questions/2289894/how-can-i-save-hicon-to-an-ico-file
Sign in to comment