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

T.Zacks 3,986 Reputation points
2021-10-10T12:01:54.923+00:00

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#?

Thanks

C#
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
    2021-10-10T12:14:38.063+00:00

    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
    2021-10-10T15:14:27.77+00:00

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

    The arms race between programs and users

    0 comments No comments