//go:build windows

package main

import (
	"os/exec"
	"syscall"
)

const creationFlagsNoWindow = 0x08000000

func prepareHidden(cmd *exec.Cmd) {
	if cmd == nil {
		return
	}
	cmd.SysProcAttr = &syscall.SysProcAttr{
		HideWindow:    true,
		CreationFlags: creationFlagsNoWindow,
	}
}
