 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
steelblob Newbie cheater
Reputation: 0
Joined: 13 Dec 2006 Posts: 10
|
Posted: Wed Dec 13, 2006 7:23 pm Post subject: This is driving me nuts! |
|
|
Okay... I know how to get a pointer address e.g. static addy:
Find DMA value,
Scan Write/Read.
Scan for hex addy: 29F592B4
Get: 00340394
Add pointer with that value and add 4c to it.
Whammo I get a pointer which works fine......
Now 003403E0 is the address I should be adding to my trainer that I wrote in C++
The pointer's value can be changed from 1, 2, 3... and so on.
So... I want to change the value of the pointer to 1 in byte 2 so I:
if (WriteProcessMemory(hHandle, LPVOID(0x3403E0), LPVOID(0x01), 2, NULL))
It doesn't work... I've been messing with it all day and I'm about to loose it.  |
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25835 Location: The netherlands
|
Posted: Thu Dec 14, 2006 2:27 am Post subject: |
|
|
WriteProcessMemory(processhandle,addresstowriteto,addresstoreadfrom,nrofbytes,addresstowritenrwrittenbytesto)
WriteProcessMemory(hHandle, LPVOID(0x3403E0), LPVOID(0x01), 2, NULL)
so:
processhandle=hHandle
addresstowriteto=0x3403e0
addresstoreadfrom=0x01
nrofbytes=2
addresstowritenrwrittenbytesto=NULL
So, this means that you are writing the 2 bytes at address 0x01 to 0x3403e0. I somehow doubt 0x01 is a valid address _________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
steelblob Newbie cheater
Reputation: 0
Joined: 13 Dec 2006 Posts: 10
|
Posted: Thu Dec 14, 2006 10:08 am Post subject: |
|
|
Uhhhh, its:
BOOL WriteProcessMemory(
HANDLE hProcess,
LPVOID lpBaseAddress,
LPCVOID lpBuffer,
SIZE_T nSize,
SIZE_T* lpNumberOfBytesWritten
);
lpBuffer is what you are talking about, and in that the value of what I want the value of the address changed to.
I am trying to change the vaule of 0x3403E0 which resolves to 29F592B4 (DMA) to value 1.
I don't know what I am doing wrong :S |
|
| Back to top |
|
 |
|
|
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
|
|