sk-matrix-project/app/wails/pkg/system/process.go
2023-07-15 23:29:03 +08:00

14 lines
275 B
Go

package system
import "github.com/shirou/gopsutil/process"
func (i *InfoUtils) GetAllProcessPid() []int32 {
pidList, _ := process.Pids()
return pidList
}
func (i *InfoUtils) GetProcessInfo(pid int32) *process.Process {
info, _ := process.NewProcess(pid)
return info
}