w32

package
v0.76.3 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2024 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

View Source
const (
	FOSOverwritePrompt          = 0x00000002
	FOSStrictFileTypes          = 0x00000004
	FOSNoChangeDir              = 0x00000008
	FOSPickFolders              = 0x00000020
	FOSForceFileSystem          = 0x00000040
	FOSAllNonStorageItems       = 0x00000080
	FOSNoValidate               = 0x00000100
	FOSAllowMultiSelect         = 0x00000200
	FOSPathMustExist            = 0x00000800
	FOSFileMustExist            = 0x00001000
	FOSCreatePrompt             = 0x00002000
	FOSShareAware               = 0x00004000
	FOSNoReadOnlyReturn         = 0x00008000
	FOSNoTestFileCreate         = 0x00010000
	FOSHideMRUPlaces            = 0x00020000
	FOSHidePinnedPlaces         = 0x00040000
	FOSNoDereferenceLinks       = 0x00100000
	FOSOKBUttonNeedsInteraction = 0x00200000
	FOSDontAddToRecent          = 0x02000000
	FOSForceShowHidden          = 0x10000000
	FOSDefaultNoMiniMode        = 0x20000000
	FOSForcePreviewPaneOn       = 0x40000000
	FOSSupportsStreamableItems  = 0x80000000
)
View Source
const ColorHighlight = 13

ColorHighlight https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getsyscolor

View Source
const SIGDN_FILESYSPATH = 0x80058000

Variables

This section is empty.

Functions

func AttachConsole added in v0.3.0

func AttachConsole(processID uint32) bool

AttachConsole https://docs.microsoft.com/en-us/windows/console/attachconsole

func CoInitialize added in v0.48.0

func CoInitialize(coInit int)

func CoTaskMemFree added in v0.48.0

func CoTaskMemFree(ptr uintptr)

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 SysAllocString added in v0.48.0

func SysAllocString(str string) *int16

Types

type BeepType

type BeepType uint

BeepType https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-messagebeep

const (
	MBDefault  BeepType = 0
	MBError    BeepType = 0x10
	MBQuestion BeepType = 0x20
	MBWarning  BeepType = 0x30
	MBInfo     BeepType = 0x40
)

Possible beep types https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-messagebeep

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 FileFilter struct {
	Name    string
	Pattern string
}

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

type GUID struct {
	Data1 uint32
	Data2 uint16
	Data3 uint16
	Data4 [8]byte
}

GUID holds a Windows universal ID.

var NullGUID GUID

func NewGUID added in v0.48.0

func NewGUID(guid string) GUID

NewGUID creates a GUID from a string. The string may be in one of these formats:

{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}
XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

func (GUID) String added in v0.48.0

func (guid GUID) String() string

String returns the string representation of the GUID in its canonical format of {XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}.

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 NewShellItem(path string) *ShellItem

func (*ShellItem) DisplayName added in v0.48.0

func (obj *ShellItem) DisplayName() string

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

type Unknown struct {
	UnsafeVirtualMethodTable unsafe.Pointer
}

Unknown https://docs.microsoft.com/en-us/windows/win32/api/unknwn/nn-unknwn-iunknown

func CoCreateInstance added in v0.48.0

func CoCreateInstance(classID, instanceID GUID) *Unknown

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

Jump to

Keyboard shortcuts

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