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 


Getting Parameters Of Function ?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
hesho28
Newbie cheater
Reputation: 0

Joined: 03 Oct 2009
Posts: 13

PostPosted: Mon Oct 21, 2013 6:54 pm    Post subject: Getting Parameters Of Function ? Reply with quote

Hello There,

i have an function (VOID) and want to know its parameter.


The function ends with "ret 0004" that means it has 1 parameter only.


How to get that parameter when the function is called ?


I want to know in details because iam kinda newbie at CE.


Thanks

_________________
sssssss
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Mon Oct 21, 2013 6:59 pm    Post subject: Reply with quote

at the entrypoint [ESP+4] contains the parameter
If you're inside the function body (after the header) then the parameter will be in [EBP+8]

Easiest method is just checking the stackview and optional stackview->stacktrace to see the parameters, and the functions that called that function and their parameters

_________________
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
hesho28
Newbie cheater
Reputation: 0

Joined: 03 Oct 2009
Posts: 13

PostPosted: Mon Oct 21, 2013 7:15 pm    Post subject: Reply with quote

Thanks it works , but i have a question : this method works also with functions that have more than 1 parameter ?
_________________
sssssss
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Mon Oct 21, 2013 7:19 pm    Post subject: Reply with quote

yes, parameter 2 would then be in [ESP+8]/[EBP+C] etc...
And the stacktrace window will also show it(up to 4 parameters)

_________________
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 -> General Gamehacking 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