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 


[Delphi] Reading Value of Multi Level Pointer

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
q19
How do I cheat?
Reputation: 0

Joined: 06 Jul 2010
Posts: 1

PostPosted: Tue Jul 06, 2010 12:34 pm    Post subject: [Delphi] Reading Value of Multi Level Pointer Reply with quote

Hi,

normally I use this sample syntax to get a specific value from a memory address:

Card1p:=ptr($02CEF250);
readprocessmemory(handlewindow,Card1p,@Card1i,2,bytes);

Card1i has then the integer value I am looking for.

But what about multi level pointers?

What do I have to do (in Delphi) if I want to look for the pointer so that I dont need to change Card1p:=ptr($02CEF250); manually everytime I restart the programm.

Any ideas?
Thx...[/img]

PS: Of course I know the Address of the pointer...
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 Jul 06, 2010 12:53 pm    Post subject: Reply with quote

you're going to be reading an address out of your first address, so change it to read 4 bytes for each level.

read, add offset, then use that for the next address that you read from
repeat until through all the levels.
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