拖放联合会 [英] Drag 'n Drop & UAC

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

问题描述



我有点不确定如何解决这个特定的问题.我的应用程序允许用户将文件拖放到其他应用程序.该功能运行正常且符合预期.

如果放置目标以管理员身份运行,而我的应用程序没有运行,则会出现问题.

对于我的应用程序针对的特定用户(包括我自己),由于多种原因,这是一种非常常见的情况.例如,由于兼容性问题,我不得不以管理员身份运行目标应用程序,而这超出了我的控制范围.因此,对于我的应用程序的拖放核心功能,我还需要管理员权限.

我是否应该谨慎行事并坚持在汇编清单级别上以管理员身份运行我的应用程序?还是有更好的方法来处理这种情况?

据我了解,如果目标应用程序以管理员身份运行,则越过边界的* only *方法也将以管理员身份运行.

非常感谢,

Hi,

I''m a little unsure how to proceed with this particular problem. My application allows users to drag and drop files to other applications. That functionality is working fine and as expected.

The problem arises if the target of the drop is running as administrator and my application is not.

For the particular users that my application is aimed at (myself included) this is a very common scenario for a number of reasons. For instance I have to run my target application as admin due to a compatibility problem that is way beyond my control. So for the drag and drop core function of my application I also need admin rights.

Should I throw caution to the wind and insist at the assembly manifest level that my application be run as admin? Or is there a better way to handle this scenario?

As I understand it if the target app is running as admin the *only* way to cross that boundary is by also running as admin.

Many Thanks,

推荐答案

您可以做的是,将对象拖动到以管理模式运行的应用程序上(而您的应用程序不是't).
What you could do is change the icon when the object is dragged over an app that''s running in admin mode (and your app isn''t).


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

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