Prevent killing an app through "End task"
-
Hello, Can anyone tell me how to prevent my program being killed by pressing "End Task" of task manager ? I have seen that when we try to kill some apps it tells that we cannot terminate it, because of "some" reason. Thanks James
-
Hello, Can anyone tell me how to prevent my program being killed by pressing "End Task" of task manager ? I have seen that when we try to kill some apps it tells that we cannot terminate it, because of "some" reason. Thanks James
Basically, you can't prevent this. There are various reasons for not being able to kill the process, like the process is running under a priviledged or system account, is a system service where Windows cannot work without it, there is a debugger attached to the process, ... But in all these cases, you're application would not be running under these circumstances. I've "heard" of a couple people doing this, but noone has ever come up with any code examples demonstrating it. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-
Hello, Can anyone tell me how to prevent my program being killed by pressing "End Task" of task manager ? I have seen that when we try to kill some apps it tells that we cannot terminate it, because of "some" reason. Thanks James
-
Basically, you can't prevent this. There are various reasons for not being able to kill the process, like the process is running under a priviledged or system account, is a system service where Windows cannot work without it, there is a debugger attached to the process, ... But in all these cases, you're application would not be running under these circumstances. I've "heard" of a couple people doing this, but noone has ever come up with any code examples demonstrating it. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
If you want to do this for a security program of some sort, you can have the program called under the user Administrator, and leave the computer on with a user account that doesn't have administrative rights. Another way, depending on what you're trying to do, might be to start the program as a Windows service, and again, use a user account that doesn't have access to the Services control panel.
-
If you want to do this for a security program of some sort, you can have the program called under the user Administrator, and leave the computer on with a user account that doesn't have administrative rights. Another way, depending on what you're trying to do, might be to start the program as a Windows service, and again, use a user account that doesn't have access to the Services control panel.
Why are you telling me this? I didn't post the question. Also, I can't quite understand what your saying in the first paragraph, but it doesn't sound like a good idea. You NEVER use the Administrators account for anything other than system administration. Applications/Services/Servers should NEVER use this account. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-
Why are you telling me this? I didn't post the question. Also, I can't quite understand what your saying in the first paragraph, but it doesn't sound like a good idea. You NEVER use the Administrators account for anything other than system administration. Applications/Services/Servers should NEVER use this account. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
Oops, sorry. Does a notification get sent to the original poster, or just to you? And you're right, Administrator isn't the rght place to do it. How about a user specifically for the task, like what ASP does? My bad on both the post and the idea.
-
Oops, sorry. Does a notification get sent to the original poster, or just to you? And you're right, Administrator isn't the rght place to do it. How about a user specifically for the task, like what ASP does? My bad on both the post and the idea.
Only the person you reply to gets a notification email. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome