Documentation ¶
Index ¶
- Constants
- func AttachConsole(processID uint32) bool
- func CloseClipboard() bool
- func EmptyClipboard() bool
- func GetClipboardData(format ClipboardFormat) syscall.Handle
- func GetClipboardSequenceNumber() int
- func GetDoubleClickTime() time.Duration
- func GetOpenFileName(ofn *OpenFileName) bool
- func GetSaveFileName(ofn *OpenFileName) bool
- func GetSysColor(index int) uint32
- func GlobalAlloc(flags uint, size int) syscall.Handle
- func GlobalFree(handle syscall.Handle)
- func GlobalLock(handle syscall.Handle) uintptr
- func GlobalUnlock(handle syscall.Handle) bool
- func MessageBeep(beepType BeepType) bool
- func OpenClipboard(newOwner HWND) bool
- func RegNotifyChangeKeyValue(key registry.Key, watchSubTree bool, notifyFilter RegNotifyMask, ...) int
- func SetClipboardData(format ClipboardFormat, handle syscall.Handle) syscall.Handle
- type BeepType
- type ClipboardFormat
- type HKEY
- type HWND
- type LPVOID
- type OpenFileName
- type RegNotifyMask
Constants ¶
const ( OFNReadOnly = 0x00000001 OFNOverwritePrompt = 0x00000002 OFNHideReadOnly = 0x00000004 OFNNoChangeDir = 0x00000008 OFNShowHelp = 0x00000010 OFNEnableHook = 0x00000020 OFNEnableTemplate = 0x00000040 OFNEnableTemplateHandle = 0x00000080 OFNNoValidate = 0x00000100 OFNAllowMultiSelect = 0x00000200 OFNExtensionDifferent = 0x00000400 OFNPathMustExist = 0x00000800 OFNFileMustExist = 0x00001000 OFNCreatePrompt = 0x00002000 OFNNoReadOnlyReturn = 0x00008000 OFNNoTestFileCreate = 0x00010000 OFNNoNetworkButton = 0x00020000 OFNNoLongNames = 0x00040000 OFNExplorer = 0x00080000 OFNNoDereferenceLinks = 0x00100000 OFNLongNames = 0x00200000 OFNEnableIncludeNotify = 0x00400000 OFNEnableSizing = 0x00800000 OFNDontAddToRecent = 0x02000000 OFNForceShowHidden = 0x10000000 )
Constants from https://docs.microsoft.com/en-us/windows/win32/api/commdlg/ns-commdlg-openfilenamea
const ( // AttachParentProcessID https://docs.microsoft.com/en-us/windows/console/attachconsole AttachParentProcessID = ^uint32(0) // GMemMoveable https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-globalalloc GMemMoveable = 0x0002 )
const ColorHighlight = 13
ColorHighlight https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getsyscolor
Variables ¶
This section is empty.
Functions ¶
func AttachConsole ¶ added in v0.3.0
AttachConsole https://docs.microsoft.com/en-us/windows/console/attachconsole
func CloseClipboard ¶
func CloseClipboard() bool
CloseClipboard https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-closeclipboard
func EmptyClipboard ¶
func EmptyClipboard() bool
EmptyClipboard https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-emptyclipboard
func GetClipboardData ¶
func GetClipboardData(format ClipboardFormat) syscall.Handle
GetClipboardData https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getclipboarddata
func GetClipboardSequenceNumber ¶
func GetClipboardSequenceNumber() int
GetClipboardSequenceNumber https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getclipboardsequencenumber
func GetDoubleClickTime ¶
GetDoubleClickTime https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getdoubleclicktime
func GetOpenFileName ¶
func GetOpenFileName(ofn *OpenFileName) bool
GetOpenFileName https://docs.microsoft.com/en-us/windows/win32/api/commdlg/nf-commdlg-getopenfilenamew
func GetSaveFileName ¶
func GetSaveFileName(ofn *OpenFileName) bool
GetSaveFileName https://docs.microsoft.com/en-us/windows/win32/api/commdlg/nf-commdlg-getsavefilenamew
func GetSysColor ¶
GetSysColor https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getsyscolor
func GlobalAlloc ¶
GlobalAlloc https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-globalalloc
func GlobalFree ¶
GlobalFree https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-globalfree
func GlobalLock ¶
GlobalLock https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-globallock
func GlobalUnlock ¶
GlobalUnlock https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-globalunlock
func MessageBeep ¶
MessageBeep https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-messagebeep
func OpenClipboard ¶
OpenClipboard https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-openclipboard
func RegNotifyChangeKeyValue ¶
func RegNotifyChangeKeyValue(key registry.Key, watchSubTree bool, notifyFilter RegNotifyMask, event syscall.Handle, async bool) int
RegNotifyChangeKeyValue https://docs.microsoft.com/en-us/windows/win32/api/winreg/nf-winreg-regnotifychangekeyvalue
func SetClipboardData ¶
func SetClipboardData(format ClipboardFormat, handle syscall.Handle) syscall.Handle
SetClipboardData https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setclipboarddata
Types ¶
type BeepType ¶
type BeepType uint
BeepType https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-messagebeep
type ClipboardFormat ¶
type ClipboardFormat uint
Simple types https://docs.microsoft.com/en-us/windows/desktop/WinProg/windows-data-types
const ( CFNone ClipboardFormat = 0 CFText ClipboardFormat = 1 CFOEMText ClipboardFormat = 7 CFUnicodeText ClipboardFormat = 13 CFHDrop ClipboardFormat = 15 CFPrivateFirst ClipboardFormat = 0x0200 )
Clipboard format types https://docs.microsoft.com/en-us/windows/desktop/dataxchg/standard-clipboard-formats
func EnumClipboardFormats ¶
func EnumClipboardFormats(format ClipboardFormat) ClipboardFormat
EnumClipboardFormats https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-enumclipboardformats
type HKEY ¶
type HKEY uintptr
Simple types https://docs.microsoft.com/en-us/windows/desktop/WinProg/windows-data-types
type HWND ¶
type HWND uintptr
Simple types https://docs.microsoft.com/en-us/windows/desktop/WinProg/windows-data-types
func GetActiveWindow ¶
func GetActiveWindow() HWND
GetActiveWindow https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getactivewindow
type LPVOID ¶
type LPVOID uintptr
Simple types https://docs.microsoft.com/en-us/windows/desktop/WinProg/windows-data-types
type OpenFileName ¶
type OpenFileName struct { Size uint32 Owner HWND Instance syscall.Handle Filter uintptr CustomFilter uintptr MaxCustomFilter uint32 FilterIndex uint32 FileName uintptr MaxFileName uint32 FileTitle uintptr MaxFileTitle uint32 InitialDir uintptr Title uintptr Flags uint32 FileOffset uint16 FileExtension uint16 DefExt uintptr CustData uintptr Hook uintptr TemplateName uintptr Reserved1 uintptr Reserved2 uint32 FlagsEx uint32 }
OpenFileName https://docs.microsoft.com/en-us/windows/win32/api/commdlg/ns-commdlg-openfilenamew
type RegNotifyMask ¶
type RegNotifyMask int
const ( RegNotifyChangeName RegNotifyMask = 1 << iota RegNotifyChangeAttributes RegNotifyChangeLastSet RegNotifyChangeSecurity RegNotifyThreadAgnostic RegNotifyMask = 1 << 28 )
Mask values for RegNotifyMask