Can I run a program from a visual studio without additional rights?

Ok, so initially I was going to ask about drag and drop in Windows 7. I found the answer I was looking for here: C # Moving and dropping drag and drop does not work on windows 7 . This basically means that since I run Visual Studio (and then my program) with higher permissions, some kind of isolation layer prevents me from dragging files from Explorer to my program.

The reason I run the visual studio with the increased permissions is because I need administrator rights to run the site locally in IIS, and the web application is in my solution. Is there a way I can show visual studio to run and debug my other applications as a regular user?

+3
source share
6 answers

Why don't you just create another short snapshot on your desktop that launches the devenv.exe file without raising it?

+2
source

MSDN Status :

Launch an unpowered application from an elevated process

, , , , , Im . , , , . , , . , , , . , Windows Vista®. .

(, VS), . :

  • ,
  • debuggee
  • VS
+2

VS , VS, . - ( — IE8 FireBug - ).

+1

ChangeWindowMessageFilter , / , Explorer:

ChangeWindowMessageFilter (WM_DROPFILES, MSGFLT_ADD);
ChangeWindowMessageFilter (WM_COPYDATA, MSGFLT_ADD);
ChangeWindowMessageFilter (0x0049, MSGFLT_ADD);

: http://blog.helgeklein.com/2010/03/how-to-enable-drag-and-drop-for.html

+1

:

runas /trustlevel:0x20000 "C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe"

F5 Studio.

+1

Visual Studio , Visual Studio.

0xA3, VS , ( ) .

, "Attach to Process" Debug Visual Studio .

0

Source: https://habr.com/ru/post/1764005/


All Articles