如何防止Windows应用程序被杀死/终止或停止 [英] How to prevent a windows application from being killed/terminate or stop

查看:1949
本文介绍了如何防止Windows应用程序被杀死/终止或停止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Windows c ++应用程序运行在正常(非管理员)用户下。我希望没有用户应该能够以任何方式关闭/停止/终止此应用程序。

I have a windows c++ application which runs under the normal (non-admin) user. I want that no user should be able to close/stop/terminate this application by any means.

是否有任何活动的目录组策略可以实现这一点,或者我需要为同一个做一些编程

Is there any active directory group policy available to achieve this or I need to do some programming for the same

推荐答案

我知道的唯一方法是,你的应用程序将启动运行2个或更多的后台进程,检查每几毫秒,你的应用程序和其他背景运行,如果不是重新启动它们。

The only way I know is that your app will launch run 2 or more background processes that check every few ms that your app and the other backgrounds are running, if not it re-launches them.This makes it very had or impossible to terminate your app manually.

您的应用程序可能需要将其状态保存到磁盘,如果需要重新启动stat is was when destroyed

You application might need to save its state to disk , if it needs to re-launch to the same stat is was when destroyed

这篇关于如何防止Windows应用程序被杀死/终止或停止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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