Drag and drop broken/disabled when running as an administrator ?

When the software I am developing is (necessarily) relaunched as an adminstrator, drag and drop is then disabled. My app can open explorer windows to drive letters. Drag and drop are also disabled to those as well.

Is this behavior really correct ?

How can I re-enable drag and drop features in my software whilst it is running under full privileges ? Especially DAD for items dropped on MY window which cannot harm anything ?

If I can't work it's a pretty poor show in my opinion, and this OUGHT to be properly documented under UAC so we are all aware of it.

To see what I mean, simply run "wordpad.exe" as an administrator, and try to drop anything onto it. One gets a "no entry" sign.

To do this browse to C:\program files\windows nt\accessories\

and select Wordpad.exe and use the right mouse to "run as administrator"

Drag and drop is broken now, as it is for my app, when elevated.

Run wordpad normally, and my app normally and drag and drop work ok on both these.

Is it really necessary to disabled DAD for apps, both ways when running as admin ?

[1167 byte] By [shaunhw] at [2007-12-27]
# 1

Hello Shaunhw,

I also have got the same problem.

Please let me know if you got anything regarding this.

Thanks and Regards,

Priyanka

PriyankaSiwach at 2007-9-4 > top of Msdn Tech,Software Development for Windows Vista,General Windows Vista Development Issues...
# 2

I think you are running into the security issue where lower permission processes cannot send messages to higher permission processes. Explorere.exe, running at normal permission levels, cannot send the window message to winword.exe, running elevated.

It can be irritating, but it truly is for your safety--it prevents a malicious lower level process looking for an elevated window and then sending all kinds of nasty window messages...or even peeking at them.

RobKenny-MSFT at 2007-9-4 > top of Msdn Tech,Software Development for Windows Vista,General Windows Vista Development Issues...
# 3

We are experiencing the same problem. What if I *want* to receive drag-and-drop events because I have fully sandboxed them? Note this is not just any messages.

I hope there is a workaround. Otherwise, this would be like founding a bank where no one is allowed to deposit or withdraw money because of the potential for misuse -- not a very useful bank.

Please tell me that there is a technique for allowing drag-and-drop to administrator apps!

--Steve

SKlein at 2007-9-4 > top of Msdn Tech,Software Development for Windows Vista,General Windows Vista Development Issues...
# 4

I am experiencing the same problem. I think admin should have a method to run window explorer as admin easily. If explorer process is running in non-elevated mode, every run window explorer as admin just pops up non-elevated one. To run explorer as admin, kill non-elevated explorer process and rerun it as admin is needed. It is so annoying.

I think there is no problem if explorer running in elevated mode displays some warning information(such as a shield icon) to inform user of its privilege elevation.

I hope there will be good solution to this problem.

Thanks

SucceedEgg at 2007-9-4 > top of Msdn Tech,Software Development for Windows Vista,General Windows Vista Development Issues...

Software Development for Windows Vista

Site Classified