NINTENDO Grandmaster Cheater Supreme Reputation: 0
Joined: 02 Nov 2007 Posts: 1371
Posted: Thu Aug 26, 2010 8:05 am Post subject:
I just want to read stuff in memory stored by other programs.
Is it hard?
What would be the minimum code to do it?
Code:
System.Diagnostics.Process[] p = System.Diagnostics.Process.GetProcessesByName("notepad");
if (p.Length > 0)
{
IntPtr MyHandler = p[0].Handle; // This will get the first instance of the test app and make a pointer out of it or sumthin.
int bytesRead = 0; //this is some kind of varible that 'ReadProcessMemory' will output stuff to.
string ValueOrSomething; //This is the variable where 'ReadProcessMemory' will output the buffer.
int address = 0; //address to pointer or something??
ReadProcessMemory(MyHandler, address, out ValueOrSomething, 0, out bytesRead);
}
_________________
Intel over amd yes.
Last edited by NINTENDO on Thu Aug 26, 2010 8:22 am; edited 1 time in total
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum