win

package
v0.0.0-...-fab615c Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAsyncKeyState

func GetAsyncKeyState(keycode int) uintptr

func GetMessage

func GetMessage(msg *MSG, hWnd uintptr, msgFilterMin, msgFilterMax uint32) bool

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

func PeekMessage(msg *MSG, hWnd uintptr, msgFilterMin, msgFilterMax uint32) bool

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

func RegisterHotKey(hwnd, id uintptr, mod uintptr, k uintptr) (bool, error)

RegisterHotKey defines a system-wide hot key. https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-registerhotkey

func SendMessage

func SendMessage(hwnd uintptr, msg uint32, wParam, lParam uintptr) uintptr

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

func UnregisterHotKey(hwnd, id uintptr) (bool, error)

UnregisterHotKey frees a hot key previously registered by the calling thread. https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-unregisterhotkey

Types

type MSG

type MSG struct {
	HWnd    uintptr
	Message uint32
	WParam  uintptr
	LParam  uintptr
	Time    uint32
	Pt      struct {
		// contains filtered or unexported fields
	}
}

MSG contains message information from a thread's message queue.

https://docs.microsoft.com/en-us/windows/win32/api/winuser/ns-winuser-msg

Jump to

Keyboard shortcuts

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