prevent users prevent users from killing process from task manager - Help needed RRS feed

  • Question

  • We have our agent process that runs onto clients, it acts like security service. I want to prevent users (if possible Administrator also) from killing that process from task manager.


    I am very novice to C code, can anyone please tell me a way to do it in C; code for the same or some links around it would be a great help.

    Wednesday, May 27, 2009 7:07 AM

All replies

  • If the process is running as the logged in user, there is nothing that you can do to prevent the user from ending the process. If it is running as a service, then standard users wouldn't be able to stop it but there isn't any way to prevent an Administrator from stopping it.
    Wednesday, May 27, 2009 11:59 AM
  • 1. In my case i want to run it as service.

    2. If Admin is not able to stop it, then also it is fine but non admin users should be blocked from killing it from Task manager
    Wednesday, May 27, 2009 12:27 PM
  • And they are.  Run taskmgr, you won't see anything in session zero listed without elevating to admin.
    Wednesday, May 27, 2009 7:32 PM