如何阻止程序运行 [英] How Do I Block A Program From Running

查看:76
本文介绍了如何阻止程序运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Windows中我可以通过registry.But如果用户重命名指定的程序然后如何阻止它?有没有办法阻止c#?

解决方案

< blockquote>不,不是真的。除非你可以挂钩系统,并检查每个正在执行的文件,看它是否包含你不喜欢的程序。

但我甚至不会尝试在.NET中这样做 - 它是本机代码任务。



你为什么要这样做?只需从PC中删除exe ...


In windows I can block a program by registry.But If user rename the specified program then how to block that?Is there any way to block by c#?

解决方案

No, not really. Unless you can hook into the system, and examine every file being executed to see if it contains the program you don't like.
But I wouldn't even try to do that in .NET - it's a native code task.

And why would you want to do that? Just remove the exe from the PC...


这篇关于如何阻止程序运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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