Documentation ¶
Index ¶
- Constants
- func AttachConsole(processID uint32) bool
- func CloseClipboard() bool
- func CoInitialize(coInit int)
- func CoTaskMemFree(ptr uintptr)
- func EmptyClipboard() bool
- func GetClipboardData(format ClipboardFormat) syscall.Handle
- func GetClipboardSequenceNumber() int
- func GetDoubleClickTime() time.Duration
- 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
- func SysAllocString(str string) *int16
- type BeepType
- type ClipboardFormat
- type FileDialog
- type FileFilter
- type FileOpenDialog
- type FileSaveDialog
- type GUID
- type HKEY
- type HWND
- type LPVOID
- type ModalWindow
- type RegNotifyMask
- type ShellItem
- type ShellItemArray
- type Unknown
Constants ¶
const ( FOSOverwritePrompt = 0x00000002 FOSStrictFileTypes = 0x00000004 FOSNoChangeDir = 0x00000008 FOSPickFolders = 0x00000020 FOSForceFileSystem = 0x00000040 FOSAllNonStorageItems = 0x00000080 FOSNoValidate = 0x00000100 FOSAllowMultiSelect = 0x00000200 FOSPathMustExist = 0x00000800 FOSFileMustExist = 0x00001000 FOSCreatePrompt = 0x00002000 FOSNoReadOnlyReturn = 0x00008000 FOSNoTestFileCreate = 0x00010000 FOSHideMRUPlaces = 0x00020000 FOSHidePinnedPlaces = 0x00040000 FOSNoDereferenceLinks = 0x00100000 FOSOKBUttonNeedsInteraction = 0x00200000 FOSDontAddToRecent = 0x02000000 FOSForceShowHidden = 0x10000000 FOSDefaultNoMiniMode = 0x20000000 FOSForcePreviewPaneOn = 0x40000000 FOSSupportsStreamableItems = 0x80000000 )
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
const SIGDN_FILESYSPATH = 0x80058000
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 CoInitialize ¶ added in v0.48.0
func CoInitialize(coInit int)
func CoTaskMemFree ¶ added in v0.48.0
func CoTaskMemFree(ptr uintptr)
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 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
func SysAllocString ¶ added in v0.48.0
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 FileDialog ¶ added in v0.48.0
type FileDialog struct {
ModalWindow
}
func (*FileDialog) GetResult ¶ added in v0.48.0
func (obj *FileDialog) GetResult() string
func (*FileDialog) SetDefaultExtension ¶ added in v0.48.0
func (obj *FileDialog) SetDefaultExtension(ext string)
func (*FileDialog) SetFileName ¶ added in v0.48.0
func (obj *FileDialog) SetFileName(fileName string)
func (*FileDialog) SetFileTypes ¶ added in v0.48.0
func (obj *FileDialog) SetFileTypes(filters []FileFilter)
func (*FileDialog) SetFolder ¶ added in v0.48.0
func (obj *FileDialog) SetFolder(path string)
func (*FileDialog) SetOptions ¶ added in v0.48.0
func (obj *FileDialog) SetOptions(options int)
type FileFilter ¶ added in v0.48.0
type FileOpenDialog ¶ added in v0.48.0
type FileOpenDialog struct {
FileDialog
}
func NewOpenDialog ¶ added in v0.48.0
func NewOpenDialog() *FileOpenDialog
func (*FileOpenDialog) GetResults ¶ added in v0.48.0
func (obj *FileOpenDialog) GetResults() []string
type FileSaveDialog ¶ added in v0.48.0
type FileSaveDialog struct {
FileDialog
}
func NewSaveDialog ¶ added in v0.48.0
func NewSaveDialog() *FileSaveDialog
type GUID ¶ added in v0.48.0
GUID holds a Windows universal ID.
var NullGUID GUID
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 ModalWindow ¶ added in v0.48.0
type ModalWindow struct {
Unknown
}
func (*ModalWindow) Show ¶ added in v0.48.0
func (obj *ModalWindow) Show() bool
type RegNotifyMask ¶
type RegNotifyMask int
const ( RegNotifyChangeName RegNotifyMask = 1 << iota RegNotifyChangeAttributes RegNotifyChangeLastSet RegNotifyChangeSecurity RegNotifyThreadAgnostic RegNotifyMask = 1 << 28 )
Mask values for RegNotifyMask
type ShellItem ¶ added in v0.48.0
type ShellItem struct {
Unknown
}
func NewShellItem ¶ added in v0.48.0
func (*ShellItem) DisplayName ¶ added in v0.48.0
type ShellItemArray ¶ added in v0.48.0
type ShellItemArray struct {
Unknown
}
func (*ShellItemArray) Count ¶ added in v0.48.0
func (obj *ShellItemArray) Count() int
func (*ShellItemArray) Item ¶ added in v0.48.0
func (obj *ShellItemArray) Item(index int) string
type Unknown ¶ added in v0.48.0
Unknown https://docs.microsoft.com/en-us/windows/win32/api/unknwn/nn-unknwn-iunknown
func CoCreateInstance ¶ added in v0.48.0
func (*Unknown) AddRef ¶ added in v0.48.0
func (obj *Unknown) AddRef()
AddRef https://docs.microsoft.com/en-us/windows/win32/api/unknwn/nf-unknwn-iunknown-addref
func (*Unknown) QueryInterface ¶ added in v0.48.0
QueryInterface https://docs.microsoft.com/en-us/windows/win32/api/unknwn/nf-unknwn-iunknown-queryinterface(refiid_void)
func (*Unknown) Release ¶ added in v0.48.0
func (obj *Unknown) Release()
Release https://docs.microsoft.com/en-us/windows/win32/api/unknwn/nf-unknwn-iunknown-release