Skip to content

Commit 6fc3640

Browse files
committed
Fixing broken auto elevation during injection
1 parent 9297c0c commit 6fc3640

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Snoop/InjectorLauncherManager.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,9 @@ public static void Launch(ProcessInfo processInfo, IntPtr targetHwnd, string ass
7171
var commandLine = Parser.Default.FormatCommandLine(injectorLauncherCommandLineOptions);
7272
var startInfo = new ProcessStartInfo(injectorLauncherExe, commandLine)
7373
{
74-
UseShellExecute = false,
74+
UseShellExecute = true,
7575
CreateNoWindow = true,
76+
WindowStyle = ProcessWindowStyle.Hidden,
7677
Verb = processInfo.IsProcessElevated
7778
? "runas"
7879
: null

0 commit comments

Comments
 (0)