Documentation ¶
Index ¶
- func GetAsyncKeyState(keycode int) uintptr
- func GetMessage(msg *MSG, hWnd uintptr, msgFilterMin, msgFilterMax uint32) bool
- func PeekMessage(msg *MSG, hWnd uintptr, msgFilterMin, msgFilterMax uint32) bool
- func PostQuitMessage(exitCode int)
- func RegisterHotKey(hwnd, id uintptr, mod uintptr, k uintptr) (bool, error)
- func SendMessage(hwnd uintptr, msg uint32, wParam, lParam uintptr) uintptr
- func UnregisterHotKey(hwnd, id uintptr) (bool, error)
- type MSG
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAsyncKeyState ¶
func GetMessage ¶
GetMessage retrieves a message from the calling thread's message queue. The function dispatches incoming sent messages until a posted message is available for retrieval.
https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getmessage
func PeekMessage ¶
PeekMessage dispatches incoming sent messages, checks the thread message queue for a posted message, and retrieves the message (if any exist).
https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-peekmessagea
func PostQuitMessage ¶
func PostQuitMessage(exitCode int)
PostQuitMessage indicates to the system that a thread has made a request to terminate (quit). It is typically used in response to a WM_DESTROY message.
https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-postquitmessage
func RegisterHotKey ¶
RegisterHotKey defines a system-wide hot key. https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-registerhotkey
func SendMessage ¶
SendMessage sends the specified message to a window or windows. The SendMessage function calls the window procedure for the specified window and does not return until the window procedure has processed the message. The return value specifies the result of the message processing; it depends on the message sent.
https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-sendmessage
func UnregisterHotKey ¶
UnregisterHotKey frees a hot key previously registered by the calling thread. https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-unregisterhotkey