Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[C++] Pointers

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
slippppppppp
Grandmaster Cheater
Reputation: 0

Joined: 08 Aug 2006
Posts: 929

PostPosted: Tue Dec 04, 2007 12:30 am    Post subject: [C++] Pointers Reply with quote

Im almost done with auto pot function. What i need help on is that,
if i use asm directly in the dll, the ms will crash because i dont have a crc bypass. Now, what i need help on, is how do i read pointer memory?
As in,
i have the address : 0123, with pointer E5f.
and i want to read the value, how would i do that?

Embarassed
Back to top
View user's profile Send private message AIM Address MSN Messenger
sponge
I'm a spammer
Reputation: 1

Joined: 07 Nov 2006
Posts: 6009

PostPosted: Tue Dec 04, 2007 1:04 am    Post subject: Reply with quote

Inline this:
Code:
mov eax, dword ptr ds:[0123h]
mov eax, dword ptr ds:[eax+0E5Fh]
mov dword ptr ds:[pointerBuffer], eax


Code:
DWORD pointerBuffer


I don't know C++ so well so this is all I know. Declare your variable, inline so that you load your pointer and then do whatever you want to do w/ the value.

_________________
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Tue Dec 04, 2007 1:59 pm    Post subject: Reply with quote

in a nutshell, find what writes to it. double click the instruction, and it will say what it figures is value of the pointer. for example...

mov [esi+00000540], edx

check hex, search what it gives you, the lowest one is usually the one you're looking for.

ReadProcessMemory to get that value from the address, then add 540 (in hex) to it and you have your address, should be straightforward and easy enough.

this is what you mean, right?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites