Does someone got exemples how to read managed memory?
Does someone got exemples how to read managed memory?
Google is your best friend. But you can PInvoke the win32 function ReadProcessMemory to do it for you. Doing any memory reading however, is always best done from a lower level language. (Such as C++)
c++ is to anoying
i like c# the most but there are not much tutorials how to do it,
Because .NET can't read other process' memory. You need to use a PInvoke from win32.dll's ReadProcessMemory.
And simply googling for "Reading memory with C#" brings up quite a few ways to do what you want. I highly suggest you learn about marshaling first though, or you will be lost.
Shynd posted a good C# class libary for Memory Reading in C# =)
Shynd’s WoW Modification Journal
And that's exactly what I said in my post before. .NET doesn't come out of the box with the ability to read other process' memory. Period. You need to use PInvokes to do it. However, you can write a wrapper for that type of stuff (such as that library you linked) to make it a bit easier. If you don't know about marshaling with C#, you won't make any progress trying to read memory.
CodeProject: Minesweeper, Behind the scenes. Free source code and programming help
Very good article. I used that first when I started looking into memory reading. You can use the code in there and just adapt it to whatever.