UAC高程不允许拖放 [英] UAC elevation does not allow drag and drop

查看:205
本文介绍了UAC高程不允许拖放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个.net应用程序,由于访问一些低级别的API API,我需要提升管理员权限。我正在使用requestExecutionLevel在应用程序清单中设置为requireAdministrator。

I have a .net application where I need to elevate with admin rights due to accessing some low level win APIs. I am doing it using requestedExecutionLevel in application manifest set to requireAdministrator.

该应用程序还需要从Windows资源管理器接收拖放请求。我已经尝试在清单中将uiAccess设置为true,并符合其他要求,如应用程序的验证码签名,安装在限制位置(程序文件)等。应用程序正常运行,没有任何错误(在vista,win 7)上,用户获取UAC提示提升。

The application also needs to receive drag and drop requests from windows explorer. I have tried setting uiAccess to true in manifest and complying with other requirements like authenticode signing of the application, installing in restricated location (program files) etc. The appliction is running properly without any error (on vista, win 7) where user gets the UAC prompt for elevation.

但仍然无法接受拖放请求。

But still not able to accept drag and drop requests.

推荐答案

较低权限的进程无法在Vista及更高版本上拖放到更高权限的进程。

Lower-privileged processes cannot drag-and-drop to higher-privileged ones on Vista and later.


底部行是从Windows资源管理器拖放不会
工作,如果您的应用程序升高。

The bottom line is that drag and drop from Windows Explorer will not work if your application is elevated.

http://blogs.msdn.com/b/patricka/archive/2010/01/28/q-why-doesn-t-drag-and-drop - 工作 - 当 - 我 - 应用 - 是 - 运行提升的一个强制完整性控制和uipi.aspx

这篇关于UAC高程不允许拖放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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