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 


STDCALL guide/example?

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

Joined: 19 Jan 2017
Posts: 30

PostPosted: Sat Nov 04, 2017 10:52 am    Post subject: STDCALL guide/example? Reply with quote

I would love to know more about the stdcall command.
Can anyone make an example of how it can be used?

Thanks :)

Edit: solved,thanks ParkourPenguin


Last edited by bhfff on Sun Nov 05, 2017 4:14 pm; edited 2 times in total
Back to top
View user's profile Send private message
FreeER
Grandmaster Cheater Supreme
Reputation: 53

Joined: 09 Aug 2013
Posts: 1091

PostPosted: Sun Nov 05, 2017 9:12 am    Post subject: Reply with quote

https://msdn.microsoft.com/en-us/library/zxk0tw93.aspx ?
As for examples, every windows api function.
Back to top
View user's profile Send private message
bhfff
Cheater
Reputation: 0

Joined: 19 Jan 2017
Posts: 30

PostPosted: Sun Nov 05, 2017 12:02 pm    Post subject: Reply with quote

FreeER wrote:
-- ?
As for examples, every windows api function.


Sorry but I have no idea what that means unless I see a script using stdcall
It's just my way of learning
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 140

Joined: 06 Jul 2014
Posts: 4289

PostPosted: Sun Nov 05, 2017 1:18 pm    Post subject: This post has 1 review(s) Reply with quote

Code:
foo:
  push ebp
  mov ebp,esp
  push 7
  push 5
  call bar  // bar(5, 7)
  mov [result],eax
  mov esp,ebp
  pop ebp
  ret

// int __stdcall bar(int a, int b) { return a + b; }
bar:
  push ebp
  mov ebp,esp
  mov eax,[ebp+8]
  add eax,[ebp+c]
  mov esp,ebp
  pop ebp
  ret 8

_________________
I don't know where I'm going, but I'll figure it out when I get there.
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 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