如何让一个程序,是不可能在Windows中被杀害? [英] How can I make a program that's impossible to be killed in Windows?

查看:195
本文介绍了如何让一个程序,是不可能在Windows中被杀害?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在作出Jabber客户端为我们的内部使用在我们公司,不管怎样,我们需要当用户试图杀死程序真正的重启它或者只是让用户不可能杀死客户捕捉瞬间。

We are making a Jabber client for our internal use in our company and somehow we need to catch the moment when the user tries to kill the program to actually restart it or just make impossible for the user to kill the client.

这可能吗?

我们的Jabber客户端将被写在C#。

Our Jabber client will be written in C#.

我如何去实现呢?

推荐答案

你所要求的具有意义远远超出了你被要求完成的任务。例如,如果进程不能被杀死,怎么可以在Windows系统正常关机?

What you are asking for has implications far beyond what you are being asked to accomplish. For example, if the process cannot be killed, how can Windows shut down normally?

我不知道你的老板,所以你将不得不衡量的了解自己的水平。如果用户/管理员问我这个,我会更深入的探讨,以找到他们真正的意思。我怀疑是你的用户希望的默认关闭行为,尽量减少到系统托盘,而不是退出程序,类似于大多数即时消息客户端,而不是不能够永远关闭程序都没有。

I don't know your boss, so you will have to gauge their level of understanding for yourself. If a user/manager asked me for this, I would have to probe deeper to find what they really mean. My suspicion is that your users want the default close behavior to minimize to the system tray rather than exit the program, similar to most instant message clients, rather then not be able to ever close the program at all.

这篇关于如何让一个程序,是不可能在Windows中被杀害?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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