UAC和远程控制
如果您像我一样开发过远程控制应用程序,那么您一定知道,当UAC对话框弹出时,屏幕捕获并没有捕获该对话框,因此无法继续控制。
有人知道这个问题的解决办法吗?
If you've developed a remote control application as I've done, you must know that screen capture doesn't capture the UAC dialog when that dialog is pop up, and as a result the control can't be continued.
Anybody know a solution to this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
据我了解,我相信你所问的问题是可能的。
除了远程控制软件之外,针对残障人士的测试自动化软件和辅助应用程序还需要一种与受保护的 UI 和安全桌面进行交互的方法。
关于 UAC 给远程控制软件带来的问题,请参见:
http://www.uvnc.com/vista/
http://groups.google.com /group/microsoft.public.platformsdk.security/browse_thread/thread/acb3a0ccb7682506/d05b0a3026366423
这些链接包含有关 UltraVNC 项目如何围绕 UAC 工作的信息。 UltraVNC 是开源的,因此代码也可能是一个很好的资源。
我认为此类问题的解决方案可能总是涉及将高完整性任务委托给服务。我认为没有其他方法可以解决这个问题(除了禁用各种 UAC 设置之外)。
不用说,编写一个对系统具有异常高水平控制的应用程序是一件棘手的事情——设计时必须非常小心,以确保它可以安全使用而不会被利用。 :)
另请参阅:
http://www.codeproject.com/KB/vista- security/SubvertingVistaUAC.aspx
http://www.codeproject.com/ KB/vista-security/VistaSessions.aspx
http://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/4aadadbd-fc3d-4239-ba0f-4d81f17ec938
From what I understand, I believe what you're asking about is possible.
In addition to remote control software, test automation software and accessibility apps for those with disabilities also need a way to interact with protected UI and the secure desktop.
Regarding the issues UAC presents for remote control software, see:
http://www.uvnc.com/vista/
http://groups.google.com/group/microsoft.public.platformsdk.security/browse_thread/thread/acb3a0ccb7682506/d05b0a3026366423
Those links contain info on how the UltraVNC project works around UAC. UltraVNC is open source, so the code might be a good resource as well.
I think the solution to this type of problem probably always involves delegating high-integrity tasks to a service. I don't think there's any other way around it (besides disabling various UAC settings).
And needless to say, writing an app that has an unusually high level of control over the system is a tricky matter - a lot of care must go into the design to make sure it's safe for use without exploitation. :)
See also:
http://www.codeproject.com/KB/vista-security/SubvertingVistaUAC.aspx
http://www.codeproject.com/KB/vista-security/VistaSessions.aspx
http://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/4aadadbd-fc3d-4239-ba0f-4d81f17ec938
这就是 UAC 对话框的整个点。
所以,回答你的问题,“不,没有人知道 - 因为它不可能或不应该是可能的”。
That is the entire point of the UAC dialog.
So, to answer your question, "No, nobody knows - because it isn't or shouldn't be possible".