w32

package
v0.0.0-...-07baef5 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: LGPL-2.1 Imports: 4 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

View Source
const (
	WM_DESTROY = 2
	WM_QUIT    = 18
)

Window message constants

View Source
const (
	HWND_MESSAGE = ^HWND(2) // -3
)

Predefined window handles

View Source
const (
	WM_USER = 1024
)

Window message constants

Variables

This section is empty.

Functions

func CreateWindowEx

func CreateWindowEx(dwExStyle uint32, lpClassName, lpWindowName *uint16, dwStyle uint32, x, y, nWidth, nHeight int32, hWndParent HWND, hMenu HMENU, hInstance HINSTANCE, lpParam unsafe.Pointer) uintptr

func DefWindowProc

func DefWindowProc(hWnd HWND, Msg uint32, wParam, lParam uintptr) uintptr

func DestroyWindow

func DestroyWindow(hWnd uintptr) bool

func DispatchMessage

func DispatchMessage(msg *MSG) uintptr

func IsUserAnAdmin

func IsUserAnAdmin() (bool, error)

func PeekMessage

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

func PostMessage

func PostMessage(hWnd HWND, msg uint32, wParam, lParam uintptr) uintptr

func PostQuitMessage

func PostQuitMessage(exitCode int32)

func SendMessage

func SendMessage(hWnd HWND, msg uint32, wParam, lParam uintptr) uintptr

func SetForegroundWindow

func SetForegroundWindow(hWnd HWND) bool

Types

type ATOM

type ATOM uint16

func RegisterClassEx

func RegisterClassEx(windowClass *WNDCLASSEX) ATOM

type HANDLE

type HANDLE uintptr

type HBRUSH

type HBRUSH uintptr

type HCURSOR

type HCURSOR uintptr

type HICON

type HICON uintptr

type HINSTANCE

type HINSTANCE uintptr

func GetModuleHandle

func GetModuleHandle(lpModuleName *uint16) HINSTANCE

type HMENU

type HMENU uintptr

type HMODULE

type HMODULE uintptr

type HWND

type HWND uintptr

func GetConsoleWindow

func GetConsoleWindow() HWND

type MSG

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

type POINT

type POINT struct {
	X, Y int32
}

type WNDCLASSEX

type WNDCLASSEX struct {
	CbSize        uint32
	Style         uint32
	LpfnWndProc   uintptr
	CbClsExtra    int32
	CbWndExtra    int32
	HInstance     HINSTANCE
	HIcon         HICON
	HCursor       HCURSOR
	HbrBackground HBRUSH
	LpszMenuName  *uint16
	LpszClassName *uint16
	HIconSm       HICON
}

Jump to

Keyboard shortcuts

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