Is there any free library out there that can provide editing capabilites for resources in Win32 PE files?
It needs to be able to do the following:
-
Provide a reasonably simple API for altering dialog resources (including the “extended” dialog version, which is poorly documented).
Editing dialogs withUpdateResourceby hand is a major pain in the rear, since most of the structures’ fields are variable-length, and encoding/decoding them is very error-prone and time consuming to code. -
Handle both 32-bit and 64-bit PE files
-
Have support for widely used resource types (string tables, bitmaps, etc.)
-
Be able to handle any kind of valid resource (even if it’s not widely used), even if that means just providing a simple copy to/from binary.
-
I don’t care about .res files, and I really don’t need .rc functionality. I just need PE editing.
C, C++, and C# are all fine, although I prefer C# since it’s easier to code with. My main concern is dialog editing for 32-bit and 64-bit PE files, so that’s the most important factor.
I haven’t gotten the chance to test it, but I found Anolis.Resourcer which seems to be pretty capable.