winapi

package module
v0.0.0-...-c4b01c8 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2017 License: MIT Imports: 2 Imported by: 4

README

Windows API wrappers for Go


About winapi

APIs wrapped:


WINAPI uses union which is not available in Go. To handle that, variants of structures and functions have been created for some APIs.

The structures and functions which have variants are mentioned below.


RAW INPUT

GetRawInputDeviceInfo for uiCommand RIDI_PREPARSEDDATA isn't implemented.

Abbreviations

Abbreviation Meaning
M Mouse
MB MouseButtons
MBI MouseButtonInformation
K Keyboard
HID Human Interface Device

Structures

WINAPI Go
RAWINPUT RAWINPUT_MB
RAWINPUT_MBI
RAWINPUT_K
RAWINPUT_HID
RAWMOUSE RAWMOUSEBUTTONS
RAWMOUSEBUTTONINFO
RID_DEVICE_INFO RIDI_M
RIDI_K
RIDI_HID

Functions

WINAPI Go
DefRawInputProc DefRawInputProcMB
DefRawInputProcMBI
DefRawInputProcK
DefRawInputProcHID
GetRawInputBuffer GetRawInputBufferMB
GetRawInputBufferMBI
GetRawInputBufferK
GetRawInputBufferHID
GetRawInputData GetRawInputDataMB
GetRawInputDataMBI
GetRawInputDataK
GetRawInputDataHID
GetRawInputDeviceInfo GetRawInputDeviceName
GetRawInputDeviceInfoM
GetRawInputDeviceInfoK
GetRawInputDeviceInfoHID

KEYBOARD INPUT

Abbreviations

Abbreviation Meaning
M Mouse
K Keyboard
HW Hardware

Structures

WINAPI Go
INPUT INPUT_M
INPUT_K
INPUT_HW

Functions

WINAPI Go
SendInput SendInputM
SendInputK
SendInputHW

Documentation

Index

Constants

View Source
const (
	GIDC_ARRIVAL uintptr = 1
	GIDC_REMOVAL uintptr = 2

	KEYBOARD_OVERRUN_MAKE_CODE uintptr = 0xFF

	KF_EXTENDED uintptr = 0x0100
	KF_ALTDOWN  uintptr = 0x2000
	KF_UP       uintptr = 0x8000

	LLKHF_EXTENDED          uintptr = KF_EXTENDED >> 8
	LLKHF_LOWER_IL_INJECTED uintptr = 0x00000002
	LLKHF_INJECTED          uintptr = 0x00000010
	LLKHF_ALTDOWN           uintptr = KF_ALTDOWN >> 8
	LLKHF_UP                uintptr = KF_UP >> 8

	LLMHF_INJECTED          uintptr = 0x00000001
	LLMHF_LOWER_IL_INJECTED uintptr = 0x00000002

	MOUSE_ATTRIBUTES_CHANGED uintptr = 4
	MOUSE_MOVE_RELATIVE      uintptr = 0
	MOUSE_MOVE_ABSOLUTE      uintptr = 1
	MOUSE_VIRTUAL_DESKTOP    uintptr = 2

	RI_KEY_BREAK uintptr = 1
	RI_KEY_E0    uintptr = 2
	RI_KEY_E1    uintptr = 4
	RI_KEY_MAKE  uintptr = 0

	RI_MOUSE_LEFT_BUTTON_DOWN   uintptr = 0x0001
	RI_MOUSE_LEFT_BUTTON_UP     uintptr = 0x0002
	RI_MOUSE_MIDDLE_BUTTON_DOWN uintptr = 0x0010
	RI_MOUSE_MIDDLE_BUTTON_UP   uintptr = 0x0020
	RI_MOUSE_RIGHT_BUTTON_DOWN  uintptr = 0x0004
	RI_MOUSE_RIGHT_BUTTON_UP    uintptr = 0x0008
	RI_MOUSE_BUTTON_1_DOWN      uintptr = 0x0001
	RI_MOUSE_BUTTON_1_UP        uintptr = 0x0002
	RI_MOUSE_BUTTON_2_DOWN      uintptr = 0x0004
	RI_MOUSE_BUTTON_2_UP        uintptr = 0x0008
	RI_MOUSE_BUTTON_3_DOWN      uintptr = 0x0010
	RI_MOUSE_BUTTON_3_UP        uintptr = 0x0020
	RI_MOUSE_BUTTON_4_DOWN      uintptr = 0x0040
	RI_MOUSE_BUTTON_4_UP        uintptr = 0x0080
	RI_MOUSE_BUTTON_5_DOWN      uintptr = 0x0100
	RI_MOUSE_BUTTON_5_UP        uintptr = 0x0200
	RI_MOUSE_WHEEL              uintptr = 0x0400

	RID_HEADER uintptr = 0x10000005
	RID_INPUT  uintptr = 0x10000003

	RIDEV_APPKEYS      uintptr = 0x00000400
	RIDEV_CAPTUREMOUSE uintptr = 0x00000200
	RIDEV_DEVNOTIFY    uintptr = 0x00002000
	RIDEV_EXCLUDE      uintptr = 0x00000010
	RIDEV_EXINPUTSINK  uintptr = 0x00001000
	RIDEV_INPUTSINK    uintptr = 0x00000100
	RIDEV_NOHOTKEYS    uintptr = 0x00000200
	RIDEV_NOLEGACY     uintptr = 0x00000030
	RIDEV_PAGEONLY     uintptr = 0x00000020
	RIDEV_REMOVE       uintptr = 0x00000001

	RIDI_DEVICENAME    uintptr = 0x20000007
	RIDI_DEVICEINFO    uintptr = 0x2000000B
	RIDI_PREPARSEDDATA uintptr = 0x20000005

	RIM_INPUT     uintptr = 0
	RIM_INPUTSINK uintptr = 1

	RIM_TYPEHID      uintptr = 2
	RIM_TYPEKEYBOARD uintptr = 1
	RIM_TYPEMOUSE    uintptr = 0

	WM_CANCELJOURNAL       uintptr = 0x004B
	WM_CREATE              uintptr = 0x0001
	WM_INPUT               uintptr = 0x00FF
	WM_INPUT_DEVICE_CHANGE uintptr = 0x00FE
	WM_QUEUESYNC           uintptr = 0x0023
	WM_TIMER               uintptr = 0x0113
	WM_KEYFIRST            uintptr = 0x0100
	WM_MOUSEFIRST          uintptr = 0x0200

	XBUTTON1 uintptr = 0x0001
	XBUTTON2 uintptr = 0x0002

	HCBT_ACTIVATE     uintptr = 5
	HCBT_CLICKSKIPPED uintptr = 6
	HCBT_CREATEWND    uintptr = 3
	HCBT_DESTROYWND   uintptr = 4
	HCBT_KEYSKIPPED   uintptr = 7
	HCBT_MINMAX       uintptr = 1
	HCBT_MOVESIZE     uintptr = 0
	HCBT_QS           uintptr = 2
	HCBT_SETFOCUS     uintptr = 9
	HCBT_SYSCOMMAND   uintptr = 8

	WH_CALLWNDPROC     uintptr = 4
	WH_CALLWNDPROCRET  uintptr = 12
	WH_CBT             uintptr = 5
	WH_DEBUG           uintptr = 9
	WH_FOREGROUNDIDLE  uintptr = 11
	WH_GETMESSAGE      uintptr = 3
	WH_JOURNALPLAYBACK uintptr = 1
	WH_JOURNALRECORD   uintptr = 0
	WH_KEYBOARD        uintptr = 2
	WH_KEYBOARD_LL     uintptr = 13
	WH_MOUSE           uintptr = 7
	WH_MOUSE_LL        uintptr = 14
	WH_MSGFILTER       uintptr = -1 & (1<<32 - 1)
	WH_SHELL           uintptr = 10
	WH_SYSMSGFILTER    uintptr = 6

	PM_NOREMOVE       uintptr = 0x0000
	PM_REMOVE         uintptr = 0x0001
	PM_NOYIELD        uintptr = 0x0002
	PM_QS_INPUT       uintptr = QS_INPUT << 16
	PM_QS_PAINT       uintptr = QS_PAINT << 16
	PM_QS_POSTMESSAGE uintptr = (QS_POSTMESSAGE | QS_HOTKEY | QS_TIMER) << 16
	PM_QS_SENDMESSAGE uintptr = QS_SENDMESSAGE << 16

	HC_ACTION      uintptr = 0
	HC_GETNEXT     uintptr = 1
	HC_SKIP        uintptr = 2
	HC_NOREMOVE    uintptr = 3
	HC_SYSMODALON  uintptr = 4
	HC_SYSMODALOFF uintptr = 5

	MSGF_DDEMGR    uintptr = 0x8001
	MSGF_DIALOGBOX uintptr = 0
	MSGF_MENU      uintptr = 2
	MSGF_SCROLLBAR uintptr = 5

	HSHELL_ACCESSIBILITYSTATE  uintptr = 11
	HSHELL_ACTIVATESHELLWINDOW uintptr = 3
	HSHELL_APPCOMMAND          uintptr = 12
	HSHELL_GETMINRECT          uintptr = 5
	HSHELL_LANGUAGE            uintptr = 8
	HSHELL_REDRAW              uintptr = 6
	HSHELL_TASKMAN             uintptr = 7
	HSHELL_WINDOWACTIVATED     uintptr = 4
	HSHELL_WINDOWCREATED       uintptr = 1
	HSHELL_WINDOWDESTROYED     uintptr = 2
	HSHELL_WINDOWREPLACED      uintptr = 13

	ACCESS_STICKYKEYS uintptr = 0x0001
	ACCESS_FILTERKEYS uintptr = 0x0002
	ACCESS_MOUSEKEYS  uintptr = 0x0003

	WM_USER   uintptr = 0x0400
	WM_APP    uintptr = 0x8000
	OCM__BASE uintptr = WM_USER + 0x1C00

	BSF_ALLOWSFW           uintptr = 0x00000080
	BSF_FLUSHDISK          uintptr = 0x00000004
	BSF_FORCEIFHUNG        uintptr = 0x00000020
	BSF_IGNORECURRENTTASK  uintptr = 0x00000002
	BSF_LUID               uintptr = 0x00000400
	BSF_NOHANG             uintptr = 0x00000008
	BSF_NOTIMEOUTIFNOTHUNG uintptr = 0x00000040
	BSF_POSTMESSAGE        uintptr = 0x00000010
	BSF_RETURNHDESK        uintptr = 0x00000200
	BSF_QUERY              uintptr = 0x00000001
	BSF_SENDNOTIFYMESSAGE  uintptr = 0x00000100

	BSM_ALLCOMPONENTS uintptr = 0x00000000
	BSM_ALLDESKTOPS   uintptr = 0x00000010
	BSM_APPLICATIONS  uintptr = 0x00000008

	QS_ALLEVENTS      uintptr = QS_INPUT | QS_POSTMESSAGE | QS_TIMER | QS_PAINT | QS_HOTKEY
	QS_ALLINPUT       uintptr = QS_INPUT | QS_POSTMESSAGE | QS_TIMER | QS_PAINT | QS_HOTKEY | QS_SENDMESSAGE
	QS_ALLPOSTMESSAGE uintptr = 0x0100
	QS_HOTKEY         uintptr = 0x0080
	QS_INPUT          uintptr = QS_MOUSE | QS_KEY | QS_RAWINPUT
	QS_KEY            uintptr = 0x0001
	QS_MOUSE          uintptr = QS_MOUSEMOVE | QS_MOUSEBUTTON
	QS_MOUSEBUTTON    uintptr = 0x0004
	QS_MOUSEMOVE      uintptr = 0x0002
	QS_PAINT          uintptr = 0x0020
	QS_POSTMESSAGE    uintptr = 0x0008
	QS_RAWINPUT       uintptr = 0x0400
	QS_SENDMESSAGE    uintptr = 0x0040
	QS_TIMER          uintptr = 0x0010

	ISMEX_CALLBACK uintptr = 0x00000004
	ISMEX_NOTIFY   uintptr = 0x00000002
	ISMEX_REPLIED  uintptr = 0x00000008
	ISMEX_SEND     uintptr = 0x00000001
	ISMEX_NOSEND   uintptr = 0x00000000

	HWND_BROADCAST uintptr = 0xFFFF

	SMTO_ABORTIFHUNG        uintptr = 0x0002
	SMTO_BLOCK              uintptr = 0x0001
	SMTO_NORMAL             uintptr = 0x0000
	SMTO_NOTIMEOUTIFNOTHUNG uintptr = 0x0008
	SMTO_ERRORONEXIT        uintptr = 0x0020

	VK_LBUTTON             uintptr = 0x01
	VK_RBUTTON             uintptr = 0x02
	VK_CANCEL              uintptr = 0x03
	VK_MBUTTON             uintptr = 0x04
	VK_XBUTTON1            uintptr = 0x05
	VK_XBUTTON2            uintptr = 0x06
	VK_BACK                uintptr = 0x08
	VK_TAB                 uintptr = 0x09
	VK_CLEAR               uintptr = 0x0C
	VK_RETURN              uintptr = 0x0D
	VK_SHIFT               uintptr = 0x10
	VK_CONTROL             uintptr = 0x11
	VK_MENU                uintptr = 0x12
	VK_PAUSE               uintptr = 0x13
	VK_CAPITAL             uintptr = 0x14
	VK_KANA                uintptr = 0x15
	VK_HANGUEL             uintptr = 0x15
	VK_HANGUL              uintptr = 0x15
	VK_JUNJA               uintptr = 0x17
	VK_FINAL               uintptr = 0x18
	VK_HANJA               uintptr = 0x19
	VK_KANJI               uintptr = 0x19
	VK_ESCAPE              uintptr = 0x1B
	VK_CONVERT             uintptr = 0x1C
	VK_NONCONVERT          uintptr = 0x1D
	VK_ACCEPT              uintptr = 0x1E
	VK_MODECHANGE          uintptr = 0x1F
	VK_SPACE               uintptr = 0x20
	VK_PRIOR               uintptr = 0x21
	VK_NEXT                uintptr = 0x22
	VK_END                 uintptr = 0x23
	VK_HOME                uintptr = 0x24
	VK_LEFT                uintptr = 0x25
	VK_UP                  uintptr = 0x26
	VK_RIGHT               uintptr = 0x27
	VK_DOWN                uintptr = 0x28
	VK_SELECT              uintptr = 0x29
	VK_PRINT               uintptr = 0x2A
	VK_EXECUTE             uintptr = 0x2B
	VK_SNAPSHOT            uintptr = 0x2C
	VK_INSERT              uintptr = 0x2D
	VK_DELETE              uintptr = 0x2E
	VK_HELP                uintptr = 0x2F
	VK_LWIN                uintptr = 0x5B
	VK_RWIN                uintptr = 0x5C
	VK_APPS                uintptr = 0x5D
	VK_SLEEP               uintptr = 0x5F
	VK_NUMPAD0             uintptr = 0x60
	VK_NUMPAD1             uintptr = 0x61
	VK_NUMPAD2             uintptr = 0x62
	VK_NUMPAD3             uintptr = 0x63
	VK_NUMPAD4             uintptr = 0x64
	VK_NUMPAD5             uintptr = 0x65
	VK_NUMPAD6             uintptr = 0x66
	VK_NUMPAD7             uintptr = 0x67
	VK_NUMPAD8             uintptr = 0x68
	VK_NUMPAD9             uintptr = 0x69
	VK_MULTIPLY            uintptr = 0x6A
	VK_ADD                 uintptr = 0x6B
	VK_SEPARATOR           uintptr = 0x6C
	VK_SUBTRACT            uintptr = 0x6D
	VK_DECIMAL             uintptr = 0x6E
	VK_DIVIDE              uintptr = 0x6F
	VK_F1                  uintptr = 0x70
	VK_F2                  uintptr = 0x71
	VK_F3                  uintptr = 0x72
	VK_F4                  uintptr = 0x73
	VK_F5                  uintptr = 0x74
	VK_F6                  uintptr = 0x75
	VK_F7                  uintptr = 0x76
	VK_F8                  uintptr = 0x77
	VK_F9                  uintptr = 0x78
	VK_F10                 uintptr = 0x79
	VK_F11                 uintptr = 0x7A
	VK_F12                 uintptr = 0x7B
	VK_F13                 uintptr = 0x7C
	VK_F14                 uintptr = 0x7D
	VK_F15                 uintptr = 0x7E
	VK_F16                 uintptr = 0x7F
	VK_F17                 uintptr = 0x80
	VK_F18                 uintptr = 0x81
	VK_F19                 uintptr = 0x82
	VK_F20                 uintptr = 0x83
	VK_F21                 uintptr = 0x84
	VK_F22                 uintptr = 0x85
	VK_F23                 uintptr = 0x86
	VK_F24                 uintptr = 0x87
	VK_NUMLOCK             uintptr = 0x90
	VK_SCROLL              uintptr = 0x91
	VK_LSHIFT              uintptr = 0xA0
	VK_RSHIFT              uintptr = 0xA1
	VK_LCONTROL            uintptr = 0xA2
	VK_RCONTROL            uintptr = 0xA3
	VK_LMENU               uintptr = 0xA4
	VK_RMENU               uintptr = 0xA5
	VK_BROWSER_BACK        uintptr = 0xA6
	VK_BROWSER_FORWARD     uintptr = 0xA7
	VK_BROWSER_REFRESH     uintptr = 0xA8
	VK_BROWSER_STOP        uintptr = 0xA9
	VK_BROWSER_SEARCH      uintptr = 0xAA
	VK_BROWSER_FAVORITES   uintptr = 0xAB
	VK_BROWSER_HOME        uintptr = 0xAC
	VK_VOLUME_MUTE         uintptr = 0xAD
	VK_VOLUME_DOWN         uintptr = 0xAE
	VK_VOLUME_UP           uintptr = 0xAF
	VK_MEDIA_NEXT_TRACK    uintptr = 0xB0
	VK_MEDIA_PREV_TRACK    uintptr = 0xB1
	VK_MEDIA_STOP          uintptr = 0xB2
	VK_MEDIA_PLAY_PAUSE    uintptr = 0xB3
	VK_LAUNCH_MAIL         uintptr = 0xB4
	VK_LAUNCH_MEDIA_SELECT uintptr = 0xB5
	VK_LAUNCH_APP1         uintptr = 0xB6
	VK_LAUNCH_APP2         uintptr = 0xB7
	VK_OEM_1               uintptr = 0xBA
	VK_OEM_PLUS            uintptr = 0xBB
	VK_OEM_COMMA           uintptr = 0xBC
	VK_OEM_MINUS           uintptr = 0xBD
	VK_OEM_PERIOD          uintptr = 0xBE
	VK_OEM_2               uintptr = 0xBF
	VK_OEM_3               uintptr = 0xC0
	VK_OEM_4               uintptr = 0xDB
	VK_OEM_5               uintptr = 0xDC
	VK_OEM_6               uintptr = 0xDD
	VK_OEM_7               uintptr = 0xDE
	VK_OEM_8               uintptr = 0xDF
	VK_OEM_102             uintptr = 0xE2
	VK_PROCESSKEY          uintptr = 0xE5
	VK_PACKET              uintptr = 0xE7
	VK_ATTN                uintptr = 0xF6
	VK_CRSEL               uintptr = 0xF7
	VK_EXSEL               uintptr = 0xF8
	VK_EREOF               uintptr = 0xF9
	VK_PLAY                uintptr = 0xFA
	VK_ZOOM                uintptr = 0xFB
	VK_NONAME              uintptr = 0xFC
	VK_PA1                 uintptr = 0xFD
	VK_OEM_CLEAR           uintptr = 0xFE

	VK_0 uintptr = 0x30
	VK_1 uintptr = 0x31
	VK_2 uintptr = 0x32
	VK_3 uintptr = 0x33
	VK_4 uintptr = 0x34
	VK_5 uintptr = 0x35
	VK_6 uintptr = 0x36
	VK_7 uintptr = 0x37
	VK_8 uintptr = 0x38
	VK_9 uintptr = 0x39

	VK_A uintptr = 0x41
	VK_B uintptr = 0x42
	VK_C uintptr = 0x43
	VK_D uintptr = 0x44
	VK_E uintptr = 0x45
	VK_F uintptr = 0x46
	VK_G uintptr = 0x47
	VK_H uintptr = 0x48
	VK_I uintptr = 0x49
	VK_J uintptr = 0x4A
	VK_K uintptr = 0x4B
	VK_L uintptr = 0x4C
	VK_M uintptr = 0x4D
	VK_N uintptr = 0x4E
	VK_O uintptr = 0x4F
	VK_P uintptr = 0x50
	VK_Q uintptr = 0x51
	VK_R uintptr = 0x52
	VK_S uintptr = 0x53
	VK_T uintptr = 0x54
	VK_U uintptr = 0x55
	VK_V uintptr = 0x56
	VK_W uintptr = 0x57
	VK_X uintptr = 0x58
	VK_Y uintptr = 0x59
	VK_Z uintptr = 0x5A

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

	MOUSEEVENTF_ABSOLUTE        uintptr = 0x8000
	MOUSEEVENTF_HWHEEL          uintptr = 0x01000
	MOUSEEVENTF_MOVE            uintptr = 0x0001
	MOUSEEVENTF_MOVE_NOCOALESCE uintptr = 0x2000
	MOUSEEVENTF_LEFTDOWN        uintptr = 0x0002
	MOUSEEVENTF_LEFTUP          uintptr = 0x0004
	MOUSEEVENTF_RIGHTDOWN       uintptr = 0x0008
	MOUSEEVENTF_RIGHTUP         uintptr = 0x0010
	MOUSEEVENTF_MIDDLEDOWN      uintptr = 0x0020
	MOUSEEVENTF_MIDDLEUP        uintptr = 0x0040
	MOUSEEVENTF_VIRTUALDESK     uintptr = 0x4000
	MOUSEEVENTF_WHEEL           uintptr = 0x0800
	MOUSEEVENTF_XDOWN           uintptr = 0x0080
	MOUSEEVENTF_XUP             uintptr = 0x0100

	INPUT_MOUSE    uintptr = 0
	INPUT_KEYBOARD uintptr = 1
	INPUT_HARDWARE uintptr = 2

	WM_ACTIVATE      uintptr = 0x0006
	WM_APPCOMMAND    uintptr = 0x0319
	WM_CHAR          uintptr = 0x0102
	WM_CHILDACTIVATE uintptr = 0x0022
	WM_COMMAND       uintptr = 0x0111
	WM_DEADCHAR      uintptr = 0x0103
	WM_GETMINMAXINFO uintptr = 0x0024
	WM_HOTKEY        uintptr = 0x0312
	WM_KEYDOWN       uintptr = 0x0100
	WM_KEYUP         uintptr = 0x0101
	WM_KILLFOCUS     uintptr = 0x0008
	WM_MENUCHAR      uintptr = 0x0120
	WM_MOVE          uintptr = 0x0003
	WM_SETFOCUS      uintptr = 0x0007
	WM_SIZE          uintptr = 0x0005
	WM_SYSCHAR       uintptr = 0x0106
	WM_SYSCOMMAND    uintptr = 0x0112
	WM_SYSDEADCHAR   uintptr = 0x0107
	WM_SYSKEYDOWN    uintptr = 0x0104
	WM_SYSKEYUP      uintptr = 0x0105
	WM_UNICHAR       uintptr = 0x0109

	MF_POPUP   uintptr = 0x00000010
	MF_SYSMENU uintptr = 0x00002000

	MNC_CLOSE   uintptr = 1
	MNC_EXECUTE uintptr = 2
	MNC_IGNORE  uintptr = 0
	MNC_SELECT  uintptr = 3

	WA_ACTIVE      uintptr = 1
	WA_CLICKACTIVE uintptr = 2
	WA_INACTIVE    uintptr = 0

	APPCOMMAND_BASS_BOOST                        uintptr = 20
	APPCOMMAND_BASS_DOWN                         uintptr = 19
	APPCOMMAND_BASS_UP                           uintptr = 21
	APPCOMMAND_BROWSER_BACKWARD                  uintptr = 1
	APPCOMMAND_BROWSER_FAVORITES                 uintptr = 6
	APPCOMMAND_BROWSER_FORWARD                   uintptr = 2
	APPCOMMAND_BROWSER_HOME                      uintptr = 7
	APPCOMMAND_BROWSER_REFRESH                   uintptr = 3
	APPCOMMAND_BROWSER_SEARCH                    uintptr = 5
	APPCOMMAND_BROWSER_STOP                      uintptr = 4
	APPCOMMAND_CLOSE                             uintptr = 31
	APPCOMMAND_COPY                              uintptr = 36
	APPCOMMAND_CORRECTION_LIST                   uintptr = 45
	APPCOMMAND_CUT                               uintptr = 37
	APPCOMMAND_DICTATE_OR_COMMAND_CONTROL_TOGGLE uintptr = 43
	APPCOMMAND_FIND                              uintptr = 28
	APPCOMMAND_FORWARD_MAIL                      uintptr = 40
	APPCOMMAND_HELP                              uintptr = 27
	APPCOMMAND_LAUNCH_APP1                       uintptr = 17
	APPCOMMAND_LAUNCH_APP2                       uintptr = 18
	APPCOMMAND_LAUNCH_MAIL                       uintptr = 15
	APPCOMMAND_LAUNCH_MEDIA_SELECT               uintptr = 16
	APPCOMMAND_MEDIA_CHANNEL_DOWN                uintptr = 52
	APPCOMMAND_MEDIA_CHANNEL_UP                  uintptr = 51
	APPCOMMAND_MEDIA_FAST_FORWARD                uintptr = 49
	APPCOMMAND_MEDIA_NEXTTRACK                   uintptr = 11
	APPCOMMAND_MEDIA_PAUSE                       uintptr = 47
	APPCOMMAND_MEDIA_PLAY                        uintptr = 46
	APPCOMMAND_MEDIA_PLAY_PAUSE                  uintptr = 14
	APPCOMMAND_MEDIA_PREVIOUSTRACK               uintptr = 12
	APPCOMMAND_MEDIA_RECORD                      uintptr = 48
	APPCOMMAND_MEDIA_REWIND                      uintptr = 50
	APPCOMMAND_MEDIA_STOP                        uintptr = 13
	APPCOMMAND_MIC_ON_OFF_TOGGLE                 uintptr = 44
	APPCOMMAND_MICROPHONE_VOLUME_DOWN            uintptr = 25
	APPCOMMAND_MICROPHONE_VOLUME_MUTE            uintptr = 24
	APPCOMMAND_MICROPHONE_VOLUME_UP              uintptr = 26
	APPCOMMAND_NEW                               uintptr = 29
	APPCOMMAND_OPEN                              uintptr = 30
	APPCOMMAND_PASTE                             uintptr = 38
	APPCOMMAND_PRINT                             uintptr = 33
	APPCOMMAND_REDO                              uintptr = 35
	APPCOMMAND_REPLY_TO_MAIL                     uintptr = 39
	APPCOMMAND_SAVE                              uintptr = 32
	APPCOMMAND_SEND_MAIL                         uintptr = 41
	APPCOMMAND_SPELL_CHECK                       uintptr = 42
	APPCOMMAND_TREBLE_DOWN                       uintptr = 22
	APPCOMMAND_TREBLE_UP                         uintptr = 23
	APPCOMMAND_UNDO                              uintptr = 34
	APPCOMMAND_VOLUME_DOWN                       uintptr = 9
	APPCOMMAND_VOLUME_MUTE                       uintptr = 8
	APPCOMMAND_VOLUME_UP                         uintptr = 10

	FAPPCOMMAND_KEY   uintptr = 0
	FAPPCOMMAND_MOUSE uintptr = 0x8000
	FAPPCOMMAND_OEM   uintptr = 0x1000

	MK_CONTROL  uintptr = 0x0008
	MK_LBUTTON  uintptr = 0x0001
	MK_MBUTTON  uintptr = 0x0010
	MK_RBUTTON  uintptr = 0x0002
	MK_SHIFT    uintptr = 0x0004
	MK_XBUTTON1 uintptr = 0x0020
	MK_XBUTTON2 uintptr = 0x0040

	IDHOT_SNAPDESKTOP uintptr = -2 & (1<<32 - 1)
	IDHOT_SNAPWINDOW  uintptr = -1 & (1<<32 - 1)

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

	WM_GETHOTKEY uintptr = 0x0033
	WM_SETHOTKEY uintptr = 0x0032

	HOTKEYF_ALT     uintptr = 0x04
	HOTKEYF_CONTROL uintptr = 0x02
	HOTKEYF_EXT     uintptr = 0x08
	HOTKEYF_SHIFT   uintptr = 0x01

	HKL_NEXT uintptr = 1
	HKL_PREV uintptr = 0

	KLF_ACTIVATE      uintptr = 0x00000001
	KLF_NOTELLSHELL   uintptr = 0x00000080
	KLF_REORDER       uintptr = 0x00000008
	KLF_REPLACELANG   uintptr = 0x00000010
	KLF_SUBSTITUTE_OK uintptr = 0x00000002
	KLF_SETFORPROCESS uintptr = 0x00000100
	KLF_RESET         uintptr = 0x40000000
	KLF_SHIFTLOCK     uintptr = 0x00010000

	MAPVK_VK_TO_CHAR   uintptr = 2
	MAPVK_VK_TO_VSC    uintptr = 0
	MAPVK_VK_TO_VSC_EX uintptr = 4
	MAPVK_VSC_TO_VK    uintptr = 1
	MAPVK_VSC_TO_VK_EX uintptr = 3

	TME_CANCEL    uintptr = 0x80000000
	TME_HOVER     uintptr = 0x00000001
	TME_LEAVE     uintptr = 0x00000002
	TME_NONCLIENT uintptr = 0x00000010
	TME_QUERY     uintptr = 0x40000000

	WM_CAPTURECHANGED  uintptr = 0x0215
	WM_LBUTTONDBLCLK   uintptr = 0x0203
	WM_LBUTTONDOWN     uintptr = 0x0201
	WM_LBUTTONUP       uintptr = 0x0202
	WM_MBUTTONDBLCLK   uintptr = 0x0209
	WM_MBUTTONDOWN     uintptr = 0x0207
	WM_MBUTTONUP       uintptr = 0x0208
	WM_MOUSEACTIVATE   uintptr = 0x0021
	WM_MOUSEHOVER      uintptr = 0x02A1
	WM_MOUSEHWHEEL     uintptr = 0x020E
	WM_MOUSELEAVE      uintptr = 0x02A3
	WM_MOUSEMOVE       uintptr = 0x0200
	WM_MOUSEWHEEL      uintptr = 0x020A
	WM_NCHITTEST       uintptr = 0x0084
	WM_NCLBUTTONDBLCLK uintptr = 0x00A3
	WM_NCLBUTTONDOWN   uintptr = 0x00A1
	WM_NCLBUTTONUP     uintptr = 0x00A2
	WM_NCMBUTTONDBLCLK uintptr = 0x00A9
	WM_NCMBUTTONDOWN   uintptr = 0x00A7
	WM_NCMBUTTONUP     uintptr = 0x00A8
	WM_NCMOUSEHOVER    uintptr = 0x02A0
	WM_NCMOUSELEAVE    uintptr = 0x02A2
	WM_NCMOUSEMOVE     uintptr = 0x00A0
	WM_NCRBUTTONDBLCLK uintptr = 0x00A6
	WM_NCRBUTTONDOWN   uintptr = 0x00A4
	WM_NCRBUTTONUP     uintptr = 0x00A5
	WM_NCXBUTTONDBLCLK uintptr = 0x00AD
	WM_NCXBUTTONDOWN   uintptr = 0x00AB
	WM_NCXBUTTONUP     uintptr = 0x00AC
	WM_RBUTTONDBLCLK   uintptr = 0x0206
	WM_RBUTTONDOWN     uintptr = 0x0204
	WM_RBUTTONUP       uintptr = 0x0205
	WM_XBUTTONDBLCLK   uintptr = 0x020D
	WM_XBUTTONDOWN     uintptr = 0x020B
	WM_XBUTTONUP       uintptr = 0x020C
	WM_NCACTIVATE      uintptr = 0x0086

	MA_ACTIVATE         uintptr = 1
	MA_ACTIVATEANDEAT   uintptr = 2
	MA_NOACTIVATE       uintptr = 3
	MA_NOACTIVATEANDEAT uintptr = 4

	HTBORDER      uintptr = 18
	HTBOTTOM      uintptr = 15
	HTBOTTOMLEFT  uintptr = 16
	HTBOTTOMRIGHT uintptr = 17
	HTCAPTION     uintptr = 2
	HTCLIENT      uintptr = 1
	HTCLOSE       uintptr = 20
	HTERROR       uintptr = -2 & (1<<32 - 1)
	HTGROWBOX     uintptr = 4
	HTHELP        uintptr = 21
	HTHSCROLL     uintptr = 6
	HTLEFT        uintptr = 10
	HTMENU        uintptr = 5
	HTMAXBUTTON   uintptr = 9
	HTMINBUTTON   uintptr = 8
	HTNOWHERE     uintptr = 0
	HTREDUCE      uintptr = 8
	HTRIGHT       uintptr = 11
	HTSIZE        uintptr = 4
	HTSYSMENU     uintptr = 3
	HTTOP         uintptr = 12
	HTTOPLEFT     uintptr = 13
	HTTOPRIGHT    uintptr = 14
	HTTRANSPARENT uintptr = -1 & (1<<32 - 1)
	HTVSCROLL     uintptr = 7
	HTZOOM        uintptr = 9

	GMMP_USE_DISPLAY_POINTS         uintptr = 1
	GMMP_USE_HIGH_RESOLUTION_POINTS uintptr = 2

	SM_ARRANGE                     uintptr = 56
	SM_CLEANBOOT                   uintptr = 67
	SM_CMONITORS                   uintptr = 80
	SM_CMOUSEBUTTONS               uintptr = 43
	SM_CONVERTIBLESLATEMODE        uintptr = 0x2003
	SM_CXBORDER                    uintptr = 5
	SM_CXCURSOR                    uintptr = 13
	SM_CXDLGFRAME                  uintptr = 7
	SM_CXDOUBLECLK                 uintptr = 36
	SM_CXDRAG                      uintptr = 68
	SM_CXEDGE                      uintptr = 45
	SM_CXFIXEDFRAME                uintptr = 7
	SM_CXFOCUSBORDER               uintptr = 83
	SM_CXFRAME                     uintptr = 32
	SM_CXFULLSCREEN                uintptr = 16
	SM_CXHSCROLL                   uintptr = 21
	SM_CXHTHUMB                    uintptr = 10
	SM_CXICON                      uintptr = 11
	SM_CXICONSPACING               uintptr = 38
	SM_CXMAXIMIZED                 uintptr = 61
	SM_CXMAXTRACK                  uintptr = 59
	SM_CXMENUCHECK                 uintptr = 71
	SM_CXMENUSIZE                  uintptr = 54
	SM_CXMIN                       uintptr = 28
	SM_CXMINIMIZED                 uintptr = 57
	SM_CXMINSPACING                uintptr = 47
	SM_CXMINTRACK                  uintptr = 34
	SM_CXPADDEDBORDER              uintptr = 92
	SM_CXSCREEN                    uintptr = 0
	SM_CXSIZE                      uintptr = 30
	SM_CXSIZEFRAME                 uintptr = 32
	SM_CXSMICON                    uintptr = 49
	SM_CXSMSIZE                    uintptr = 52
	SM_CXVIRTUALSCREEN             uintptr = 78
	SM_CXVSCROLL                   uintptr = 2
	SM_CYBORDER                    uintptr = 6
	SM_CYCAPTION                   uintptr = 4
	SM_CYCURSOR                    uintptr = 14
	SM_CYDLGFRAME                  uintptr = 8
	SM_CYDOUBLECLK                 uintptr = 37
	SM_CYDRAG                      uintptr = 69
	SM_CYEDGE                      uintptr = 46
	SM_CYFIXEDFRAME                uintptr = 8
	SM_CYFOCUSBORDER               uintptr = 84
	SM_CYFRAME                     uintptr = 33
	SM_CYFULLSCREEN                uintptr = 17
	SM_CYHSCROLL                   uintptr = 3
	SM_CYICON                      uintptr = 12
	SM_CYICONSPACING               uintptr = 39
	SM_CYKANJIWINDOW               uintptr = 18
	SM_CYMAXIMIZED                 uintptr = 62
	SM_CYMAXTRACK                  uintptr = 60
	SM_CYMENU                      uintptr = 15
	SM_CYMENUCHECK                 uintptr = 72
	SM_CYMENUSIZE                  uintptr = 55
	SM_CYMIN                       uintptr = 29
	SM_CYMINIMIZED                 uintptr = 58
	SM_CYMINSPACING                uintptr = 48
	SM_CYMINTRACK                  uintptr = 35
	SM_CYSCREEN                    uintptr = 1
	SM_CYSIZE                      uintptr = 31
	SM_CYSIZEFRAME                 uintptr = 33
	SM_CYSMCAPTION                 uintptr = 51
	SM_CYSMICON                    uintptr = 50
	SM_CYSMSIZE                    uintptr = 53
	SM_CYVIRTUALSCREEN             uintptr = 79
	SM_CYVSCROLL                   uintptr = 20
	SM_CYVTHUMB                    uintptr = 9
	SM_DBCSENABLED                 uintptr = 42
	SM_DEBUG                       uintptr = 22
	SM_DIGITIZER                   uintptr = 94
	SM_IMMENABLED                  uintptr = 82
	SM_MAXIMUMTOUCHES              uintptr = 95
	SM_MEDIACENTER                 uintptr = 87
	SM_MENUDROPALIGNMENT           uintptr = 40
	SM_MIDEASTENABLED              uintptr = 74
	SM_MOUSEPRESENT                uintptr = 19
	SM_MOUSEHORIZONTALWHEELPRESENT uintptr = 91
	SM_MOUSEWHEELPRESENT           uintptr = 75
	SM_NETWORK                     uintptr = 63
	SM_PENWINDOWS                  uintptr = 41
	SM_REMOTECONTROL               uintptr = 0x2001
	SM_REMOTESESSION               uintptr = 0x1000
	SM_SAMEDISPLAYFORMAT           uintptr = 81
	SM_SECURE                      uintptr = 44
	SM_SERVERR2                    uintptr = 89
	SM_SHOWSOUNDS                  uintptr = 70
	SM_SHUTTINGDOWN                uintptr = 0x2000
	SM_SLOWMACHINE                 uintptr = 73
	SM_STARTER                     uintptr = 88
	SM_SWAPBUTTON                  uintptr = 23
	SM_SYSTEMDOCKED                uintptr = 0x2004
	SM_TABLETPC                    uintptr = 86
	SM_XVIRTUALSCREEN              uintptr = 76
	SM_YVIRTUALSCREEN              uintptr = 77

	ARW_BOTTOMLEFT   uintptr = 0x0000
	ARW_BOTTOMRIGHT  uintptr = 0x0001
	ARW_TOPLEFT      uintptr = 0x0002
	ARW_TOPRIGHT     uintptr = 0x0003
	ARW_LEFT         uintptr = 0x0000
	ARW_RIGHT        uintptr = 0x0000
	ARW_UP           uintptr = 0x0004
	ARW_DOWN         uintptr = 0x0004
	ARW_HIDE         uintptr = 0x0008
	WM_WININICHANGE  uintptr = 0x001A
	WM_SETTINGCHANGE uintptr = WM_WININICHANGE

	NID_INTEGRATED_TOUCH uintptr = 0x01
	NID_EXTERNAL_TOUCH   uintptr = 0x02
	NID_INTEGRATED_PEN   uintptr = 0x04
	NID_EXTERNAL_PEN     uintptr = 0x08
	NID_MULTI_INPUT      uintptr = 0x40
	NID_READY            uintptr = 0x80

	SPI_GETACCESSTIMEOUT            uintptr = 0x003C
	SPI_GETAUDIODESCRIPTION         uintptr = 0x0074
	SPI_GETCLIENTAREAANIMATION      uintptr = 0x1042
	SPI_GETDISABLEOVERLAPPEDCONTENT uintptr = 0x1040
	SPI_GETFILTERKEYS               uintptr = 0x0032
	SPI_GETFOCUSBORDERHEIGHT        uintptr = 0x2010
	SPI_GETFOCUSBORDERWIDTH         uintptr = 0x200E
	SPI_GETHIGHCONTRAST             uintptr = 0x0042
	SPI_GETLOGICALDPIOVERRIDE       uintptr = 0x009E
	SPI_GETMESSAGEDURATION          uintptr = 0x2016
	SPI_GETMOUSECLICKLOCK           uintptr = 0x101E
	SPI_GETMOUSECLICKLOCKTIME       uintptr = 0x2008
	SPI_GETMOUSEKEYS                uintptr = 0x0036
	SPI_GETMOUSESONAR               uintptr = 0x101C
	SPI_GETMOUSEVANISH              uintptr = 0x1020
	SPI_GETSCREENREADER             uintptr = 0x0046
	SPI_GETSERIALKEYS               uintptr = 0x003E
	SPI_GETSHOWSOUNDS               uintptr = 0x0038
	SPI_GETSOUNDSENTRY              uintptr = 0x0040
	SPI_GETSTICKYKEYS               uintptr = 0x003A
	SPI_GETTOGGLEKEYS               uintptr = 0x0034
	SPI_SETACCESSTIMEOUT            uintptr = 0x003D
	SPI_SETAUDIODESCRIPTION         uintptr = 0x0075
	SPI_SETCLIENTAREAANIMATION      uintptr = 0x1043
	SPI_SETDISABLEOVERLAPPEDCONTENT uintptr = 0x1041
	SPI_SETFILTERKEYS               uintptr = 0x0033
	SPI_SETFOCUSBORDERHEIGHT        uintptr = 0x2011
	SPI_SETFOCUSBORDERWIDTH         uintptr = 0x200F
	SPI_SETHIGHCONTRAST             uintptr = 0x0043
	SPI_SETLOGICALDPIOVERRIDE       uintptr = 0x009F
	SPI_SETMESSAGEDURATION          uintptr = 0x2017
	SPI_SETMOUSECLICKLOCK           uintptr = 0x101F
	SPI_SETMOUSECLICKLOCKTIME       uintptr = 0x2009
	SPI_SETMOUSEKEYS                uintptr = 0x0037
	SPI_SETMOUSESONAR               uintptr = 0x101D
	SPI_SETMOUSEVANISH              uintptr = 0x1021
	SPI_SETSCREENREADER             uintptr = 0x0047
	SPI_SETSERIALKEYS               uintptr = 0x003F
	SPI_SETSHOWSOUNDS               uintptr = 0x0039
	SPI_SETSOUNDSENTRY              uintptr = 0x0041
	SPI_SETSTICKYKEYS               uintptr = 0x003B
	SPI_SETTOGGLEKEYS               uintptr = 0x0035
	SPI_GETCLEARTYPE                uintptr = 0x1048
	SPI_GETDESKWALLPAPER            uintptr = 0x0073
	SPI_GETDROPSHADOW               uintptr = 0x1024
	SPI_GETFLATMENU                 uintptr = 0x1022
	SPI_GETFONTSMOOTHING            uintptr = 0x004A
	SPI_GETFONTSMOOTHINGCONTRAST    uintptr = 0x200C
	SPI_GETFONTSMOOTHINGORIENTATION uintptr = 0x2012
	SPI_GETFONTSMOOTHINGTYPE        uintptr = 0x200A
	SPI_GETWORKAREA                 uintptr = 0x0030
	SPI_SETCLEARTYPE                uintptr = 0x1049
	SPI_SETCURSORS                  uintptr = 0x0057
	SPI_SETDESKPATTERN              uintptr = 0x0015
	SPI_SETDESKWALLPAPER            uintptr = 0x0014
	SPI_SETDROPSHADOW               uintptr = 0x1025
	SPI_SETFLATMENU                 uintptr = 0x1023
	SPI_SETFONTSMOOTHING            uintptr = 0x004B
	SPI_SETFONTSMOOTHINGCONTRAST    uintptr = 0x200D
	SPI_SETFONTSMOOTHINGORIENTATION uintptr = 0x2013
	SPI_SETFONTSMOOTHINGTYPE        uintptr = 0x200B
	SPI_SETWORKAREA                 uintptr = 0x002F
	SPI_GETICONMETRICS              uintptr = 0x002D
	SPI_GETICONTITLELOGFONT         uintptr = 0x001F
	SPI_GETICONTITLEWRAP            uintptr = 0x0019
	SPI_ICONHORIZONTALSPACING       uintptr = 0x000D
	SPI_ICONVERTICALSPACING         uintptr = 0x0018
	SPI_SETICONMETRICS              uintptr = 0x002E
	SPI_SETICONS                    uintptr = 0x0058
	SPI_SETICONTITLELOGFONT         uintptr = 0x0022
	SPI_SETICONTITLEWRAP            uintptr = 0x001A
	SPI_GETBEEP                     uintptr = 0x0001
	SPI_GETBLOCKSENDINPUTRESETS     uintptr = 0x1026
	SPI_GETCONTACTVISUALIZATION     uintptr = 0x2018
	SPI_GETDEFAULTINPUTLANG         uintptr = 0x0059
	SPI_GETGESTUREVISUALIZATION     uintptr = 0x201A
	SPI_GETKEYBOARDCUES             uintptr = 0x100A
	SPI_GETKEYBOARDDELAY            uintptr = 0x0016
	SPI_GETKEYBOARDPREF             uintptr = 0x0044
	SPI_GETKEYBOARDSPEED            uintptr = 0x000A
	SPI_GETMOUSE                    uintptr = 0x0003
	SPI_GETMOUSEHOVERHEIGHT         uintptr = 0x0064
	SPI_GETMOUSEHOVERTIME           uintptr = 0x0066
	SPI_GETMOUSEHOVERWIDTH          uintptr = 0x0062
	SPI_GETMOUSESPEED               uintptr = 0x0070
	SPI_GETMOUSETRAILS              uintptr = 0x005E
	SPI_GETMOUSEWHEELROUTING        uintptr = 0x201C
	SPI_GETPENVISUALIZATION         uintptr = 0x201E
	SPI_GETSNAPTODEFBUTTON          uintptr = 0x005F
	SPI_GETSYSTEMLANGUAGEBAR        uintptr = 0x1050
	SPI_GETTHREADLOCALINPUTSETTINGS uintptr = 0x104E
	SPI_GETWHEELSCROLLCHARS         uintptr = 0x006C
	SPI_GETWHEELSCROLLLINES         uintptr = 0x0068
	SPI_SETBEEP                     uintptr = 0x0002
	SPI_SETBLOCKSENDINPUTRESETS     uintptr = 0x1027
	SPI_SETCONTACTVISUALIZATION     uintptr = 0x2019
	SPI_SETDEFAULTINPUTLANG         uintptr = 0x005A
	SPI_SETDOUBLECLICKTIME          uintptr = 0x0020
	SPI_SETDOUBLECLKHEIGHT          uintptr = 0x001E
	SPI_SETDOUBLECLKWIDTH           uintptr = 0x001D
	SPI_SETGESTUREVISUALIZATION     uintptr = 0x201B
	SPI_SETKEYBOARDCUES             uintptr = 0x100B
	SPI_SETKEYBOARDDELAY            uintptr = 0x0017
	SPI_SETKEYBOARDPREF             uintptr = 0x0045
	SPI_SETKEYBOARDSPEED            uintptr = 0x000B
	SPI_SETLANGTOGGLE               uintptr = 0x005B
	SPI_SETMOUSE                    uintptr = 0x0004
	SPI_SETMOUSEBUTTONSWAP          uintptr = 0x0021
	SPI_SETMOUSEHOVERHEIGHT         uintptr = 0x0065
	SPI_SETMOUSEHOVERTIME           uintptr = 0x0067
	SPI_SETMOUSEHOVERWIDTH          uintptr = 0x0063
	SPI_SETMOUSESPEED               uintptr = 0x0071
	SPI_SETMOUSETRAILS              uintptr = 0x005D
	SPI_SETMOUSEWHEELROUTING        uintptr = 0x201D
	SPI_SETPENVISUALIZATION         uintptr = 0x201F
	SPI_SETSNAPTODEFBUTTON          uintptr = 0x0060
	SPI_SETSYSTEMLANGUAGEBAR        uintptr = 0x1051
	SPI_SETTHREADLOCALINPUTSETTINGS uintptr = 0x104F
	SPI_SETWHEELSCROLLCHARS         uintptr = 0x006D
	SPI_SETWHEELSCROLLLINES         uintptr = 0x0069
	SPI_GETMENUDROPALIGNMENT        uintptr = 0x001B
	SPI_GETMENUFADE                 uintptr = 0x1012
	SPI_GETMENUSHOWDELAY            uintptr = 0x006A
	SPI_SETMENUDROPALIGNMENT        uintptr = 0x001C
	SPI_SETMENUFADE                 uintptr = 0x1013
	SPI_SETMENUSHOWDELAY            uintptr = 0x006B
	SPI_GETLOWPOWERACTIVE           uintptr = 0x0053
	SPI_GETLOWPOWERTIMEOUT          uintptr = 0x004F
	SPI_GETPOWEROFFACTIVE           uintptr = 0x0054
	SPI_GETPOWEROFFTIMEOUT          uintptr = 0x0050
	SPI_SETLOWPOWERACTIVE           uintptr = 0x0055
	SPI_SETLOWPOWERTIMEOUT          uintptr = 0x0051
	SPI_SETPOWEROFFACTIVE           uintptr = 0x0056
	SPI_SETPOWEROFFTIMEOUT          uintptr = 0x0052
	SPI_GETSCREENSAVEACTIVE         uintptr = 0x0010
	SPI_GETSCREENSAVERRUNNING       uintptr = 0x0072
	SPI_GETSCREENSAVESECURE         uintptr = 0x0076
	SPI_GETSCREENSAVETIMEOUT        uintptr = 0x000E
	SPI_SETSCREENSAVEACTIVE         uintptr = 0x0011
	SPI_SETSCREENSAVESECURE         uintptr = 0x0077
	SPI_SETSCREENSAVETIMEOUT        uintptr = 0x000F
	SPI_GETHUNGAPPTIMEOUT           uintptr = 0x0078
	SPI_GETWAITTOKILLTIMEOUT        uintptr = 0x007A
	SPI_GETWAITTOKILLSERVICETIMEOUT uintptr = 0x007C
	SPI_SETHUNGAPPTIMEOUT           uintptr = 0x0079
	SPI_SETWAITTOKILLTIMEOUT        uintptr = 0x007B
	SPI_SETWAITTOKILLSERVICETIMEOUT uintptr = 0x007D
	SPI_GETCOMBOBOXANIMATION        uintptr = 0x1004
	SPI_GETCURSORSHADOW             uintptr = 0x101A
	SPI_GETGRADIENTCAPTIONS         uintptr = 0x1008
	SPI_GETHOTTRACKING              uintptr = 0x100E
	SPI_GETLISTBOXSMOOTHSCROLLING   uintptr = 0x1006
	SPI_GETMENUANIMATION            uintptr = 0x1002
	SPI_GETMENUUNDERLINES           uintptr = 0x100A
	SPI_GETSELECTIONFADE            uintptr = 0x1014
	SPI_GETTOOLTIPANIMATION         uintptr = 0x1016
	SPI_GETTOOLTIPFADE              uintptr = 0x1018
	SPI_GETUIEFFECTS                uintptr = 0x103E
	SPI_SETCOMBOBOXANIMATION        uintptr = 0x1005
	SPI_SETCURSORSHADOW             uintptr = 0x101B
	SPI_SETGRADIENTCAPTIONS         uintptr = 0x1009
	SPI_SETHOTTRACKING              uintptr = 0x100F
	SPI_SETLISTBOXSMOOTHSCROLLING   uintptr = 0x1007
	SPI_SETMENUANIMATION            uintptr = 0x1003
	SPI_SETMENUUNDERLINES           uintptr = 0x100B
	SPI_SETSELECTIONFADE            uintptr = 0x1015
	SPI_SETTOOLTIPANIMATION         uintptr = 0x1017
	SPI_SETTOOLTIPFADE              uintptr = 0x1019
	SPI_SETUIEFFECTS                uintptr = 0x103F
	SPI_GETACTIVEWINDOWTRACKING     uintptr = 0x1000
	SPI_GETACTIVEWNDTRKZORDER       uintptr = 0x100C
	SPI_GETACTIVEWNDTRKTIMEOUT      uintptr = 0x2002
	SPI_GETANIMATION                uintptr = 0x0048
	SPI_GETBORDER                   uintptr = 0x0005
	SPI_GETCARETWIDTH               uintptr = 0x2006
	SPI_GETDOCKMOVING               uintptr = 0x0090
	SPI_GETDRAGFROMMAXIMIZE         uintptr = 0x008C
	SPI_GETDRAGFULLWINDOWS          uintptr = 0x0026
	SPI_GETFOREGROUNDFLASHCOUNT     uintptr = 0x2004
	SPI_GETFOREGROUNDLOCKTIMEOUT    uintptr = 0x2000
	SPI_GETMINIMIZEDMETRICS         uintptr = 0x002B
	SPI_GETMOUSEDOCKTHRESHOLD       uintptr = 0x007E
	SPI_GETMOUSEDRAGOUTTHRESHOLD    uintptr = 0x0084
	SPI_GETMOUSESIDEMOVETHRESHOLD   uintptr = 0x0088
	SPI_GETNONCLIENTMETRICS         uintptr = 0x0029
	SPI_GETPENDOCKTHRESHOLD         uintptr = 0x0080
	SPI_GETPENDRAGOUTTHRESHOLD      uintptr = 0x0086
	SPI_GETPENSIDEMOVETHRESHOLD     uintptr = 0x008A
	SPI_GETSHOWIMEUI                uintptr = 0x006E
	SPI_GETSNAPSIZING               uintptr = 0x008E
	SPI_GETWINARRANGING             uintptr = 0x0082
	SPI_SETACTIVEWINDOWTRACKING     uintptr = 0x1001
	SPI_SETACTIVEWNDTRKZORDER       uintptr = 0x100D
	SPI_SETACTIVEWNDTRKTIMEOUT      uintptr = 0x2003
	SPI_SETANIMATION                uintptr = 0x0049
	SPI_SETBORDER                   uintptr = 0x0006
	SPI_SETCARETWIDTH               uintptr = 0x2007
	SPI_SETDOCKMOVING               uintptr = 0x0091
	SPI_SETDRAGFROMMAXIMIZE         uintptr = 0x008D
	SPI_SETDRAGFULLWINDOWS          uintptr = 0x0025
	SPI_SETDRAGHEIGHT               uintptr = 0x004D
	SPI_SETDRAGWIDTH                uintptr = 0x004C
	SPI_SETFOREGROUNDFLASHCOUNT     uintptr = 0x2005
	SPI_SETFOREGROUNDLOCKTIMEOUT    uintptr = 0x2001
	SPI_SETMINIMIZEDMETRICS         uintptr = 0x002C
	SPI_SETMOUSEDOCKTHRESHOLD       uintptr = 0x007F
	SPI_SETMOUSEDRAGOUTTHRESHOLD    uintptr = 0x0085
	SPI_SETMOUSESIDEMOVETHRESHOLD   uintptr = 0x0089
	SPI_SETNONCLIENTMETRICS         uintptr = 0x002A
	SPI_SETPENDOCKTHRESHOLD         uintptr = 0x0081
	SPI_SETPENDRAGOUTTHRESHOLD      uintptr = 0x0087
	SPI_SETPENSIDEMOVETHRESHOLD     uintptr = 0x008B
	SPI_SETSHOWIMEUI                uintptr = 0x006F
	SPI_SETSNAPSIZING               uintptr = 0x008F
	SPI_SETWINARRANGING             uintptr = 0x0083

	WM_MDIACTIVATE    uintptr = 0x0222
	WM_MDICASCADE     uintptr = 0x0227
	WM_MDICREATE      uintptr = 0x0220
	WM_MDIDESTROY     uintptr = 0x0221
	WM_MDIGETACTIVE   uintptr = 0x0229
	WM_MDIICONARRANGE uintptr = 0x0228
	WM_MDIMAXIMIZE    uintptr = 0x0225
	WM_MDINEXT        uintptr = 0x0224
	WM_MDIREFRESHMENU uintptr = 0x0234
	WM_MDIRESTORE     uintptr = 0x0223
	WM_MDISETMENU     uintptr = 0x0230
	WM_MDITILE        uintptr = 0x0226

	MDITILE_SKIPDISABLED uintptr = 0x0002
	MDITILE_ZORDER       uintptr = 0x0004
	MDITILE_HORIZONTAL   uintptr = 0x0001
	MDITILE_VERTICAL     uintptr = 0x0000

	USER_TIMER_MINIMUM uintptr = 0x0000000A
	USER_TIMER_MAXIMUM uintptr = 0x7FFFFFFF

	TIMERV_DEFAULT_COALESCING uintptr = 0x00000000
	TIMERV_NO_COALESCING      uintptr = 0xFFFFFFFF

	WS_BORDER           uintptr = 0x00800000
	WS_CAPTION          uintptr = 0x00C00000
	WS_CHILD            uintptr = 0x40000000
	WS_CHILDWINDOW      uintptr = 0x40000000
	WS_CLIPCHILDREN     uintptr = 0x02000000
	WS_CLIPSIBLINGS     uintptr = 0x04000000
	WS_DISABLED         uintptr = 0x08000000
	WS_DLGFRAME         uintptr = 0x00400000
	WS_GROUP            uintptr = 0x00020000
	WS_HSCROLL          uintptr = 0x00100000
	WS_ICONIC           uintptr = 0x20000000
	WS_MAXIMIZE         uintptr = 0x01000000
	WS_MAXIMIZEBOX      uintptr = 0x00010000
	WS_MINIMIZE         uintptr = 0x20000000
	WS_MINIMIZEBOX      uintptr = 0x00020000
	WS_OVERLAPPED       uintptr = 0x00000000
	WS_OVERLAPPEDWINDOW uintptr = (WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME | WS_MINIMIZEBOX | WS_MAXIMIZEBOX)
	WS_POPUP            uintptr = 0x80000000
	WS_POPUPWINDOW      uintptr = (WS_POPUP | WS_BORDER | WS_SYSMENU)
	WS_SIZEBOX          uintptr = 0x00040000
	WS_SYSMENU          uintptr = 0x00080000
	WS_TABSTOP          uintptr = 0x00010000
	WS_THICKFRAME       uintptr = 0x00040000
	WS_TILED            uintptr = 0x00000000
	WS_TILEDWINDOW      uintptr = (WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME | WS_MINIMIZEBOX | WS_MAXIMIZEBOX)
	WS_VISIBLE          uintptr = 0x10000000
	WS_VSCROLL          uintptr = 0x00200000

	WS_EX_ACCEPTFILES         uintptr = 0x00000010
	WS_EX_APPWINDOW           uintptr = 0x00040000
	WS_EX_CLIENTEDGE          uintptr = 0x00000200
	WS_EX_COMPOSITED          uintptr = 0x02000000
	WS_EX_CONTEXTHELP         uintptr = 0x00000400
	WS_EX_CONTROLPARENT       uintptr = 0x00010000
	WS_EX_DLGMODALFRAME       uintptr = 0x00000001
	WS_EX_LAYERED             uintptr = 0x00080000
	WS_EX_LAYOUTRTL           uintptr = 0x00400000
	WS_EX_LEFT                uintptr = 0x00000000
	WS_EX_LEFTSCROLLBAR       uintptr = 0x00004000
	WS_EX_LTRREADING          uintptr = 0x00000000
	WS_EX_MDICHILD            uintptr = 0x00000040
	WS_EX_NOACTIVATE          uintptr = 0x08000000
	WS_EX_NOINHERITLAYOUT     uintptr = 0x00100000
	WS_EX_NOPARENTNOTIFY      uintptr = 0x00000004
	WS_EX_NOREDIRECTIONBITMAP uintptr = 0x00200000
	WS_EX_OVERLAPPEDWINDOW    uintptr = (WS_EX_WINDOWEDGE | WS_EX_CLIENTEDGE)
	WS_EX_PALETTEWINDOW       uintptr = (WS_EX_WINDOWEDGE | WS_EX_TOOLWINDOW | WS_EX_TOPMOST)
	WS_EX_RIGHT               uintptr = 0x00001000
	WS_EX_RIGHTSCROLLBAR      uintptr = 0x00000000
	WS_EX_RTLREADING          uintptr = 0x00002000
	WS_EX_STATICEDGE          uintptr = 0x00020000
	WS_EX_TOOLWINDOW          uintptr = 0x00000080
	WS_EX_TOPMOST             uintptr = 0x00000008
	WS_EX_TRANSPARENT         uintptr = 0x00000020
	WS_EX_WINDOWEDGE          uintptr = 0x00000100

	MDIS_ALLCHILDSTYLES uintptr = 0x0001
	CW_USEDEFAULT       uintptr = 0x80000000

	WHEEL_DELTA uintptr = 120

	FW_DONTCARE   uintptr = 0
	FW_THIN       uintptr = 100
	FW_EXTRALIGHT uintptr = 200
	FW_ULTRALIGHT uintptr = 200
	FW_LIGHT      uintptr = 300
	FW_NORMAL     uintptr = 400
	FW_REGULAR    uintptr = 400
	FW_MEDIUM     uintptr = 500
	FW_SEMIBOLD   uintptr = 600
	FW_DEMIBOLD   uintptr = 600
	FW_BOLD       uintptr = 700
	FW_EXTRABOLD  uintptr = 800
	FW_ULTRABOLD  uintptr = 800
	FW_HEAVY      uintptr = 900
	FW_BLACK      uintptr = 900

	CONTACTVISUALIZATION_OFF              uintptr = 0x0000
	CONTACTVISUALIZATION_ON               uintptr = 0x0001
	CONTACTVISUALIZATION_PRESENTATIONMODE uintptr = 0x0002

	GESTUREVISUALIZATION_OFF          uintptr = 0x0000
	GESTUREVISUALIZATION_ON           uintptr = 0x001F
	GESTUREVISUALIZATION_TAP          uintptr = 0x0001
	GESTUREVISUALIZATION_DOUBLETAP    uintptr = 0x0002
	GESTUREVISUALIZATION_PRESSANDTAP  uintptr = 0x0004
	GESTUREVISUALIZATION_PRESSANDHOLD uintptr = 0x0008
	GESTUREVISUALIZATION_RIGHTTAP     uintptr = 0x0010

	PENVISUALIZATION_OFF       uintptr = 0x0000
	PENVISUALIZATION_ON        uintptr = 0x0023
	PENVISUALIZATION_TAP       uintptr = 0x0001
	PENVISUALIZATION_DOUBLETAP uintptr = 0x0002
	PENVISUALIZATION_CURSOR    uintptr = 0x0020

	SPIF_UPDATEINIFILE    uintptr = 0x0001
	SPIF_SENDWININICHANGE uintptr = 0x0002
	SPIF_SENDCHANGE       uintptr = SPIF_SENDWININICHANGE

	FE_FONTSMOOTHINGSTANDARD  uintptr = 0x0001
	FE_FONTSMOOTHINGCLEARTYPE uintptr = 0x0002

	FE_FONTSMOOTHINGORIENTATIONBGR uintptr = 0x0000
	FE_FONTSMOOTHINGORIENTATIONRGB uintptr = 0x0001

	SIZE_MAXHIDE   uintptr = 4
	SIZE_MAXIMIZED uintptr = 2
	SIZE_MAXSHOW   uintptr = 3
	SIZE_MINIMIZED uintptr = 1
	SIZE_RESTORED  uintptr = 0

	SC_CLOSE        uintptr = 0xF060
	SC_CONTEXTHELP  uintptr = 0xF180
	SC_DEFAULT      uintptr = 0xF160
	SC_HOTKEY       uintptr = 0xF150
	SC_HSCROLL      uintptr = 0xF080
	SCF_ISSECURE    uintptr = 0x00000001
	SC_KEYMENU      uintptr = 0xF100
	SC_MAXIMIZE     uintptr = 0xF030
	SC_MINIMIZE     uintptr = 0xF020
	SC_MONITORPOWER uintptr = 0xF170
	SC_MOUSEMENU    uintptr = 0xF090
	SC_MOVE         uintptr = 0xF010
	SC_NEXTWINDOW   uintptr = 0xF040
	SC_PREVWINDOW   uintptr = 0xF050
	SC_RESTORE      uintptr = 0xF120
	SC_SCREENSAVE   uintptr = 0xF140
	SC_SIZE         uintptr = 0xF000
	SC_TASKLIST     uintptr = 0xF130
	SC_VSCROLL      uintptr = 0xF070

	FROM_LEFT_1ST_BUTTON_PRESSED uintptr = 0x0001
	FROM_LEFT_2ND_BUTTON_PRESSED uintptr = 0x0004
	FROM_LEFT_3RD_BUTTON_PRESSED uintptr = 0x0008
	FROM_LEFT_4TH_BUTTON_PRESSED uintptr = 0x0010
	RIGHTMOST_BUTTON_PRESSED     uintptr = 0x0002

	CAPSLOCK_ON        uintptr = 0x0080
	ENHANCED_KEY       uintptr = 0x0100
	LEFT_ALT_PRESSED   uintptr = 0x0002
	LEFT_CTRL_PRESSED  uintptr = 0x0008
	NUMLOCK_ON         uintptr = 0x0020
	RIGHT_ALT_PRESSED  uintptr = 0x0001
	RIGHT_CTRL_PRESSED uintptr = 0x0004
	SCROLLLOCK_ON      uintptr = 0x0040
	SHIFT_PRESSED      uintptr = 0x0010

	DOUBLE_CLICK   uintptr = 0x0002
	MOUSE_HWHEELED uintptr = 0x0008
	MOUSE_MOVED    uintptr = 0x0001
	MOUSE_WHEELED  uintptr = 0x0004

	FOCUS_EVENT              uintptr = 0x0010
	KEY_EVENT                uintptr = 0x0001
	MENU_EVENT               uintptr = 0x0008
	MOUSE_EVENT              uintptr = 0x0002
	WINDOW_BUFFER_SIZE_EVENT uintptr = 0x0004

	ENABLE_ECHO_INPUT                  uintptr = 0x0004
	ENABLE_EXTENDED_FLAGS              uintptr = 0x0080
	ENABLE_INSERT_MODE                 uintptr = 0x0020
	ENABLE_LINE_INPUT                  uintptr = 0x0002
	ENABLE_MOUSE_INPUT                 uintptr = 0x0010
	ENABLE_PROCESSED_INPUT             uintptr = 0x0001
	ENABLE_QUICK_EDIT_MODE             uintptr = 0x0040
	ENABLE_WINDOW_INPUT                uintptr = 0x0008
	ENABLE_VIRTUAL_TERMINAL_INPUT      uintptr = 0x0200
	ENABLE_PROCESSED_OUTPUT            uintptr = 0x0001
	ENABLE_WRAP_AT_EOL_OUTPUT          uintptr = 0x0002
	ENABLE_VIRTUAL_TERMINAL_PROCESSING uintptr = 0x0004
	DISABLE_NEWLINE_AUTO_RETURN        uintptr = 0x0008
	ENABLE_LVB_GRID_WORLDWIDE          uintptr = 0x0010

	STD_INPUT_HANDLE  uintptr = -10 & (1<<32 - 1)
	STD_OUTPUT_HANDLE uintptr = -11 & (1<<32 - 1)
	STD_ERROR_HANDLE  uintptr = -12 & (1<<32 - 1)
)

Variables

This section is empty.

Functions

func BroadcastSystemMessage

func BroadcastSystemMessage(dwFlags uintptr, lpdwRecipients *uintptr, uiMessage uintptr, wParam uintptr, lParam uintptr) (uintptr, error)

https://msdn.microsoft.com/en-us/library/ms644932.aspx

func BroadcastSystemMessageEx

func BroadcastSystemMessageEx(dwFlags uintptr, lpdwRecipients *uintptr, uiMessage uintptr, wParam uintptr, lParam uintptr, pBSMInfo *BSMINFO) (uintptr, error)

https://msdn.microsoft.com/en-us/library/ms644933.aspx

func CreateMDIWindow

func CreateMDIWindow(lpClassName string, lpWindowName string, dwStyle uintptr, X int32, Y int32, nWidth uintptr, nHeight uintptr, hWndParent uintptr, hInstance uintptr, lParam uintptr) (uintptr, error)

https://msdn.microsoft.com/en-us/library/ms644923.aspx

func DefFrameProc

func DefFrameProc(hWnd uintptr, hWndMDIClient uintptr, uMsg uintptr, wParam uintptr, lParam uintptr) (uintptr, error)

https://msdn.microsoft.com/en-us/library/ms644924.aspx

func DefRawInputProcHID

func DefRawInputProcHID(paRawInput []RAWINPUT_HID, nInput uintptr, cbSizeHeader uintptr) (uintptr, error)

https://msdn.microsoft.com/en-us/library/ms645594.aspx

func DefRawInputProcK

func DefRawInputProcK(paRawInput []RAWINPUT_K, nInput uintptr, cbSizeHeader uintptr) (uintptr, error)

https://msdn.microsoft.com/en-us/library/ms645594.aspx

func DefRawInputProcMB

func DefRawInputProcMB(paRawInput []RAWINPUT_MB, nInput uintptr, cbSizeHeader uintptr) (uintptr, error)

https://msdn.microsoft.com/en-us/library/ms645594.aspx

func DefRawInputProcMBI

func DefRawInputProcMBI(paRawInput []RAWINPUT_MBI, nInput uintptr, cbSizeHeader uintptr) (uintptr, error)

https://msdn.microsoft.com/en-us/library/ms645594.aspx

func GetMessage

func GetMessage(lpMsg *MSG, hWnd uintptr, wMsgFilterMin uintptr, wMsgFilterMax uintptr) (uintptr, error)

https://msdn.microsoft.com/en-us/library/ms644936.aspx

func GetMouseMovePointsEx

func GetMouseMovePointsEx(cbSize uintptr, lppt *MOUSEMOVEPOINT, lpptBuf []MOUSEMOVEPOINT, nBufPoints uintptr, resolution uintptr) (uintptr, error)

https://msdn.microsoft.com/en-us/library/ms646259.aspx

func GetRawInputBufferHID

func GetRawInputBufferHID(pData []RAWINPUT_HID, pcbSize *uintptr, cbSizeHeader uintptr) (uintptr, error)

https://msdn.microsoft.com/en-us/library/ms645595.aspx

func GetRawInputBufferK

func GetRawInputBufferK(pData []RAWINPUT_K, pcbSize *uintptr, cbSizeHeader uintptr) (uintptr, error)

https://msdn.microsoft.com/en-us/library/ms645595.aspx

func GetRawInputBufferMB

func GetRawInputBufferMB(pData []RAWINPUT_MB, pcbSize *uintptr, cbSizeHeader uintptr) (uintptr, error)

https://msdn.microsoft.com/en-us/library/ms645595.aspx

func GetRawInputBufferMBI

func GetRawInputBufferMBI(pData []RAWINPUT_MBI, pcbSize *uintptr, cbSizeHeader uintptr) (uintptr, error)

https://msdn.microsoft.com/en-us/library/ms645595.aspx

func GetRawInputDataHID

func GetRawInputDataHID(hRawInput uintptr, uiCommand uintptr, pData *RAWINPUT_HID, pcbSize *uintptr, cbSizeHeader uintptr) (uintptr, error)

https://msdn.microsoft.com/en-us/library/ms645596.aspx

func GetRawInputDataK

func GetRawInputDataK(hRawInput uintptr, uiCommand uintptr, pData *RAWINPUT_K, pcbSize *uintptr, cbSizeHeader uintptr) (uintptr, error)

https://msdn.microsoft.com/en-us/library/ms645596.aspx

func GetRawInputDataMB

func GetRawInputDataMB(hRawInput uintptr, uiCommand uintptr, pData *RAWINPUT_MB, pcbSize *uintptr, cbSizeHeader uintptr) (uintptr, error)

https://msdn.microsoft.com/en-us/library/ms645596.aspx

func GetRawInputDataMBI

func GetRawInputDataMBI(hRawInput uintptr, uiCommand uintptr, pData *RAWINPUT_MBI, pcbSize *uintptr, cbSizeHeader uintptr) (uintptr, error)

https://msdn.microsoft.com/en-us/library/ms645596.aspx

func GetRawInputDeviceList

func GetRawInputDeviceList(pRawInputDeviceList []RAWINPUTDEVICELIST, puiNumDevices *uintptr, cbSize uintptr) (uintptr, error)

https://msdn.microsoft.com/en-us/library/ms645598.aspx

func GetRegisteredRawInputDevices

func GetRegisteredRawInputDevices(pRawInputDevices []RAWINPUTDEVICE, puiNumDevices *uintptr, cbSize uintptr) (uintptr, error)

https://msdn.microsoft.com/en-us/library/ms645599.aspx

func PeekConsoleInputFocus

func PeekConsoleInputFocus(hConsoleInput uintptr, lpBuffer []INPUT_RECORD_FOCUS, nLength uintptr, lpNumberOfEventsRead *uintptr) (uintptr, error)

https://docs.microsoft.com/en-us/windows/console/peekconsoleinput

func PeekConsoleInputKey

func PeekConsoleInputKey(hConsoleInput uintptr, lpBuffer []INPUT_RECORD_KEY, nLength uintptr, lpNumberOfEventsRead *uintptr) (uintptr, error)

https://docs.microsoft.com/en-us/windows/console/peekconsoleinput

func PeekConsoleInputMenu

func PeekConsoleInputMenu(hConsoleInput uintptr, lpBuffer []INPUT_RECORD_MENU, nLength uintptr, lpNumberOfEventsRead *uintptr) (uintptr, error)

https://docs.microsoft.com/en-us/windows/console/peekconsoleinput

func PeekConsoleInputMouse

func PeekConsoleInputMouse(hConsoleInput uintptr, lpBuffer []INPUT_RECORD_MOUSE, nLength uintptr, lpNumberOfEventsRead *uintptr) (uintptr, error)

https://docs.microsoft.com/en-us/windows/console/peekconsoleinput

func PeekConsoleInputWindowBufferSize

func PeekConsoleInputWindowBufferSize(hConsoleInput uintptr, lpBuffer []INPUT_RECORD_WINDOW_BUFFER_SIZE, nLength uintptr, lpNumberOfEventsRead *uintptr) (uintptr, error)

https://docs.microsoft.com/en-us/windows/console/peekconsoleinput

func PeekMessage

func PeekMessage(lpMsg *MSG, hWnd uintptr, wMsgFilterMin uintptr, wMsgFilterMax uintptr, wRemoveMsg uintptr) (uintptr, error)

https://msdn.microsoft.com/en-us/library/ms644943.aspx

func ReadConsoleInputFocus

func ReadConsoleInputFocus(hConsoleInput uintptr, lpBuffer []INPUT_RECORD_FOCUS, nLength uintptr, lpNumberOfEventsRead *uintptr) (uintptr, error)

https://docs.microsoft.com/en-us/windows/console/readconsoleinput

func ReadConsoleInputKey

func ReadConsoleInputKey(hConsoleInput uintptr, lpBuffer []INPUT_RECORD_KEY, nLength uintptr, lpNumberOfEventsRead *uintptr) (uintptr, error)

https://docs.microsoft.com/en-us/windows/console/readconsoleinput

func ReadConsoleInputMenu

func ReadConsoleInputMenu(hConsoleInput uintptr, lpBuffer []INPUT_RECORD_MENU, nLength uintptr, lpNumberOfEventsRead *uintptr) (uintptr, error)

https://docs.microsoft.com/en-us/windows/console/readconsoleinput

func ReadConsoleInputMouse

func ReadConsoleInputMouse(hConsoleInput uintptr, lpBuffer []INPUT_RECORD_MOUSE, nLength uintptr, lpNumberOfEventsRead *uintptr) (uintptr, error)

https://docs.microsoft.com/en-us/windows/console/readconsoleinput

func ReadConsoleInputWindowBufferSize

func ReadConsoleInputWindowBufferSize(hConsoleInput uintptr, lpBuffer []INPUT_RECORD_WINDOW_BUFFER_SIZE, nLength uintptr, lpNumberOfEventsRead *uintptr) (uintptr, error)

https://docs.microsoft.com/en-us/windows/console/readconsoleinput

func RegisterRawInputDevices

func RegisterRawInputDevices(pRawInputDevices []RAWINPUTDEVICE, uiNumDevices uintptr, cbSize uintptr) (uintptr, error)

https://msdn.microsoft.com/en-us/library/ms645600.aspx

func SendMessageCallback

func SendMessageCallback(hWnd uintptr, Msg uintptr, wParam uintptr, lParam uintptr, lpCallback uintptr, dwData uintptr) (uintptr, error)

https://msdn.microsoft.com/en-us/library/ms644951.aspx

func SendMessageTimeout

func SendMessageTimeout(hWnd uintptr, Msg uintptr, wParam uintptr, lParam uintptr, fuFlags uintptr, uTimeout uintptr, lpdwResult *uintptr) (uintptr, error)

https://msdn.microsoft.com/en-us/library/ms644952.aspx

func SetCoalescableTimer

func SetCoalescableTimer(hwnd uintptr, nIDEvent uintptr, uElapse uintptr, lpTimerFunc uintptr, uToleranceDelay uintptr) (uintptr, error)

https://msdn.microsoft.com/en-us/library/hh405404.aspx

func SetTimer

func SetTimer(hWnd uintptr, nIDEvent uintptr, uElapse uintptr, lpTimerFunc uintptr) (uintptr, error)

https://msdn.microsoft.com/en-us/library/ms644906.aspx

func SystemParametersInfo

func SystemParametersInfo(uiAction uintptr, uiParam uintptr, pvParam *uintptr, fWinIni uintptr) (uintptr, error)

https://msdn.microsoft.com/en-us/library/ms724947.aspx

func ToAscii

func ToAscii(uVirtKey uintptr, uScanCode uintptr, lpKeyState []uint8, lpChar []uint16, uFlags uintptr) (uintptr, error)

https://msdn.microsoft.com/en-us/library/ms646316.aspx

func ToAsciiEx

func ToAsciiEx(uVirtKey uintptr, uScanCode uintptr, lpKeyState []uint8, lpChar []uint16, uFlags uintptr, dwhkl uintptr) (uintptr, error)

https://msdn.microsoft.com/en-us/library/ms646318.aspx

func ToUnicode

func ToUnicode(wVirtKey uintptr, wScanCode uintptr, lpKeyState []uint8, pwszBuff []uint16, cchBuff uintptr, wFlags uintptr) (uintptr, error)

https://msdn.microsoft.com/en-us/library/ms646320.aspx

func ToUnicodeEx

func ToUnicodeEx(wVirtKey uintptr, wScanCode uintptr, lpKeyState []uint8, pwszBuff []uint16, cchBuff uintptr, wFlags uintptr, dwhkl uintptr) (uintptr, error)

https://msdn.microsoft.com/en-us/library/ms646322.aspx

Types

type ANIMATIONINFO

type ANIMATIONINFO struct {
	CbSize      uint32
	IMinAnimate int32
}

https://msdn.microsoft.com/en-us/library/ms724197.aspx

type AUDIODESCRIPTION

type AUDIODESCRIPTION struct {
	CbSize  uint32
	Enabled int32
	Locale  uint32
}

https://msdn.microsoft.com/en-us/library/aa379651.aspx

type BSMINFO

type BSMINFO struct {
	CbSize uint32
	Hdesk  uintptr
	Hwnd   uintptr
	Luid   LUID
}

https://msdn.microsoft.com/en-us/library/ms644957.aspx

type CBTACTIVATESTRUCT

type CBTACTIVATESTRUCT struct {
	FMouse     int32
	HwndActive uintptr
}

https://msdn.microsoft.com/en-us/library/ms644961.aspx

type CBT_CREATEWND

type CBT_CREATEWND struct {
	Lpcs            *CREATESTRUCT
	HwndInsertAfter uintptr
}

https://msdn.microsoft.com/en-us/library/ms644962.aspx

type CLIENTCREATESTRUCT

type CLIENTCREATESTRUCT struct {
	HWindowMenu  uintptr
	IdFirstChild uint32
}

https://msdn.microsoft.com/en-us/library/ms632602.aspx

type CREATESTRUCT

type CREATESTRUCT struct {
	LpCreateParams uintptr
	HInstance      uintptr
	HMenu          uintptr
	HwndParent     uintptr
	Cy             int32
	Cx             int32
	Y              int32
	X              int32
	Style          int32
	LpszName       []uint16
	LpszClass      []uint16
	DwExStyle      uint32
}

https://msdn.microsoft.com/en-us/library/ms632603.aspx

type CWPRETSTRUCT

type CWPRETSTRUCT struct {
	LResult uintptr
	LParam  uintptr
	WParam  uintptr
	Message uint32
	Hwnd    uintptr
}

https://msdn.microsoft.com/en-us/library/ms644963.aspx

type CWPSTRUCT

type CWPSTRUCT struct {
	LParam  uintptr
	WParam  uintptr
	Message uint32
	Hwnd    uintptr
}

https://msdn.microsoft.com/en-us/library/ms644964.aspx

type DEBUGHOOKINFO

type DEBUGHOOKINFO struct {
	IdThread          uint32
	IdThreadInstaller uint32
	LParam            uintptr
	WParam            uintptr
	Code              int32
}

https://msdn.microsoft.com/en-us/library/ms644965.aspx

type EVENTMSG

type EVENTMSG struct {
	Message uint32
	ParamL  uint32
	ParamH  uint32
	Time    uint32
	Hwnd    uintptr
}

https://msdn.microsoft.com/en-us/library/ms644966.aspx

type HARDWAREINPUT

type HARDWAREINPUT struct {
	UMsg    uint32
	WParamL uint16
	WParamH uint16
}

https://msdn.microsoft.com/en-us/library/ms646269.aspx

type KBDLLHOOKSTRUCT

type KBDLLHOOKSTRUCT struct {
	VkCode      uint32
	ScanCode    uint32
	Flags       uint32
	Time        uint32
	DwExtraInfo uint32
}

https://msdn.microsoft.com/en-us/library/ms644967.aspx

type KEYBDINPUT

type KEYBDINPUT struct {
	WVk         uint16
	WScan       uint16
	DwFlags     uint32
	Time        uint32
	DwExtraInfo uint32
}

https://msdn.microsoft.com/en-us/library/ms646271.aspx

type KEY_EVENT_RECORD

type KEY_EVENT_RECORD struct {
	BKeyDown          int32
	WRepeatCount      uint16
	WVirtualKeyCode   uint16
	WVirtualScanCode  uint16
	UChar             uint16
	DwControlKeyState uint32
}

https://docs.microsoft.com/en-us/windows/console/key-event-record-str

type LASTINPUTINFO

type LASTINPUTINFO struct {
	CbSize uint32
	DwTime uint32
}

https://msdn.microsoft.com/en-us/library/ms646272.aspx

type LOGFONT

type LOGFONT struct {
	LfHeight         int32
	LfWidth          int32
	LfEscapement     int32
	LfOrientation    int32
	LfWeight         int32
	LfItalic         uint8
	LfUnderline      uint8
	LfStrikeOut      uint8
	LfCharSet        uint8
	LfOutPrecision   uint8
	LfClipPrecision  uint8
	LfQuality        uint8
	LfPitchAndFamily uint8
	LfFaceName       []uint16
}

https://msdn.microsoft.com/en-us/library/dd145037.aspx

type LUID

type LUID struct {
	LowPart  uint32
	HighPart int32
}

https://msdn.microsoft.com/en-us/library/aa379261.aspx

type MDICREATESTRUCT

type MDICREATESTRUCT struct {
	SzClass []uint16
	SzTitle []uint16
	HOwner  uintptr
	X       int32
	Y       int32
	Cx      int32
	Cy      int32
	Style   uint32
	LParam  uintptr
}

https://msdn.microsoft.com/en-us/library/ms644910.aspx

type MINIMIZEDMETRICS

type MINIMIZEDMETRICS struct {
	CbSize   uint32
	IWidth   int32
	IHorzGap int32
	IVertGap int32
	IArrange int32
}

https://msdn.microsoft.com/en-us/library/ms724500.aspx

type MOUSEHOOKSTRUCT

type MOUSEHOOKSTRUCT struct {
	Pt           POINT
	Hwnd         uintptr
	WHitTestCode uint32
	DwExtraInfo  uint32
}

https://msdn.microsoft.com/en-us/library/ms644968.aspx

type MOUSEHOOKSTRUCTEX

type MOUSEHOOKSTRUCTEX struct {
	MOUSEHOOKSTRUCT MOUSEHOOKSTRUCT
	MouseData       uint32
}

https://msdn.microsoft.com/en-us/library/ms644969.aspx

type MOUSEINPUT

type MOUSEINPUT struct {
	Dx          int32
	Dy          int32
	MouseData   uint32
	DwFlags     uint32
	Time        uint32
	DwExtraInfo uint32
}

https://msdn.microsoft.com/en-us/library/ms646273.aspx

type MOUSEMOVEPOINT

type MOUSEMOVEPOINT struct {
	X           int32
	Y           int32
	Time        uint32
	DwExtraInfo uint32
}

https://msdn.microsoft.com/en-us/library/ms645603.aspx

type MOUSE_EVENT_RECORD

type MOUSE_EVENT_RECORD struct {
	DwMousePosition   COORD
	DwButtonState     uint32
	DwControlKeyState uint32
	DwEventFlags      uint32
}

https://docs.microsoft.com/en-us/windows/console/mouse-event-record-str

type MSG

type MSG struct {
	Hwnd    uintptr
	Message uint32
	WParam  uintptr
	LParam  uintptr
	Time    uint32
	Pt      POINT
}

https://msdn.microsoft.com/en-us/library/ms644958.aspx

type MSLLHOOKSTRUCT

type MSLLHOOKSTRUCT struct {
	Pt          POINT
	MouseData   uint32
	Flags       uint32
	Time        uint32
	DwExtraInfo uint32
}

https://msdn.microsoft.com/en-us/library/ms644970.aspx

type NONCLIENTMETRICS

type NONCLIENTMETRICS struct {
	CbSize             uint32
	IBorderWidth       int32
	IScrollWidth       int32
	IScrollHeight      int32
	ICaptionWidth      int32
	ICaptionHeight     int32
	LfCaptionFont      LOGFONT
	ISmCaptionWidth    int32
	ISmCaptionHeight   int32
	LfSmCaptionFont    LOGFONT
	IMenuWidth         int32
	IMenuHeight        int32
	LfMenuFont         LOGFONT
	LfStatusFont       LOGFONT
	LfMessageFont      LOGFONT
	IPaddedBorderWidth int32
}

https://msdn.microsoft.com/en-us/library/ff729175.aspx

type NONCLIENTMETRICS_L

type NONCLIENTMETRICS_L struct {
	CbSize           uint32
	IBorderWidth     int32
	IScrollWidth     int32
	IScrollHeight    int32
	ICaptionWidth    int32
	ICaptionHeight   int32
	LfCaptionFont    LOGFONT
	ISmCaptionWidth  int32
	ISmCaptionHeight int32
	LfSmCaptionFont  LOGFONT
	IMenuWidth       int32
	IMenuHeight      int32
	LfMenuFont       LOGFONT
	LfStatusFont     LOGFONT
	LfMessageFont    LOGFONT
}

https://msdn.microsoft.com/en-us/library/ff729175.aspx

type RAWHID

type RAWHID struct {
	DwSizeHid uint32
	DwCount   uint32
	BRawData  []uint8
}

https://msdn.microsoft.com/en-us/library/ms645549.aspx

type RAWINPUTDEVICE

type RAWINPUTDEVICE struct {
	UsUsagePage uint16
	UsUsage     uint16
	DwFlags     uint32
	HwndTarget  uintptr
}

https://msdn.microsoft.com/en-us/library/ms645565.aspx

type RAWINPUTDEVICELIST

type RAWINPUTDEVICELIST struct {
	HDevice uintptr
	DwType  uint32
}

https://msdn.microsoft.com/en-us/library/ms645568.aspx

type RAWINPUTHEADER

type RAWINPUTHEADER struct {
	DwType  uint32
	DwSize  uint32
	HDevice uintptr
	WParam  uintptr
}

https://msdn.microsoft.com/en-us/library/ms645571.aspx

type RAWKEYBOARD

type RAWKEYBOARD struct {
	MakeCode         uint16
	Flags            uint16
	Reserved         uint16
	VKey             uint16
	Message          uint32
	ExtraInformation uint32
}

https://msdn.microsoft.com/en-us/library/ms645575.aspx

type RAWMOUSEBUTTONINFO

type RAWMOUSEBUTTONINFO struct {
	UsFlags    uint16
	ButtonInfo struct {
		UsButtonFlags uint16
		UsButtonData  uint16
	}
	UlRawButtons       uint32
	LLastX             int32
	LLastY             int32
	UlExtraInformation uint32
}

https://msdn.microsoft.com/en-us/library/ms645578.aspx

type RAWMOUSEBUTTONS

type RAWMOUSEBUTTONS struct {
	UsFlags            uint16
	UlButtons          uint32
	UlRawButtons       uint32
	LLastX             int32
	LLastY             int32
	UlExtraInformation uint32
}

https://msdn.microsoft.com/en-us/library/ms645578.aspx

type RID_DEVICE_INFO_HID

type RID_DEVICE_INFO_HID struct {
	DwVendorId      uint32
	DwProductId     uint32
	DwVersionNumber uint32
	UsUsagePage     uint16
	UsUsage         uint16
}

https://msdn.microsoft.com/en-us/library/ms645584.aspx

type RID_DEVICE_INFO_KEYBOARD

type RID_DEVICE_INFO_KEYBOARD struct {
	DwType                 uint32
	DwSubType              uint32
	DwKeyboardMode         uint32
	DwNumberOfFunctionKeys uint32
	DwNumberOfIndicators   uint32
	DwNumberOfKeysTotal    uint32
}

https://msdn.microsoft.com/en-us/library/ms645587.aspx

type RID_DEVICE_INFO_MOUSE

type RID_DEVICE_INFO_MOUSE struct {
	DwId                uint32
	DwNumberOfButtons   uint32
	DwSampleRate        uint32
	FHasHorizontalWheel int32
}

https://msdn.microsoft.com/en-us/library/ms645589.aspx

type TRACKMOUSEEVENT

type TRACKMOUSEEVENT struct {
	CbSize      uint32
	DwFlags     uint32
	HwndTrack   uintptr
	DwHoverTime uint32
}

https://msdn.microsoft.com/en-us/library/ms645604.aspx

Jump to

Keyboard shortcuts

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