Click here to Skip to main content
15,910,130 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi please can anyone tell me how to enable Drag & Drop when running app as admin in windows 7 ?
because it's only works without running it as admin.
Posted
Comments
Sergey Alexandrovich Kryukov 13-Mar-12 0:19am    
Maybe, just the opposite?
--SA

There's nothing to do. I've never heard of the problem, nor can I duplicate it in any of my sandbox apps for Drag & Drop.

Of course, I don't run UAC and always run as an admin anyways.

But, 5 seconds in Google revealed this little blog post[^] and the method to fix the problem.

Basically, you cannot drag from a lower privilege process into one running as an admin for security reasons. The only work around is to disable UAC or prevent UAC prompting for credentials if the user account is in the administrators group, thereby forcing everything an admin user runs to launch with admin level priv's.
 
Share this answer
 
v4
Comments
Leecherman 13-Mar-12 0:06am    
the app required to run as admin in windows 7 ( to edit the registry ) also the UAC is enabled, so drag and drop is not working with me until i disabled the UAC
Dave Kreskowiak 13-Mar-12 0:09am    
Yep. I just got done telling you that this behavior is by design because of security concerns. Your only work around is to disable UAC.
Leecherman 13-Mar-12 0:15am    
thanks for your reply, but this program CCleaner running as admin and also it allow drag & drop files into it! ( CCleaner in options tab -> include )
Sergey Alexandrovich Kryukov 13-Mar-12 0:21am    
What's so wonderful here? If the program is run with elevated privileges, it usually has more... well, privileges, not less.
--SA
Leecherman 13-Mar-12 19:45pm    
So how can i make my app more privileges?
A solution exists: digital post[^]
 
Share this answer
 
Comments
[no name] 6-Apr-14 20:06pm    
Do you really think that the OP is still waiting after 2 years?
Focuscar 6-Apr-14 20:09pm    
Yet this is a future reference for anyone using google.
[no name] 6-Apr-14 20:24pm    
And yet has been asked and answered 50 million times elsewhere. Pointing people at postings that were not even written at the time of the posting. If you really wanted to be helpful, I would think that you would point them to a real answer instead of posting just to boost your rep.
Focuscar 7-Apr-14 9:38am    
And yet a simple pinpoint reference shall always be an offence for arrogant people, and as such boosting a reputation of 0 was clearly my intention, especially for people living dependent on reputation stats.

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