winutils

package
v0.0.0-...-ecd45fa Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GetWindowHandlesByProcessIdCallback = GetWindowHandlesByProcessIdCallbackWrapper{
		// contains filtered or unexported fields
	}
)

Functions

func FindLargestRect

func FindLargestRect(values []windows.Rect) (int, error)

func GetCaptureRect

func GetCaptureRect(windowRect windows.Rect, clientRect windows.Rect) windows.Rect

func GetCaptureRectByHandles

func GetCaptureRectByHandles(windowHandles []windows.HWND) (windows.Rect, error)

func GetWindowHandlesByProcessId

func GetWindowHandlesByProcessId(pid winapi.ProcessId) []windows.HWND

func GetWindowHandlesClientRects

func GetWindowHandlesClientRects(handles []windows.HWND) []windows.Rect

func GetWindowHandlesRects

func GetWindowHandlesRects(handles []windows.HWND) []windows.Rect

func IsValidRect

func IsValidRect(rect windows.Rect) bool

func RectEqual

func RectEqual(value1 windows.Rect, value2 windows.Rect) bool

func RectHeight

func RectHeight(value windows.Rect) int32

func RectSize

func RectSize(value windows.Rect) int32

func RectWidth

func RectWidth(value windows.Rect) int32

func ScreenToClientRect

func ScreenToClientRect(handleWindow windows.HWND, value windows.Rect) windows.Rect

Types

type GetWindowHandlesByProcessIdCallbackWrapper

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

type Process

type Process struct {
	Pid        winapi.ProcessId
	Ppid       winapi.ProcessId
	Executable string
}

func FindProcessByPid

func FindProcessByPid(processes []*Process, pid winapi.ProcessId) *Process

func FindProcessesByParentPid

func FindProcessesByParentPid(processes []*Process, pid winapi.ProcessId) []*Process

func GetAllProcesses

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

func NewWindowsProcess

func NewWindowsProcess(entry *windows.ProcessEntry32) *Process

func (*Process) String

func (process *Process) String() string

Jump to

Keyboard shortcuts

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