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 


Filter Question

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Source -> Plugin development
View previous topic :: View next topic  
Author Message
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

PostPosted: Thu Jul 26, 2007 12:20 am    Post subject: Filter Question Reply with quote

I am making a type 3 plugin (processwatcher notify event), how would I distinguish between the callback being for process termination or process creation?*

*I don't want to use an internal boolean for this because the plugin could be loaded after a process is created or CE for that matter. I'd rather not be constantly querying the process to see if it dies, because it's time critical. I would understand if that's the only way, though.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 326

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

PostPosted: Thu Jul 26, 2007 5:23 am    Post subject: Reply with quote

there is no way to see that directly. But you can find out if it's created or not.
When a process is created your plugin is called, but it is also called when the process is destroyed.
so if you save the processid and peprocess of a process then you can be sure that the next time you get THAT processid/peprocess combination it's a termination

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
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 -> Plugin development 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