Posted: Sun Jun 15, 2014 2:07 pm Post subject: Threads in a process
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
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
Posted: Sun Jun 15, 2014 2:14 pm Post subject:
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. _________________
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