初始化

This commit is contained in:
李琦
2026-08-11 19:07:05 +08:00
commit d2aeb13a09
94 changed files with 8704 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
//go:build windows
package platform
import (
"os/exec"
"testing"
)
func TestConfigureHidden(t *testing.T) {
c := exec.Command("cmd.exe", "/c", "exit", "0")
configureHidden(c)
if c.SysProcAttr == nil || !c.SysProcAttr.HideWindow || c.SysProcAttr.CreationFlags&0x08000000 == 0 {
t.Fatalf("hidden process flags missing: %#v", c.SysProcAttr)
}
}