Okay, I just asked how to read two vars in my C# app. It was two simple vars int intfoo = 1234 and string strinfoo = "This is a test".
I now understand why it was silly to ask since the testapp was written in c# and therefor managed code. So i fixed that, I’ve made a c++ application that holds the two same vars 🙂
Now, with C#, how do I loop through the C++ test application to find the value “1234” and “this is a test” which are the values for intfoo and stringfoo.
What would be the start of the loop and end? I’ve read somewhere that start is 0x00100000 and other places its 0x00400000? What would the end condition be? The test c++ app uses 388 kB in memory.
How do I loop to find the int and how do I loop to find the string?
Thanks in advance for any help 🙂
You don’t want to do it, but there is an API function called
ReadProcessMemory.