制作应用系统关键流程 [英] making application System Critical Process

查看:49
本文介绍了制作应用系统关键流程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 C# 中创建一个关键系统进程,使其无法从任务管理器中结束?

how can i make a Critical System Process so that it can't be ended from task manager in C#?

推荐答案

一般来说,这样做是不可能的,因为它会夺走用户的控制权.Windows 甚至允许您杀死高度关键的进程,例如 csrss.exe(请不要尝试杀死它,保证即时 BSOD).

In general, it is not possible to do so because it would take away control from the user. Windows even allows you to kill highly critical processes such as csrss.exe (don't try killing it, please, instant BSOD is guaranteed).

Raymond Chen 很好地解释了为什么会这样:

The very good reasons why this is so have been very well explained by Raymond Chen:

程序和用户之间的军备竞赛

如果您不希望用户终止您的进程,请将其设为服务并剥夺用户的管理员权限.

If you don't want users to kill your process make it a service and take away administrator privileges from your users.

这篇关于制作应用系统关键流程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆