win32

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2015 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MOD_ALT      = 0x0001
	MOD_CONTROL  = 0x0002
	MOD_SHIFT    = 0x0004
	MOD_WIN      = 0x0008
	MOD_NOREPEAT = 0x4000

	KEYEVENTF_EXTENDEDKEY = 0x0001
	KEYEVENTF_KEYUP       = 0x0002
	KEYEVENTF_UNICODE     = 0x0004
	KEYEVENTF_SCANCODE    = 0x0008

	KL_NAMELENGTH = 9

	CTRL_C_EVENT        = 0
	CTRL_BREAK_EVENT    = 1
	CTRL_CLOSE_EVENT    = 2
	CTRL_LOGOFF_EVENT   = 5
	CTRL_SHUTDOWN_EVENT = 6
)

Variables

This section is empty.

Functions

func ActivateKeyboardLayout

func ActivateKeyboardLayout(hkl w32.HKL, flags uint32) w32.HKL

func GetClipboardData

func GetClipboardData(f uint) w32.HANDLE

func GetClipboardSequenceNumber

func GetClipboardSequenceNumber() uint32

func GetForegroundWindow

func GetForegroundWindow() w32.HWND

func GetKeyboardLayout

func GetKeyboardLayout(id uint32) w32.HKL

func GetKeyboardLayoutList

func GetKeyboardLayoutList() []w32.HKL

func GetKeyboardLayoutName

func GetKeyboardLayoutName() string

func GlobalSize

func GlobalSize(h w32.HGLOBAL) uint64

func LoadKeyboardLayout

func LoadKeyboardLayout(id string, flags uint32) w32.HKL

func RegisterHotKey

func RegisterHotKey(h w32.HWND, id, mod, vk int) bool

func RegisterWindowMessage

func RegisterWindowMessage(msg string) uint32

func SetConsoleCtrlHandler

func SetConsoleCtrlHandler(h HandlerRoutine, add bool) bool

func SetConsoleTitle

func SetConsoleTitle(title string) bool

func SetForegroundWindow

func SetForegroundWindow(h w32.HWND) bool

func ShowWindow

func ShowWindow(h w32.HWND, st uint32) bool

func StringToUtf16z

func StringToUtf16z(s string) (out []byte)

func UnloadKeyboardLayout

func UnloadKeyboardLayout(hkl w32.HKL) bool

func Utf16zToString

func Utf16zToString(in []byte) string

Types

type HandlerRoutine

type HandlerRoutine func(int) int

type PlacementInfo

type PlacementInfo struct {
	Length           uint32
	Flags            uint32
	ShowCmd          uint32
	PtMinPosition    tagPoint
	PtMaxPosition    tagPoint
	RcNormalPosition tagRect
}

func GetWindowPlacement

func GetWindowPlacement(h w32.HWND) *PlacementInfo

Jump to

Keyboard shortcuts

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