Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
LordNoteworthy committed Feb 13, 2024
1 parent 26cab4a commit b25c2ca
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
9 changes: 9 additions & 0 deletions security_linux_mac.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
//go:build !windows
// +build !windows

package pe

import "os/exec"

func hideWindow(cmd *exec.Cmd) {
}
13 changes: 13 additions & 0 deletions security_windows.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//go:build windows
// +build windows

package pe

import (
"os/exec"
"syscall"
)

func hideWindow(cmd *exec.Cmd) {
cmd.SysProcAttr = &syscall.SysProcAttr{HideWindow: true}
}

0 comments on commit b25c2ca

Please sign in to comment.