winpsapi

package
v0.0.0-...-e0ed648 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnumProcesses

func EnumProcesses() ([]uint32, error)

func GetProcessImageFileName

func GetProcessImageFileName(handle windows.Handle) (string, error)

func QueryFullProcessImageName

func QueryFullProcessImageName(handle windows.Handle) (string, error)

Types

type Process

type Process struct {
	PID      uint32
	ParentID uint32
	ExeFile  string
	TimeStat ProcessTimeStat
	MemStat  ProcessMemStat
}

func QueryProcessInformation

func QueryProcessInformation(pid uint32) (*Process, error)

type ProcessMemStat

type ProcessMemStat struct {
	RSS uint64
	VMS uint64
}

func GetProcessMemoryInfo

func GetProcessMemoryInfo(handle windows.Handle) (*ProcessMemStat, error)

type ProcessTimeStat

type ProcessTimeStat struct {
	User       float64
	System     float64
	CreateTime int64
}

func GetProcessTimes

func GetProcessTimes(handle windows.Handle) (*ProcessTimeStat, error)

type Toolhelp32Process

type Toolhelp32Process struct {
	PID             uint32
	ParentProcessID uint32
	ExeFile         string
}

func CreateToolhelp32Snapshot

func CreateToolhelp32Snapshot() ([]*Toolhelp32Process, error)

Jump to

Keyboard shortcuts

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