UAC elevation does not allow drag and drop [duplicate]

左心房为你撑大大i 提交于 2019-11-26 14:23:26

问题


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.

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.


回答1:


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

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-work-when-my-application-is-running-elevated-a-mandatory-integrity-control-and-uipi.aspx



来源:https://stackoverflow.com/questions/8239271/uac-elevation-does-not-allow-drag-and-drop

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!