process

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PROCESS_QUERY_INFORMATION = 0x0400
	PROCESS_VM_READ           = 0x0010
)

Variables

This section is empty.

Functions

func GetExecutableFromHandle

func GetExecutableFromHandle(hwnd syscall.Handle) (string, error)

func GetExecutableFromPID

func GetExecutableFromPID(pid uint32) (string, error)

func GetFullExecutableFromPID

func GetFullExecutableFromPID(pid uint32) (string, error)

func GetProcessIDByExecutable

func GetProcessIDByExecutable(executable string) uint32

func GetProcessIDFromWindow

func GetProcessIDFromWindow(hwnd syscall.Handle) (uint32, error)

Types

type Win32_Process

type Win32_Process struct {
	ProcessID uint32
	Name      string
}

Win32_Process WMI class structure

Jump to

Keyboard shortcuts

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