Change resources in other Win32-dll/exe

前端 未结 5 592
陌清茗
陌清茗 2021-01-19 13:45

There is a Resource Hacker program which allow to change the resources in the other win32(64) dll and exe files.

I need to do the same thing, but programmaticaly. Is

相关标签:
5条回答
  • 2021-01-19 14:10

    The author points to another tool "XN Resource Editor" which comes with source code (although Delphi, not .NET).

    This should be enough to see which functions being used and use the .NET equivalent of them.

    0 讨论(0)
  • 2021-01-19 14:13

    You must use the BeginUpdateResource, UpdateResource and EndUpdateResource WinApi functions, try this page to check the pinvoke .Net signature of these functions, also you can check this project ResourceLib.

    0 讨论(0)
  • 2021-01-19 14:22

    Well, as I see it is not easy task, so I'll use command line interface of Resource Hacker.

    0 讨论(0)
  • 2021-01-19 14:23

    Note that none of these will work if you're dealing with signed EXEs or DLLs.

    0 讨论(0)
  • 2021-01-19 14:25

    Take a look at Anolis.Resourcer. It seems to be the thing you need

    A ResHacker clone developed as a testbed for Anolis.Core and to replace ResHacker (because ResHacker doesn't support x64, XN Resource Editor (ResHacker's spiritual sequel) doesn't support multiple-language resources and crashes a lot, and other utilities rest cost actual money. It has a powerful yet simplified UI that doesn't duplicate commands or confuse the users with special-case handlers (which ResHacker and XN have in spades).

    0 讨论(0)
提交回复
热议问题