From f9c4d4b45eeec77034261a0dd1540385a1c327ac Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Tue, 23 Sep 2025 12:46:19 +0200 Subject: [PATCH] Hide started app window --- runas_windows.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runas_windows.go b/runas_windows.go index 5183883..418f530 100644 --- a/runas_windows.go +++ b/runas_windows.go @@ -148,7 +148,7 @@ func RunElevated(executable, workingDir string, args []string, awaitProcCompleti directory: directory, file: file, parameters: parameters, - show: windows.SW_SHOW, //HIDE, + show: windows.SW_HIDE, mask: SEE_MASK_NOCLOSEPROCESS, } if !shellExecuteEx(execInfo) {