UAC高程不允许拖放 [英] UAC elevation does not allow drag and drop
问题描述
我有一个.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.
这篇关于UAC高程不允许拖放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!