如何阻止钩子? [英] How to block a Hook?

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

问题描述


我有一个全局的钩子应用程序(钩子键盘),运行此应用程序,然后创建另一个包含TextBox的应用程序-我想在此TextBox上阻止该钩子(第二个应用程序运行时).这个怎么做?在此先感谢您的帮助.

Hi,
I have a global hook app (hook Keyboard), I run this app, then I create an other app which contains a TextBox - I want to block that hook on this TextBox (when the second app runs). How to do this? Thank in advances for your help.

推荐答案

您要阻止钩子 [^ ]?询问 [ ^ ] !!
You want to block a hook[^]? Ask him[^]!!


据我所知,您不能.如果可以的话,它将破坏钩子的目的,并严重损害整个系统的完整性.别忘了,所有的钩子都链接在一起,因此每个钩子都必须调用前期钩子.从应用程序级别禁用"或阻止"任何挂钩的能力将破坏整个链,这将是巨大的不稳定.

如果您想到了它,您可能会明白自己并不是真的想要它.

—SA
To best of my knowledge, you cannot. If your could, it would defeat the purpose of hooks and badly compromise whole system integrity. Don''t forget, all hooks are chained together, so every hook is mandated to call previoud hook. The ability to "disable" or "block" any hook from application level would break the whole chain, which would be a huge instability.

If you think of it you will probably understand you don''t really want it.

—SA


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

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