C#: How to prevent user to stop or kill an application

T.Zacks 3,986 Reputation points

I am curious to know that how could i prevent user to kill or stop an application. there are few ways by which user can stop or kill an application.

1) click on cross button
2) kill application from task manager etc

please discuss how to write a code as a result user can not stop or kill application using any way. is it possible to develop such kind of winform or console application using c#?


An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,621 questions
{count} votes

2 answers

Sort by: Most helpful
  1. P a u l 10,496 Reputation points

    The ability to terminate a process is something that an end user should always be able to do, even at their own peril & if that ability could be suppressed it would be exploited by virus makers.

    0 comments No comments

  2. RLWA32 43,046 Reputation points

    I think you will find the following blog article to be enlightening -

    The arms race between programs and users

    0 comments No comments