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 


A common function that is invoked in every application

 
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: Thu Nov 15, 2012 4:01 pm    Post subject: A common function that is invoked in every application Reply with quote

So basically I am testing a new injector that loads my driver and attaches to the target process.

Then I hook a function and wait for the function to be called by the target application. When the hooked function is invoked it loads my DLL and then it restores the original bytes.

The problem with this is that I have to find a function that is reliable and is shared by the majority of functions. if I hook a function like Sleep in the kernel32 library, it gets invoked every once in a while and not every application uses Sleep.

So, my question is what function can I hook that the majority of applications use?
Back to top
View user's profile Send private message MSN Messenger
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Thu Nov 15, 2012 4:50 pm    Post subject: Reply with quote

Most windows applications have a message loop dealing with the messages their gamewindow gets
Try hooking GetMessageA/W and PeekMessageA/W

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