Page 1 of 1

WriteProcessMemory pointer C ++ 64 bits ?

Posted: Wed Jul 15, 2020 12:12 pm
by KevinDA
Hello, I would like to know how we can recover a pointer address in C ++ (64 bits)?
In order to change a value with WriteProcessMemory.

example my baseadress = base;

WriteProcessMemory (hProc, (LPVOID) (((uint8_t *) base) + ?????, & array, number_BYTE, NULL);

Image

Re: WriteProcessMemory pointer C ++ 64 bits ?

Posted: Thu Jul 16, 2020 7:06 am
by SunBeam
If what you mean is how to get the offset, then subtract the module base from your address. 14257890-14000000 (base). Else I don't know what you mean.