浏览文件
opts_windows.go
18 行 · 371 B历史下载| 1 | // SPDX-FileCopyrightText: Copyright The Lima Authors |
| 2 | // SPDX-License-Identifier: Apache-2.0 |
| 3 | |
| 4 | package executil |
| 5 | |
| 6 | import ( |
| 7 | "syscall" |
| 8 | |
| 9 | "golang.org/x/sys/windows" |
| 10 | ) |
| 11 | |
| 12 | var ( |
| 13 | ForegroundSysProcAttr = &syscall.SysProcAttr{} |
| 14 | BackgroundSysProcAttr = &syscall.SysProcAttr{ |
| 15 | HideWindow: true, |
| 16 | CreationFlags: syscall.CREATE_NEW_PROCESS_GROUP | windows.CREATE_NO_WINDOW, |
| 17 | } |
| 18 | ) |

