process

package
v0.0.0-...-44a0b5b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 10, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

View Source
const (
	ERROR_NO_MORE_FILES = 0x12
	MAX_PATH            = 260
)

Some constants from the Windows API

Variables

This section is empty.

Functions

func GetCmdline

func GetCmdline(pid uint32) (string, error)

func GetProcessCommand

func GetProcessCommand(targetName string) (string, error)

func GetProcessFullPath

func GetProcessFullPath(targetName string) (string, error)

Types

type PROCESSENTRY32

type PROCESSENTRY32 struct {
	Size              uint32
	CntUsage          uint32
	ProcessID         uint32
	DefaultHeapID     uintptr
	ModuleID          uint32
	CntThreads        uint32
	ParentProcessID   uint32
	PriorityClassBase int32
	Flags             uint32
	ExeFile           [MAX_PATH]uint16
}

PROCESSENTRY32 is the Windows API structure that contains a process's information.

type Process

type Process struct {
	// contains filtered or unexported fields
}

Process is an implementation of Process for Windows.

func Processes

func Processes() ([]*Process, error)

func (*Process) Executable

func (p *Process) Executable() string

func (*Process) PPid

func (p *Process) PPid() int

func (*Process) Pid

func (p *Process) Pid() int

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL