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

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

问题描述

我有一个.NET应用程序,我需要与由于访问一些低级别的API取胜管理员权限提升。我在应用程序清单中设置为requireAdministrator使用requestedExecutionLevel这样做。

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,并像应用程序的authenti code签约等要求外,在restricated位置安装(程序文件)等机应用是没有任何错误正常运行(在Vista上,赢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.

<一个href=\"http://blogs.msdn.com/b/patricka/archive/2010/01/28/q-why-doesn-t-drag-and-drop-work-when-my-application-is-running-elevated-a-mandatory-integrity-control-and-uipi.aspx\" rel=\"nofollow\">http://blogs.msdn.com/b/patricka/archive/2010/01/28/q-why-doesn-t-drag-and-drop-work-when-my-application-is-running-elevated-a-mandatory-integrity-control-and-uipi.aspx

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

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