Extract all icons from an EXE without using ExtractIconEx

前端 未结 2 593
野的像风
野的像风 2020-12-17 02:34

I need to extract all icons from an EXE and save them as disk files, but I cannot use the simplest solution (ExtractIconEx) because I need to extract the ICO files in a way

2条回答
  •  抹茶落季
    2020-12-17 02:51

    Here is a working example on Delphi Praxis. It reads the default RT_GROUP_ICON and associated RT_ICON resources for a specified executable and saves them as as a complete multi-image .ICO file.

    It seems to be confused by 256 pixel images (saves with invalid format), at least on XP, so it might need a little tweaking.

提交回复
热议问题