I get weird values from AION when reading. And I'm prolly going about this totally wrong so I'll post you the code and hopefully some kind soul out there will point me in the right direction.
Code:
int address = 0xA82424;
int value;
DWORD pid;
if(!GameWindow)
{
cout <<"Window not found!";
} else {
GetWindowThreadProcessId(GameWindow,&pid);
HANDLE phandle = OpenProcess(PROCESS_ALL_ACCESS,0,pid);
if(!phandle)
{ cout <<"Could not get handle!"; } else {
ReadProcessMemory(phandle,(LPVOID)address,&value,4,0);
cout << endl << "value: " << value << endl;
cout << "hwnd: " << GameWindow << endl;
cout << "phandle: " << phandle << endl;
cout << "adress: " << (LPVOID)address << " - " << GameWindow+address << endl;
int m;
cin >> m;
}
}
Result of THAT search is this:
value: 0
hwnd: 020D0224
phandle: 000007CC
adress: 00A82424 - 04AD92B4(this last one is just to test some).






