How to use C # to call a function as part of a separate start of its own process?

Can you use C # to call a function inside another running process written in C / C ++?

I know that you can do this with C ++ by introducing a DLL that launches the remote thread, listens for the associated keystrokes, and calls the required function, whose signature and address are defined.

The C ++ to C ++ tutorial is here: http://www.codeproject.com/Articles/29527/Reverse-Engineering-and-Function-Calling-by-Addres#Applying

If I remember correctly, in the past I also read that you cannot embed a managed DLL (C #) into an unmanaged process (C ++). But maybe there is another way ...

The reason I would like to do this is to redesign the computer game and write small hacks in C #, a language I am familiar with.

+5
source share
1 answer

Take a look at the MemorySharp library, it does exactly what you want.

+2
source

Source: https://habr.com/ru/post/1244797/


All Articles