Can I prevent a user from using windows task manager to end a process?

Posted by Russ on Stack Overflow See other posts from Stack Overflow or by Russ
Published on 2010-05-06T15:26:29Z Indexed on 2010/05/06 15:38 UTC
Read the original article Hit count: 167

Filed under:
|
|

I have a c# 4.0 application that I hear grumblings and rumors about problems with. Now, this application has a global unhandled exception handler that reports back to me with errors. I also know that it works because SOME people fill it in, and submit it.

It seems though; that a large number of people do NOT fill it in, but instead, use the Windows Taskmanager to end the process.

Is it possible to prevent a user from using the Windows Taskmanager to end a specific process? My goal would be that if the application crashes, the form that the user is presented with prevents the process from being ended.

I'll also accept steps that would prevent the Windows Taskmanager from being launched.

I know I have seen some processes come up with an "Access Denied" prompt when I try to kill it in TaskManager, however I suspect that the windows team has made this very difficult, if not impossible to achieve.

© Stack Overflow or respective owner

Related posts about c#

Related posts about .net-4.0