禁用 Windows 任务管理器,这样他就不能杀死我的进程 [英] Disable Windows Task Manager so he cant kill my process

查看:33
本文介绍了禁用 Windows 任务管理器,这样他就不能杀死我的进程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发了一个可以计算时间的应用.

两小时后,它说请停止播放,否则我将关闭计算机".因此,我的兄弟可以从Windows 任务管理器"中停止该进程.有没有可能阻止它?所以他不能在那里杀死它?

After two hours its says "please stop playing or I will shut down the computer". So, my brother can stop the process from the "Windows Task Manager". Is it possible to stop it? So he can't kill it form there?

我尝试在窗体关闭时重新打开应用程序 - 还有其他方法吗?

I have tried to reopen the app when the windows forms close - any other ways?

推荐答案

也许使用 Service 是更好的方法,因为它在任务管理器中比较难找到,如果杀死"它应该会自动重启,但只要用户拥有管理员权限,他总是可以禁用这些东西.

Maybe using a Service is a better approach, because it is harder to find in the task manager and it should automatically restart if "killed", but as long as the user has administrator rights he is always able to disable such things.

请参阅本演练如何使用 C# 创建服务.

See THIS WALKTHROUGH on how to create a service with C#.

这篇关于禁用 Windows 任务管理器,这样他就不能杀死我的进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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