Can you use C# to call a function inside of another running process that is written in C/C++?
I know you can do this using C++ by injecting a DLL that starts a remote thread, listens for associated key-presses, and makes a call to the desired function whose signature and address has been 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, I've also read in the past that you cannot inject a managed DLL (C#) into an unmanaged process (C++). But perhaps another way exists...
The reason that I'd like to do this is to reverse engineer a PC game and write little hacks in C#, a language I'm familiar with.
Which programming language is easy to learn? C and C++ are both somewhat difficult to learn to program well. However, in many respects, they share many similarities with many other popular languages. In that sense they're just as easy (or as difficult) to learn, at first, as anything other programming language.
Get started with C. Official C documentation - Might be hard to follow and understand for beginners. Visit official C Programming documentation. Write a lot of C programming code - The only way you can learn programming is by writing a lot of code.
C programming language is a machine-independent programming language that is mainly used to create many types of applications and operating systems such as Windows, and other complicated programs such as the Oracle database, Git, Python interpreter, and games and is considered a programming foundation in the process of ...
Take a look at the MemorySharp library, it does exactly what you want.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With