Skip to content

Prevent Killing Process From Task Manager

try abc

try abc

Asked Jul 9, 2008, 10:25 PM EDT5 answers
Share
LinkedInX
    Hello All,
                I am working On an Windows application which require to exit only from within it self and Not from any other External source.. it means user can not stop or kill the application Process by Task Manager. and if he wish to close the application there is only option to close from whithin application. does Any one have a Idea how to so this??

4 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    What if the application dead locks and NEEDS to be shut down? How would that happen? I'm sure a full system restart wouldn't be a very well received option. I dont think theres really any way to catch that and prevent it, Windows needs to have access to the process in order to shut it down just in case it goes into a bad state or locks up, or worse, starts writing a file or something thats hogging all of your memory and you cant shut it down manually.

    Its generally a good idea to leave that back door open if you can :)
    0
  • 0
    I use Process.Kill() to shut down processes for updating, but thats about it
    0
  • 0
    you may use several processes to watchout eachother. One starts another seconds starts first etc if one die another starts it
    0
  • try abc
    0
        I think  you are right. but the requirment is not to shutdown application from Task manager and Only option is the software..  is there any other solution for this?? if not how to take control of the running Process and make it shutdown proof for task manager??
    0
  • 1 short reply
    • 0

      it look like a virus

      0