Documentation
¶
Rendered for windows/amd64
Index ¶
- Constants
- func AdjustWindowRect(rect *RECT, style DWORD, bMenu BOOL) bool
- func AppendSubmenu(submenu HMENU, mii *MENUITEMINFO)
- func DeleteObject(obj HANDLE) bool
- func DestroyMenu(menu HMENU) bool
- func DestroyWindow(hwnd HWND) bool
- func DispatchMessage(msg *MSG)
- func DwmEnableBlurBehindWindow(hwnd HWND, pBlurBehind *DWM_BLURBEHIND) bool
- func DwmGetWindowAttribute(hwnd HWND, dwAttribute DWORD, pvAttribute unsafe.Pointer, cbAttribute DWORD) bool
- func EndPaint(hwnd HWND, lpPaintstruct *PAINTSTRUCT) bool
- func EnumDisplayMonitors(hdc HDC, clip *RECT, enumProc MONITORENUMPROC, data LPARAM) bool
- func EnumDisplaySettings(deviceName *uint16, iModeNum DWORD, lpDevMode *DEVMODE) bool
- func ExitProcess(exitCode UINT)
- func FillRgn(hdc HDC, hrgn HRGN, hbr HBRUSH) bool
- func GetClientRect(hwnd HWND, lpRect *RECT) bool
- func GetCursorPos(pos *POINT) bool
- func GetDeviceCaps(hdc HDC, index int) int
- func GetDpiForMonitor(monitor HMONITOR, dpiType uint32, dpiX *UINT, dpiY *UINT) bool
- func GetMenuItemCount(menu HMENU) int32
- func GetMessage(msg *MSG, hwnd HWND, msgFilterMin uint32, msgFilterMax uint32) bool
- func GetMonitorInfoW(monitor HMONITOR, info *MONITORINFOEX) bool
- func GetSystemPowerStatus(powerStatus *SYSTEM_POWER_STATUS) bool
- func GetWindowLongPtrW(hwnd HWND, index int) uintptr
- func GetWindowPlacement(hwnd HWND, lpwndpl *WINDOWPLACEMENT) bool
- func GetWindowRect(hwnd HWND, lpRect *RECT) bool
- func HIWORD(dw uint32) uint16
- func InsertMenuItemW(menu HMENU, item UINT, byPosition int32, itemInfo *MENUITEMINFO) bool
- func InvalidateRect(hwnd HWND, rect *RECT, erase BOOL) bool
- func IsIconic(hwnd HWND) bool
- func IsWindowCloaked(hwnd HWND) bool
- func IsWindowVisible(hwnd HWND) bool
- func LOWORD(dw uint32) uint16
- func LookupIconIdFromDirectoryEx(bytes *BYTE, icon BOOL, cxDesired int32, cyDesired int32, flags UINT) int32
- func MakeIntResource(id uint16) *uint16
- func MessageBox(hwnd HWND, text string, caption string, flags UINT) int32
- func NewTrayMenu(menu HMENU, icon []byte, callback func(id int32)) bool
- func OS_GetClipboardText() string
- func OS_Init()
- func OS_SetClipboardText(text string) bool
- func PeekMessageW(msg *MSG, hwnd HWND, msgFilterMin uint32, msgFilterMax uint32, ...) bool
- func PollEvents()
- func PostQuitMessage(exitCode int32)
- func RegisterClassExW(wcx *WNDCLASSEXW) (uint16, error)
- func RegisterWindowClass(className string, instance HINSTANCE, callback WNDPROC, style UINT, icon HICON) bool
- func ReleaseDC(hwnd HWND, hdc HDC) int32
- func RemoveAllTrayMenus()
- func SetForegroundWindow(hwnd HWND) bool
- func SetLayeredWindowAttributes(hwnd HWND, crKey DWORD, bAlpha byte, dwFlags DWORD) bool
- func SetMenu(hwnd HWND, hmenu HMENU) bool
- func SetProcessDPIAware() bool
- func SetProcessDpiAwareness(awareness int32) bool
- func SetProcessDpiAwarenessContext(context HANDLE) bool
- func SetWindowLongPtrW(hwnd HWND, index int, dwNewLong unsafe.Pointer) uintptr
- func SetWindowPlacement(hwnd HWND, lpwndpl *WINDOWPLACEMENT) bool
- func SetWindowPos(hwnd HWND, hwndInsertAfter HWND, x int, y int, cx int, cy int, flags UINT) bool
- func SetWindowTextW(hwnd HWND, title string) bool
- func Shell_NotifyIconW(dwMessage DWORD, nid *NOTIFYICONDATA) bool
- func ShowWindow(hwnd HWND, nCmdShow int) bool
- func TrackPopupMenu(menu HMENU, flags UINT, x int32, y int32, nReserved int32, hwnd HWND, ...) int32
- func TranslateMessage(msg *MSG)
- func UpdateWindow(hwnd HWND) bool
- func Utf16PtrToString(p uintptr) string
- func ValidateRect(hwnd HWND, lpRect *RECT) bool
- type ATOM
- type BOOL
- type BYTE
- type CHAR
- type COLORREF
- type DEVMODE
- type DWM_BLURBEHIND
- type DWORD
- type GUID
- type HANDLE
- type HBITMAP
- type HBRUSH
- type HCURSOR
- type HDC
- type HICON
- type HINSTANCE
- type HMENU
- type HMODULE
- type HMONITOR
- type HRGN
- type HWND
- type LARGE_INTEGER
- type LONG
- type LONG_PTR
- type LPARAM
- type LPCWSTR
- type LPWSTR
- type LRESULT
- type MENUITEMINFO
- type MENUITEMINFOW
- type MINMAXINFO
- type MONITORENUMPROC
- type MONITORINFO
- type MONITORINFOEX
- type MONITORINFOEXW
- type MSG
- type NOTIFYICONDATA
- type NOTIFYICONDATAW
- type PAINTSTRUCT
- type POINT
- type RECT
- type SIZE
- type SYSTEM_POWER_STATUS
- type UINT
- type UINT_PTR
- type ULONG_PTR
- type WCHAR
- type WINDOWPLACEMENT
- type WNDCLASSEXW
- type WNDPROC
- type WORD
- type WPARAM
- type Win32_Tray
Constants ¶
View Source
const ( NULL = 0 TRUE = 1 FALSE = 0 )
View Source
const ( SW_HIDE = 0 SW_NORMAL = 1 SW_SHOWMINIMIZED = 2 SW_SHOWMAXIMIZED = 3 SW_MAXIMIZE = 3 SW_SHOW = 5 SW_MINIMIZE = 6 SW_SHOWMINNOACTIVE = 7 SW_RESTORE = 9 )
View Source
const ( CS_VREDRAW = 0x00000001 CS_HREDRAW = 0x00000002 CS_KEYCVTWINDOW = 0x00000004 CS_DBLCLKS = 0x00000008 CS_OWNDC = 0x00000020 CS_CLASSDC = 0x00000040 CS_PARENTDC = 0x00000080 CS_NOKEYCVT = 0x00000100 CS_NOCLOSE = 0x00000200 CS_SAVEBITS = 0x00000800 CS_BYTEALIGNCLIENT = 0x00001000 CS_BYTEALIGNWINDOW = 0x00002000 CS_GLOBALCLASS = 0x00004000 CS_IME = 0x00010000 CS_DROPSHADOW = 0x00020000 )
View Source
const ( HWND_TOP = (HWND)(0) HWND_BOTTOM = (HWND)(1) HWND_TOPMOST = (HWND)(UINT_MAX - 1 + 1) HWND_NOTOPMOST = (HWND)(UINT_MAX - 2 + 1) )
View Source
const ( MONITOR_DEFAULTTOPRIMARY = 0x00000001 MONITOR_DEFAULTTONEAREST = 0x00000002 )
View Source
const ( SWP_NOSIZE = 0x0001 SWP_NOMOVE = 0x0002 SWP_NOZORDER = 0x0004 SWP_NOACTIVATE = 0x0010 SWP_FRAMECHANGED = 0x0020 SWP_NOOWNERZORDER = 0x0200 )
View Source
const ( WS_VISIBLE = 0x10000000 WS_CAPTION = 0x00C00000 WS_MAXIMIZEBOX = 0x00010000 WS_MINIMIZEBOX = 0x00020000 WS_OVERLAPPED = 0x00000000 WS_SYSMENU = 0x00080000 WS_THICKFRAME = 0x00040000 WS_POPUP = 0x80000000 WS_OVERLAPPEDWINDOW = (WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME | WS_MINIMIZEBOX | WS_MAXIMIZEBOX) WS_EX_LAYERED = 0x00080000 )
View Source
const ( WM_CREATE = 0x0001 WM_DESTROY = 0x0002 WM_MOVE = 0x0003 WM_SIZE = 0x0005 WM_ACTIVATE = 0x0006 WM_SETFOCUS = 0x0007 WM_KILLFOCUS = 0x0008 WM_PAINT = 0x000f WM_CLOSE = 0x0010 WM_QUIT = 0x0012 WM_GETMINMAXINFO = 0x0024 WM_WINDOWPOSCHANGED = 0x0047 WM_CHAR = 0x0102 WM_SYSCHAR = 0x0106 WM_UNICHAR = 0x0109 WM_COMMAND = 0x0111 WM_SYSCOMMAND = 0x0112 WM_LBUTTONDOWN = 0x0201 WM_RBUTTONDOWN = 0x0204 WM_MOVING = 0x0216 WM_DPICHANGED = 0x02E0 WM_USER = 0x0400 )
View Source
const ( SC_KEYMENU = 0xF100 SC_SCREENSAVE = 0xF140 SC_MONITORPOWER = 0xF170 )
View Source
const ( NIF_MESSAGE = 0x00000001 NIF_ICON = 0x00000002 NIF_TIP = 0x00000004 NIF_STATE = 0x00000008 NIF_INFO = 0x00000010 )
View Source
const ( NIM_ADD = 0x00000000 NIM_MODIFY = 0x00000001 NIM_DELETE = 0x00000002 )
View Source
const ( MIIM_BITMAP = 0x00000080 MIIM_CHECKMARKS = 0x00000008 MIIM_DATA = 0x00000020 MIIM_FTYPE = 0x00000100 MIIM_ID = 0x00000002 MIIM_STATE = 0x00000001 MIIM_STRING = 0x00000040 MIIM_SUBMENU = 0x00000004 MIIM_TYPE = 0x00000010 MFT_STRING = 0x00000000 MFT_RADIOCHECK = 0x00000200 MFT_SEPARATOR = 0x00000800 MFS_CHECKED = 0x00000008 MFS_DISABLED = 0x00000003 MFS_ENABLED = 0x00000000 MFS_UNCHECKED = 0x00000000 TPM_CENTERALIGN = 0x0004 TPM_LEFTALIGN = 0x0000 TPM_RIGHTALIGN = 0x0008 TPM_BOTTOMALIGN = 0x0020 TPM_TOPALIGN = 0x0000 TPM_VCENTERALIGN = 0x0010 TPM_NONOTIFY = 0x0080 TPM_RETURNCMD = 0x0100 TPM_LEFTBUTTON = 0x0000 TPM_RIGHTBUTTON = 0x0002 )
View Source
const ( GWL_STYLE = -16 GWL_EXSTYLE = -20 GWL_USERDATA = -21 GWLP_USERDATA = -21 )
View Source
const ( CF_TEXT = 1 CF_UNICODETEXT = 13 )
View Source
const ( MB_OK = 0x00000000 MB_OKCANCEL = 0x00000001 MB_YESNO = 0x00000004 MB_ICONWARNING = 0x00000030 MB_ICONINFORMATION = 0x00000040 MB_ICONERROR = 0x00000010 IDOK = 1 )
View Source
const ( LOGPIXELSX = 88 LOGPIXELSY = 90 )
View Source
const ( LWA_COLORKEY = 0x00000001 LWA_ALPHA = 0x00000002 )
View Source
const ( DWM_BB_ENABLE = 0x00000001 DWM_BB_BLURREGION = 0x00000002 )
View Source
const CCHDEVICENAME = 32
View Source
const CCHFORMNAME = 32
View Source
const (
COLOR_WINDOW = 5
)
View Source
const (
CW_USEDEFAULT = ^0x7fffffff
)
View Source
const DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2 = (HANDLE)(UINT_MAX - 4 + 1)
https://docs.microsoft.com/en-us/windows/win32/hidpi/dpi-awareness-context
View Source
const (
DWMWA_CLOAKED = 14
)
View Source
const ENUM_CURRENT_SETTINGS = 0xFFFFFFFF
View Source
const (
GMEM_MOVEABLE = 0x0002
)
View Source
const (
IDC_ARROW = 32512
)
View Source
const INT_MAX = ^int(0)
View Source
const LONG_MAX = 2147483647
View Source
const (
PM_REMOVE = 0x0001
)
View Source
const PROCESS_PER_MONITOR_DPI_AWARE = 2
View Source
const UINT_MAX = ^uint(0)
View Source
const USER_DEFAULT_SCREEN_DPI = 96
View Source
const Win32TrayIconMessage = (WM_USER + 1)
Variables ¶
This section is empty.
Functions ¶
func AppendSubmenu ¶
func AppendSubmenu(submenu HMENU, mii *MENUITEMINFO)
func DeleteObject ¶
func DestroyMenu ¶
func DestroyWindow ¶
func DispatchMessage ¶
func DispatchMessage(msg *MSG)
func DwmEnableBlurBehindWindow ¶
func DwmEnableBlurBehindWindow(hwnd HWND, pBlurBehind *DWM_BLURBEHIND) bool
func DwmGetWindowAttribute ¶
func EndPaint ¶
func EndPaint(hwnd HWND, lpPaintstruct *PAINTSTRUCT) bool
func EnumDisplayMonitors ¶
func EnumDisplayMonitors(hdc HDC, clip *RECT, enumProc MONITORENUMPROC, data LPARAM) bool
func EnumDisplaySettings ¶
func ExitProcess ¶
func ExitProcess(exitCode UINT)
func GetClientRect ¶
func GetCursorPos ¶
func GetDeviceCaps ¶
func GetDpiForMonitor ¶
func GetMenuItemCount ¶
func GetMessage ¶
func GetMonitorInfoW ¶
func GetMonitorInfoW(monitor HMONITOR, info *MONITORINFOEX) bool
func GetSystemPowerStatus ¶
func GetSystemPowerStatus(powerStatus *SYSTEM_POWER_STATUS) bool
func GetWindowLongPtrW ¶
func GetWindowPlacement ¶
func GetWindowPlacement(hwnd HWND, lpwndpl *WINDOWPLACEMENT) bool
func GetWindowRect ¶
func InsertMenuItemW ¶
func InsertMenuItemW(menu HMENU, item UINT, byPosition int32, itemInfo *MENUITEMINFO) bool
func IsWindowCloaked ¶
func IsWindowVisible ¶
func MakeIntResource ¶
func OS_GetClipboardText ¶
func OS_GetClipboardText() string
func OS_SetClipboardText ¶
func PeekMessageW ¶
func PollEvents ¶
func PollEvents()
func PostQuitMessage ¶
func PostQuitMessage(exitCode int32)
func RegisterClassExW ¶
func RegisterClassExW(wcx *WNDCLASSEXW) (uint16, error)
func RegisterWindowClass ¶
func RemoveAllTrayMenus ¶
func RemoveAllTrayMenus()
func SetForegroundWindow ¶
func SetProcessDPIAware ¶
func SetProcessDPIAware() bool
func SetProcessDpiAwareness ¶
func SetWindowLongPtrW ¶
func SetWindowPlacement ¶
func SetWindowPlacement(hwnd HWND, lpwndpl *WINDOWPLACEMENT) bool
func SetWindowPos ¶
func SetWindowTextW ¶
func Shell_NotifyIconW ¶
func Shell_NotifyIconW(dwMessage DWORD, nid *NOTIFYICONDATA) bool
func ShowWindow ¶
func TrackPopupMenu ¶
func TranslateMessage ¶
func TranslateMessage(msg *MSG)
func UpdateWindow ¶
func Utf16PtrToString ¶
func ValidateRect ¶
Types ¶
type DEVMODE ¶
type DEVMODE struct { DmDeviceName [CCHDEVICENAME]uint16 DmSpecVersion WORD DmDriverVersion WORD DmSize WORD DmDriverExtra WORD DmFields DWORD // union! DmPosition POINT // 64 bytes DmColor int16 DmDuplex int16 DmYResolution int16 DmTTOption int16 DmCollate int16 DmFormName [CCHFORMNAME]WCHAR DmLogPixels WORD DmBitsPerPel DWORD DmPelsWidth DWORD DmPelsHeight DWORD DmDisplayFlags DWORD DmDisplayFrequency DWORD DmICMMethod DWORD DmICMIntent DWORD DmMediaType DWORD DmDitherType DWORD DmReserved1 DWORD DmReserved2 DWORD DmPanningWidth DWORD DmPanningHeight DWORD // contains filtered or unexported fields }
http://msdn.microsoft.com/en-us/library/windows/desktop/dd183565.aspx
type DWM_BLURBEHIND ¶
type HDC ¶
type HDC HANDLE
func BeginPaint ¶
func BeginPaint(hwnd HWND, lpPaintstruct *PAINTSTRUCT) HDC
type HMENU ¶
type HMENU HANDLE
func CreateMenu ¶
func CreateMenu() HMENU
func CreatePopupMenu ¶
func CreatePopupMenu() HMENU
type HWND ¶
type HWND HANDLE
func CreateWindowExW ¶
func GetActiveWindow ¶
func GetActiveWindow() HWND
func GetForegroundWindow ¶
func GetForegroundWindow() HWND
type LARGE_INTEGER ¶
type MENUITEMINFO ¶
type MENUITEMINFO MENUITEMINFOW
func MakeMenuItem ¶
func MakeMenuItemSeparator ¶
func MakeMenuItemSeparator() MENUITEMINFO
type MENUITEMINFOW ¶
type MINMAXINFO ¶
type MONITORENUMPROC ¶
type MONITORINFO ¶
type MONITORINFOEX ¶
type MONITORINFOEX MONITORINFOEXW
func (*MONITORINFOEX) GetDeviceName ¶
func (info *MONITORINFOEX) GetDeviceName() string
type MONITORINFOEXW ¶
type MONITORINFOEXW struct { MONITORINFO DeviceName [CCHDEVICENAME]uint16 }
type MSG ¶
type MSG struct { Hwnd HWND Message UINT WParam WPARAM LParam LPARAM Time DWORD Pt POINT LPrivate DWORD }
https://docs.microsoft.com/en-us/windows/win32/api/winuser/ns-winuser-msg
type NOTIFYICONDATA ¶
type NOTIFYICONDATA NOTIFYICONDATAW
type NOTIFYICONDATAW ¶
type NOTIFYICONDATAW struct { CbSize DWORD HWnd HWND UID UINT UFlags UINT UCallbackMessage UINT HIcon HICON SzTip [128]WCHAR // @Incomplete: according to the docs, sometimes this is 64 instead? DwState DWORD DwStateMask DWORD SzInfo [256]WCHAR UTimeout UINT UVersion UINT SzInfoTitle [64]WCHAR DwInfoFlags DWORD GuidItem GUID HBalloonIcon HICON }
https://docs.microsoft.com/en-us/windows/win32/api/shellapi/ns-shellapi-notifyicondataa
type PAINTSTRUCT ¶
type SYSTEM_POWER_STATUS ¶
type WINDOWPLACEMENT ¶
type WNDCLASSEXW ¶
type WNDCLASSEXW struct { CbSize UINT Style UINT LpfnWndProc uintptr // OR WNDPROC? CbClsExtra int32 CbWndExtra int32 HInstance HINSTANCE HIcon HICON HCursor HCURSOR HbrBackground HBRUSH LpszMenuName LPCWSTR LpszClassName LPCWSTR LIconSm HICON }
https://docs.microsoft.com/en-us/windows/win32/api/winuser/ns-winuser-wndclassexw
type Win32_Tray ¶
type Win32_Tray struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.