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 


Reading An Address for a Pointer

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

Joined: 27 Jun 2009
Posts: 529
Location: Canada

PostPosted: Fri Apr 23, 2010 6:17 pm    Post subject: Reading An Address for a Pointer Reply with quote

Hello,

I understand how to determine a static address from a dynamic, but whats been wondering my mind is how to read a dynamic address for a pointer.

My question here is, what techniques or methods should I use to find a pointer to a dynamic address, thanks.
Back to top
View user's profile Send private message MSN Messenger
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Fri Apr 23, 2010 6:22 pm    Post subject: Reply with quote

look at CE and look when you find a dynamic address and look at the code associated with it and see how CE suggests pointer values. usually a pointer is when there is some sort of dynamically allocated structure, maybe a class or maybe regular structure. a variable holds a pointer to the base/start of this structure. the offset is how far in a given member is
Back to top
View user's profile Send private message
iPromise
Grandmaster Cheater
Reputation: -1

Joined: 27 Jun 2009
Posts: 529
Location: Canada

PostPosted: Fri Apr 23, 2010 7:03 pm    Post subject: Reply with quote

I see, I don't have Delphi installed on my PC to read CE.

How read off an address to know if its part of any class or any other regular structure?

Ideas, suggestions, functions, please and thanks.
Back to top
View user's profile Send private message MSN Messenger
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Fri Apr 23, 2010 7:07 pm    Post subject: Reply with quote

iPromise wrote:
I see, I don't have Delphi installed on my PC to read CE.

How read off an address to know if its part of any class or any other regular structure?

Not the source, just do the tutorial and see if you can understand why it is suggesting the values it is.

Quote:
Ideas, suggestions, functions, please and thanks.

lol
Back to top
View user's profile Send private message
&Vage
Grandmaster Cheater Supreme
Reputation: 0

Joined: 25 Jul 2008
Posts: 1053

PostPosted: Sat May 01, 2010 3:18 pm    Post subject: Reply with quote

What don't you understand about a dynamic pointer?

Get value of the address, add offsets to the value. If it's a multipointer just get value of initiate address, add offsets, get value of that offset+Address, repeat.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

Joined: 09 May 2003
Posts: 25287
Location: The netherlands

PostPosted: Sat May 01, 2010 4:25 pm    Post subject: Reply with quote

FAQ:
http://forum.cheatengine.org/viewtopic.php?t=422516

_________________
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
View user's profile Send private message MSN Messenger
iPromise
Grandmaster Cheater
Reputation: -1

Joined: 27 Jun 2009
Posts: 529
Location: Canada

PostPosted: Thu May 06, 2010 5:55 pm    Post subject: Reply with quote

@&Vage Okay, so obtain the value from the dynamic address then add offsets to it? What offsets do I add to it to obtain the pointer?

Code:

DWORD Value = *(DWORD*) Address;

DWORD ApplicationBase = (DWORD) GetModuleHandle(0);

DWORD Offset = ApplicationBase - Address;

DWORD Pointer? = Value + Offset;


i'm really lost in what u just said.
Back to top
View user's profile Send private message MSN Messenger
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