How to extract all the icons from some exe files and paste them into other exe files using Delphi?

I am using Delphi. I want to know how to extract (all) the icons from an exe file and paste them into another, keeping the order and index of the icons. I found some examples of Delphi code using Google, but the problem is that it does not extract all of them. And I found some compiled programs (exes) that do one or the other, but not both. Why do I need this: because I have to run some exe files (having these icons) from virtualized applications. And I want to make some external exe files with the same name and same icons. Thank you for your help.

+5
source share
3 answers

. PrivateExtractIcons , , Microsoft , .

There is a working example for retrieving an entire icon resource with all image sizes in Delphi Praxis. The example has a problem with 256-pixel images, so to take them into account, you will need to configure them.

+1
source

All Articles