win

package
v0.0.0-...-9f88b63 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//revive:disable:var-naming,exported
	IDI_APPLICATION       = 32512
	IDC_IBEAM             = 32513
	BLACK_BRUSH           = 4
	WM_COPYDATA           = 74
	WM_DESTROY            = 2
	WM_CLOSE              = 16
	WM_QUERYENDSESSION    = 17
	WM_QUIT               = 18
	WS_EX_TOOLWINDOW      = 0x00000080
	WS_EX_APPWINDOW       = 0x00040000
	ATTACH_PARENT_PROCESS = uintptr(^uint32(0)) // (DWORD)-1
	ERROR_INVALID_HANDLE  = 6
)

Variables

This section is empty.

Functions

func AttachConsole

func AttachConsole() error

func DefWindowProc

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

func DispatchMessage

func DispatchMessage(msg *MSG) uintptr

func FixConsoleIfNeeded

func FixConsoleIfNeeded() error

func GetLastError

func GetLastError() uint32

func MAKEINTRESOURCE

func MAKEINTRESOURCE(id uintptr) *uint16

func PostQuitMessage

func PostQuitMessage(exitCode int32)

func TranslateMessage

func TranslateMessage(msg *MSG) bool

Types

type ATOM

type ATOM uint16

func RegisterClassEx

func RegisterClassEx(windowClass *WNDCLASSEX) ATOM

type BOOL

type BOOL int32

func GetMessage

func GetMessage(msg *MSG, hWnd HWND, msgFilterMin, msgFilterMax uint32) BOOL

type HACCEL

type HACCEL HANDLE

type HANDLE

type HANDLE uintptr

type HBRUSH

type HBRUSH HGDIOBJ

func GetSysColorBrush

func GetSysColorBrush(nIndex int) HBRUSH

type HCURSOR

type HCURSOR HANDLE

func LoadCursor

func LoadCursor(hInstance HINSTANCE, lpCursorName *uint16) HCURSOR

type HDWP

type HDWP HANDLE

type HGDIOBJ

type HGDIOBJ HANDLE

type HGLOBAL

type HGLOBAL HANDLE

func GlobalAlloc

func GlobalAlloc(uFlags uint32, dwBytes uintptr) HGLOBAL

func GlobalFree

func GlobalFree(hMem HGLOBAL) HGLOBAL

type HICON

type HICON HANDLE

func LoadIcon

func LoadIcon(hInstance HINSTANCE, lpIconName *uint16) HICON

type HINSTANCE

type HINSTANCE HANDLE

func GetModuleHandle

func GetModuleHandle(lpModuleName *uint16) HINSTANCE

type HMENU

type HMENU HANDLE

type HMONITOR

type HMONITOR HANDLE

type HRAWINPUT

type HRAWINPUT HANDLE

type HRESULT

type HRESULT int32

type HWND

type HWND HANDLE

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) HWND

func FindWindow

func FindWindow(lpClassName, lpWindowName *uint16) 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