Click here to Skip to main content
15,888,271 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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,
Posted

1 solution

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).
 
Share this answer
 
v2
Comments
Jammer 7-Dec-10 14:45pm    
You know, I hadn't even thought of that particular solution. Nice ...
Jammer 9-Dec-10 14:16pm    
Actually, I've realised there are lots of things that won't work unless I'm running as admin. I have an option to open files in their respective applications. UAC is denying that as well. Hmm ...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900