Hi, I was trying to play around with some code and to see how it work, but didnt seem to get it to work right. Any ideas on how to use "ReadProcessMemory"? Also I have a question on it, when it does read the location of the memory, does it see whats there too? Like in my other programe it has a int set 50, can it see that 50 when it reads it?
Code://#include things and using namespace std; int main (){ bool pQuit = false; DWORD process_id; HANDLE hProcess; HANDLE hToken; int hp = 0xXXXXX; int patch_int; while( false == pQuit ) { Sleep(6000); hProcess=OpenProcess(PROCESS_ALL_ACCESS, FALSE, process_id); bool ReadProcessMemory(hProcess, hp, &patch_int, 4, NULL); cout<<" " <<patch_int<<endl; } }



LinkBack URL
About LinkBacks


