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 


Address Scanner

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

Joined: 23 Oct 2010
Posts: 2

PostPosted: Sat Oct 23, 2010 2:27 pm    Post subject: Address Scanner Reply with quote

I have a question about a CE function.

How can I scan the address of a variable?


g_Address = Engine.dll+6815 = 01006815


Last edited by Syos on Fri Oct 29, 2010 6:48 am; edited 1 time in total
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Mon Oct 25, 2010 8:26 am    Post subject: Reply with quote

if g_Address is a symbol in the game itself and not something you defined using the userdefined symbols then you should be able to obtain it using the sym**** api in windows

syminitialize and then followed by symgetaddrfromname or whatever it was called (starts with sym )

_________________
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
Syos
How do I cheat?
Reputation: 0

Joined: 23 Oct 2010
Posts: 2

PostPosted: Wed Oct 27, 2010 3:36 pm    Post subject: Reply with quote

Thanks for your answer. Is there a example for it (C, C++)? I cannot find a useful example.


I found this code in "AddAddress.pas":
Code:
currentaddress:=symhandler.getaddressfromname(pointerinfo[i].address.Text);

But what is "symhandler" and "pointerinfo"?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Thu Oct 28, 2010 9:51 pm    Post subject: Reply with quote

symhandler is just a wrapper class and pointerinfo is structure containing objects. In this case the object that takes the base pointer value in a tedit box

anyhow, look at symbolhandler.pas and check this code:
Code:

getmem(symbol,sizeof(TSYMBOL_INFO)+255);
                try
                  zeromemory(symbol,sizeof(TSYMBOL_INFO)+255);
                  symbol.SizeOfStruct:=sizeof(TSYMBOL_INFO);
                  symbol.MaxNameLen:=254;


                  if SymFromName(processhandle, pchar(tokens[i]), symbol ) then
                  begin
                    tokens[i]:=inttohex(symbol.Address,8);
                    continue;
                  end;
                finally
                  freemem(symbol);
                end;                 

_________________
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
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Source 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