process

package
v0.0.0-...-95cb209 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// STD_INPUT_HANDLE is the standard input handle
	STD_INPUT_HANDLE = uint32(-10 & 0xFFFFFFFF)

	// Console modes
	ENABLE_LINE_INPUT      = uint32(0x0002)
	ENABLE_ECHO_INPUT      = uint32(0x0004)
	ENABLE_PROCESSED_INPUT = uint32(0x0001)

	// INPUT_RECORD types
	KEY_EVENT = uint16(0x0001) // Keyboard event
)

Variables

View Source
var (
	Kernel32DLL = windows.NewLazyDLL("kernel32.dll")

	// procGetStdHandle is a handle to the standard IO
	ProcGetStdHandle = Kernel32DLL.NewProc("GetStdHandle")

	// procGetConsoleMode is a handle to the console mode
	ProcGetConsoleMode = Kernel32DLL.NewProc("GetConsoleMode")

	// procSetConsoleMode is a handle to set the console mode
	ProcSetConsoleMode = Kernel32DLL.NewProc("SetConsoleMode")

	// procReadConsole is a handle to read the console
	ProcReadConsoleInput = Kernel32DLL.NewProc("ReadConsoleInputW")
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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