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 


Threads in a process

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

Joined: 05 Mar 2014
Posts: 21

PostPosted: Sun Jun 15, 2014 2:07 pm    Post subject: Threads in a process Reply with quote

Hi everyone, I would like to know any function/method that prevent my thread to be closed from external process (process hacker, process explorer).

My program is too simple, it's a .DLL (called by game.exe) that create a thread and show a form. But with ProcessHacker/ProcessExplorer anyone can terminate my thread. So there's any way to prevent it? Without hooks.. Maybe using multithread, but I don't know how to do that

Thank you everyone
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Sun Jun 15, 2014 2:14 pm    Post subject: Reply with quote

Without hooks no not really. People can use various high-level system API to cause your thread to exit, as well as lower-end kernel level API to do it too.

To fully prevent your thread from terminating it will require a bit of work since you will need to remove every possible way they can cause it to exit.

Keep in mind, as well, that its not just simple calls like SuspendThread/TerminateThread that can cause it to exit. People can inject some code into your threads loop and cause it to exit as well. They can also force your window to close instead of just attacking the thread itself.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
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