在其他Win32的DLL / EXE更改资源 [英] Change resources in other Win32-dll/exe
问题描述
有一个资源黑客的(64)程序,它允许改变资源中的其他的win32 DLL和EXE文件。
There is a Resource Hacker program which allow to change the resources in the other win32(64) dll and exe files.
我需要做同样的事情,但programmaticaly。是否可以使用.NET Framework办呢?良好的出发点,做到这一点是什么?
I need to do the same thing, but programmaticaly. Is it possible to do it using .Net framework? What is the good starting point to do it?
推荐答案
您必须使用<一个href="http://msdn.microsoft.com/en-us/library/windows/desktop/ms648030%28v=vs.85%29.aspx">BeginUpdateResource, <一href="http://msdn.microsoft.com/en-us/library/windows/desktop/ms648049%28v=vs.85%29.aspx">UpdateResource和<一href="http://msdn.microsoft.com/en-us/library/windows/desktop/ms648032%28v=vs.85%29.aspx">EndUpdateResource WINAPI功能,尝试此页面检查这些功能的PInvoke净签名,还您可以检查这个项目 ResourceLib 。
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.
这篇关于在其他Win32的DLL / EXE更改资源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!