CBT钩子不工作在Windows Vista钩子、工作、CBT、Windows

2023-09-03 04:40:04 作者:男人毁在右手上。

我试图用一个CBT钩子来接收HCBT_MOVESIZE通知。它工作正常的所有​​应用程序,当我从我的桌面上的文件夹运行我的程序。当我安装了应用程序的程序文件和程序文件(x86文件夹中我只收到通知,我自己的应用程序的.exe文件的签署,并完全在Windows XP中,我只收到的是Vista x86这些错误/ 64。任何人都可以提供关于如何解决此有什么建议?谢谢!

I am trying to use a CBT hook to receive HCBT_MOVESIZE notifications. It works fine for all applications when I run my program from a folder on my desktop. When I install the application to the "Program Files" or "Program Files (x86" folder I only receive notifications for my own application. The .exe file is signed and works perfectly in Windows XP. I am only receiving these errors in Vista x86/x64. Can anyone offer any suggestions on how to troubleshoot this? Thanks!

推荐答案

可能是一个UIPI问题:

Might be a UIPI issue:

用户界面特权隔离   (UIPI)实现的限制   Windows子系统是prevents   来自低权限的应用   发送窗口消息或安装   挂钩在更高的特权过程。

User Interface Privilege Isolation (UIPI) implements restrictions in the windows subsystem that prevents lower-privilege applications from sending window messages or installing hooks in higher-privilege processes.

这是微软的 Windows完整性机制设计