大家好,如何保护进程不被杀死? [英] Hi everyone,How to protect a process not be kill?

查看:116
本文介绍了大家好,如何保护进程不被杀死?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,如何保护进程不被杀死?
该应用程序只能自己关闭,不能通过任务管理器等关闭.
谢谢大家.

Hi everyone,How to protect a process not be kill?
The application can only be close oneself, not through the task manager, etc.
Thank you all.

推荐答案

这肯定有可能.我建议在这里阅读以下答案:
http://stackoverflow.com/questions/187983/how-do-i-hide-a-process-in-task-manager-in-c [
This is certainly possible somehow. I suggest reading through these answers here:
http://stackoverflow.com/questions/187983/how-do-i-hide-a-process-in-task-manager-in-c[^]
I would suggest you to not implement this feature though - since this is not user friendly. One option that may be easy to implement is to have a windows service in the background that checks if your app is running and restarts it if required. Either way - please don''t do this since it is an almost virus like behavior.


我完全同意Sandeep.
一言以蔽之,您无法提供用户终止进程的特权.

检查以下链接,您会发现它有趣
http://blogs.msdn.com/b/oldnewthing/archive/2004/02/16/73780.aspx [ ^ ]

欢呼
I agree completely with Sandeep.
In one word, you cannot provided the user has the privilege to terminate process.

Check the following link, you will find it interesting
http://blogs.msdn.com/b/oldnewthing/archive/2004/02/16/73780.aspx[^]

cheers


Thanks for your help, in fact, I am achieving a management program that need to prevent unauthorized users to close the program, really not virus program. I don't like virus maker


这篇关于大家好,如何保护进程不被杀死?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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