问题描述
这与UAC有关。如果在Windows7中打开UAC,那么 我使用SetWindowsHookEx的Excel插件(DLL)失败。这就是我调用播放挂钩功能的方式, g_hHook = SetWindowsHookEx(WH_JOURNALPLAYBACK,
(HOOKPROC)JrnlPlayBackHook,g_hInstance,0); GetLastError()给了我5个accessDenied。有人可以帮帮我吗。一旦我关闭UAC它就可以正常工作而没有任何问题。这是在VC ++中开发的
This is related to UAC. If UAC is switched ON in Windows7 then my Excel addin (DLL) which is using SetWindowsHookEx is failing. This is how I am calling the playback hook function, g_hHook = SetWindowsHookEx(WH_JOURNALPLAYBACK, (HOOKPROC) JrnlPlayBackHook, g_hInstance, 0); The GetLastError() gives me 5 accessDenied. Can someone please help me. Once I switch Off UAC it works fine without any issue. This is being developed in VC++
我听说用户界面权限隔离(UIPI)在Windows子系统中实现限制,阻止低权限应用程序发送
窗口消息或在更高权限的进程中安装挂钩。允许更高权限的应用程序将窗口消息发送到较低权限的b
进程。
I heard about 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. Higher-privilege applications are permitted to send window messages to lower-privilege
processes.
sriram
推荐答案
感谢您在MSDN论坛上发帖。
Thanks for posting in the MSDN Forum.
我将参与一些专家进入你的问题,看看他们是否可以帮助你。可能会有一些时间延迟,请耐心等待。
I will involve some experts into your issue to see whether they can help you. There might be some time delay, appreciate for your patience.
祝你有个美好的一天,
Tom
这篇关于如果Windows 7 UAC处于打开状态,Excel插件无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!