低级鼠标挂钩:处理阻止捕获的应用程序
我注意到我的 mousehook 代码在与 EA 的 Origin 商店交互时无法工作。基本上,当单击窗口内部时,它不会调用我在窗口中注册的回调(使用 SetWindowsHookEx 函数)。我尝试使用Steam,没有任何问题。
我非常确定这是某种机制的一部分,旨在防止流氓恶意软件控制您的计算机以访问帐户信息。我很好奇它是如何完成的。我的猜测是,我需要设置一些驱动程序魔法来从更接近硬件的层规避这个问题?
免责声明:我当然不是试图创建任何恶意软件,我只是为了软件自动化而构建强大的工具。显然,权力越大,责任越大。
I noticed that my mousehook code fails to work when interacting with EA's Origin store. Basically when clicking inside of the window, it does not call the callback I registered with windows (using the SetWindowsHookEx
function). I tried with Steam and there are no problems there.
I am pretty certain that this is a part of some mechanism meant to prevent rogue malware from taking control of your computer to access account information. I'm curious as to how it is done. My guess is that I'll need to set up some driver magic to circumvent this from a layer closer to the hardware?
Disclaimer: I am of course not attempting to create any malicious software, I am just building powerful tools for the purposes of software automation. Obviously, with great power comes great responsibility.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
他们可能有自己的钩子,故意不为窗口内的事件调用 CallNextHookEx 。
It's possible that they have their own hook that deliberately doesn't call
CallNextHookEx
for events within their window.