Prevent C# app from process kill

后端 未结 9 1649
我寻月下人不归
我寻月下人不归 2020-11-29 11:39

How can I protect my C# app from someone killing its process via taskman or programmatically?

Here is my scenario:

App A is an MFC app developed by another t

9条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-29 12:05

    You can't - as long as the user has the right to call TerminateProcess on your program, you can't prevent End Process from killing you immediately in task manager. Raymond Chen posted on this some time ago: The arms race between programs and users

提交回复
热议问题