Running VS 2008 SP1 under Windows 7. Sometimes (especially when working with COM), it is necessary to run VS as administrator.
Running an application elevated does however have nasty side effects. For instance, you cannot drag and drop items from unelevated processes. This is always true for Explorer.exe since it cannot (and should not) be run elevated.
Hence, dragging files from Explorer to VS is impossible. This is a disaster!
I'm wondering if VAX might be able to provide a hack for this. Please see this thread:
http://social.msdn.microsoft.com/Forums/en-US/windowsuidevelopment/thread/2fa935cf-be57-4bcc-9b96-7ee5a6b2b7a5/
A VAX hack possible?
Basically, to allow drag'n'drop from all processes, all you need to do is this (inside VS of course):ChangeWindowMessageFilter(WM_DROPFILES, MSGFLT_ADD);
ChangeWindowMessageFilter(WM_COPYDATA, MSGFLT_ADD);
ChangeWindowMessageFilter(0x0049, MSGFLT_ADD);