Documentation ¶
Rendered for windows/amd64
Index ¶
- Constants
- func GetConsoleMode(hConsoleHandle uintptr) (bResult bool, lpMode uint32, err error)
- func GetCurrentProcess() (hProcess uintptr)
- func GetStdHandle(nStdHandle uint32) (hStdHandle uintptr)
- func ReadConsoleInput(hConsoleInput uintptr, lpBuffer []INPUT_RECORD_KEY_EVENT, nLength uint32) (bResult bool, lpNumberOfEventsRead uint32, err error)
- func SetConsoleMode(hConsoleHandle uintptr, dwMode uint32) (bResult bool, err error)
- func SetPriorityClass(hProcess uintptr, dwPriorityClass uint32) (err error)
- type INPUT_RECORD_KEY_EVENT
- type KEY_EVENT_RECORD
Constants ¶
View Source
const ( INVALID_HANDLE_VALUE uintptr = ^uintptr(0) ABOVE_NORMAL_PRIORITY_CLASS uint32 = 0x00008000 BELOW_NORMAL_PRIORITY_CLASS uint32 = 0x00004000 HIGH_PRIORITY_CLASS uint32 = 0x00000080 IDLE_PRIORITY_CLASS uint32 = 0x00000040 NORMAL_PRIORITY_CLASS uint32 = 0x00000020 REALTIME_PRIORITY_CLASS uint32 = 0x00000100 STD_INPUT_HANDLE uint32 = ^uint32(10 - 1) STD_OUTPUT_HANDLE uint32 = ^uint32(11 - 1) STD_ERROR_HANDLE uint32 = ^uint32(12 - 1) ENABLE_PROCESSED_INPUT uint32 = 0x0001 KEY_EVENT uint16 = 0x0001 LEFT_CTRL_PRESSED uint32 = 0x0008 LEFT_ALT_PRESSED uint32 = 0x0002 RIGHT_CTRL_PRESSED uint32 = 0x0004 RIGHT_ALT_PRESSED uint32 = 0x0001 SHIFT_PRESSED uint32 = 0x0010 )
Variables ¶
This section is empty.
Functions ¶
func GetConsoleMode ¶
func GetCurrentProcess ¶
func GetCurrentProcess() (hProcess uintptr)
func GetStdHandle ¶
func ReadConsoleInput ¶
func SetConsoleMode ¶
func SetPriorityClass ¶
Types ¶
type INPUT_RECORD_KEY_EVENT ¶
type INPUT_RECORD_KEY_EVENT struct { EventType uint16 KeyEvent KEY_EVENT_RECORD }
Click to show internal directories.
Click to hide internal directories.