2024-03-20 19:58:42 +08:00
|
|
|
// Copyright GoFrame Author(https://goframe.org). All Rights Reserved.
|
|
|
|
|
//
|
|
|
|
|
// This Source Code Form is subject to the terms of the MIT License.
|
|
|
|
|
// If a copy of the MIT was not distributed with this file,
|
|
|
|
|
// You can obtain one at https://github.com/gogf/gf.
|
|
|
|
|
|
|
|
|
|
//go:build windows
|
|
|
|
|
|
|
|
|
|
package gproc
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"syscall"
|
|
|
|
|
|
|
|
|
|
"github.com/gogf/gf/v2/text/gstr"
|
|
|
|
|
)
|
|
|
|
|
|
2024-04-15 09:59:35 +08:00
|
|
|
// Set the underlying parameters directly on the Windows platform
|
|
|
|
|
func joinProcessArgs(p *Process) {
|
2024-03-20 19:58:42 +08:00
|
|
|
p.SysProcAttr = &syscall.SysProcAttr{}
|
2024-04-15 09:59:35 +08:00
|
|
|
p.SysProcAttr.CmdLine = gstr.Join(p.Args, " ")
|
2024-03-20 19:58:42 +08:00
|
|
|
}
|