win32

package
v2.0.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2015 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KL_NAMELENGTH = 9

	LOCALE_ILANGUAGE       = 0x00000001 // language id
	LOCALE_SLANGUAGE       = 0x00000002 // localized name of language
	LOCALE_SENGLANGUAGE    = 0x00001001 // English name of language
	LOCALE_SABBREVLANGNAME = 0x00000003 // abbreviated language name
	LOCALE_SNATIVELANGNAME = 0x00000004 // native name of language

	CF_UNICODETEXT = 13

	MOD_ALT      = 0x0001
	MOD_CONTROL  = 0x0002
	MOD_SHIFT    = 0x0004
	MOD_WIN      = 0x0008
	MOD_NOREPEAT = 0x4000

	VK_SHIFT   = 0x10
	VK_CONTROL = 0x11
	VK_MENU    = 0x12
	VK_PAUSE   = 0x13

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

	WM_HOTKEY = 0x0312
	WM_COPY   = 0x0301
	WM_PASTE  = 0x0302

	INPUT_MOUSE    = 0
	INPUT_KEYBOARD = 1
	INPUT_HARDWARE = 2

	GHND = 0x0042

	WM_INPUTLANGCHANGEREQUEST = 0x0050
)

Variables

This section is empty.

Functions

func CloseClipboard

func CloseClipboard()

func EmptyClipboard

func EmptyClipboard()

func GetAsyncKeyState

func GetAsyncKeyState(vKey int) bool

func GetKeyboardLayoutName

func GetKeyboardLayoutName() string

func GetLocaleInfo

func GetLocaleInfo(Locale, LCType int64) string

func GetMessage

func GetMessage(msg *MSG, hWnd HWND, wMsgFilterMin, wMsgFilterMax int) bool

func GlobalLock

func GlobalLock(h HGLOBAL) unsafe.Pointer

func GlobalSize

func GlobalSize(h HGLOBAL) uint64

func GlobalUnlock

func GlobalUnlock(h HGLOBAL)

func MAKELCID

func MAKELCID(LangId, SortId uint16) uint32

func OpenClipboard

func OpenClipboard()

func PostMessage

func PostMessage(hWnd HWND, Msg UINT, wParam WPARAM, lParam LPARAM) bool

func RegisterHotKey

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

func SetClipboardData

func SetClipboardData(h HANDLE)

func StringToUtf16z

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

func Utf16zToString

func Utf16zToString(in []byte) string

Types

type ATOM

type ATOM uint16

type BOOL

type BOOL int32

type COLORREF

type COLORREF uint32

type DWM_FRAME_COUNT

type DWM_FRAME_COUNT uint64

type DWORD

type DWORD uint32

func GetClipboardSequenceNumber

func GetClipboardSequenceNumber() DWORD

func GetLastError

func GetLastError() DWORD

func GetWindowThreadProcessId

func GetWindowThreadProcessId(hWnd HWND) DWORD

type HACCEL

type HACCEL HANDLE

type HANDLE

type HANDLE uintptr

func GetClipboardData

func GetClipboardData() HANDLE

type HBITMAP

type HBITMAP HANDLE

type HBRUSH

type HBRUSH HANDLE

type HCURSOR

type HCURSOR HANDLE

type HDC

type HDC HANDLE

type HDROP

type HDROP HANDLE

type HDWP

type HDWP HANDLE

type HENHMETAFILE

type HENHMETAFILE HANDLE

type HFONT

type HFONT HANDLE

type HGDIOBJ

type HGDIOBJ HANDLE

type HGLOBAL

type HGLOBAL HANDLE

func GlobalAlloc

func GlobalAlloc(uFlags UINT, dwBytes SIZE_T) HGLOBAL

type HGLRC

type HGLRC HANDLE

type HHOOK

type HHOOK HANDLE

type HICON

type HICON HANDLE

type HIMAGELIST

type HIMAGELIST HANDLE

type HINSTANCE

type HINSTANCE HANDLE

type HKEY

type HKEY HANDLE

type HKL

type HKL HANDLE

func ActivateKeyboardLayout

func ActivateKeyboardLayout(hkl HKL, flags uint32) HKL

func GetKeyboardLayout

func GetKeyboardLayout(idThread DWORD) HKL

func GetKeyboardLayoutList

func GetKeyboardLayoutList() []HKL

type HMENU

type HMENU HANDLE

type HMODULE

type HMODULE HANDLE

type HMONITOR

type HMONITOR HANDLE

type HPEN

type HPEN HANDLE

type HRESULT

type HRESULT int32

type HRGN

type HRGN HANDLE

type HRSRC

type HRSRC HANDLE

type HTHUMBNAIL

type HTHUMBNAIL HANDLE

type HWND

type HWND HANDLE

func GetActiveWindow

func GetActiveWindow() HWND

func GetForegroundWindow

func GetForegroundWindow() HWND

type LONG

type LONG int32

type LPARAM

type LPARAM uintptr

type LPCVOID

type LPCVOID unsafe.Pointer

type LPGUITHREADINFO

type LPGUITHREADINFO struct {
	CbSize        DWORD
	Flags         DWORD
	HwndActive    HWND
	HwndFocus     HWND
	HwndCapture   HWND
	HwndMenuOwner HWND
	HwndMoveSize  HWND
	HwndCaret     HWND
	RcCaret       RECT
}

func GetGUIThreadInfo

func GetGUIThreadInfo(idThread DWORD) *LPGUITHREADINFO

type LRESULT

type LRESULT uintptr

func SendMessage

func SendMessage(hWnd HWND, Msg UINT, wParam WPARAM, lParam LPARAM) LRESULT

type MSG

type MSG struct {
	Hwnd    HWND
	Message UINT
	WParam  WPARAM
	LParam  LPARAM
	Time    DWORD
	Pt      POINT
}

type POINT

type POINT struct {
	X, Y LONG
}

type PVOID

type PVOID unsafe.Pointer

type QPC_TIME

type QPC_TIME uint64

type RECT

type RECT struct {
	Left   LONG
	Top    LONG
	Right  LONG
	Bottom LONG
}

type SHORT

type SHORT int16

type SIZE_T

type SIZE_T ULONG_PTR

type UINT

type UINT uint32

func SendInput

func SendInput(inputs []INPUT) UINT

func SendInputs

func SendInputs(inputs ...INPUT) UINT

type ULONG_PTR

type ULONG_PTR uintptr

type WPARAM

type WPARAM uintptr

Jump to

Keyboard shortcuts

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