问题
I have C# application which calls SUM()
function from a DLL.
I want to hook that SUM()
function in the DLL and manipulate the instructions by injecting my DLL into the process of C# application.
Please reply.
回答1:
Please see this http://www.codeproject.com/Articles/463508/Net-CLR-Injection-Modify-IL-Codes-on-Run-time
You can do that by modifying the IL code on runtime
来源:https://stackoverflow.com/questions/11101223/hook-c-sharp-method-in-dll