w32

package
v0.0.0-...-6ff2563 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 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 CoInitialize

func CoInitialize(coInit int)

func CoTaskMemFree

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

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

type FileDialog struct {
	ModalWindow
}

func (*FileDialog) GetResult

func (obj *FileDialog) GetResult() string

func (*FileDialog) SetDefaultExtension

func (obj *FileDialog) SetDefaultExtension(ext string)

func (*FileDialog) SetFileName

func (obj *FileDialog) SetFileName(fileName string)

func (*FileDialog) SetFileTypes

func (obj *FileDialog) SetFileTypes(filters []FileFilter)

func (*FileDialog) SetFolder

func (obj *FileDialog) SetFolder(path string)

func (*FileDialog) SetOptions

func (obj *FileDialog) SetOptions(options int)

type FileFilter

type FileFilter struct {
	Name    string
	Pattern string
}

type FileOpenDialog

type FileOpenDialog struct {
	FileDialog
}

func NewOpenDialog

func NewOpenDialog() *FileOpenDialog

func (*FileOpenDialog) GetResults

func (obj *FileOpenDialog) GetResults() []string

type FileSaveDialog

type FileSaveDialog struct {
	FileDialog
}

func NewSaveDialog

func NewSaveDialog() *FileSaveDialog

type GUID

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

GUID holds a Windows universal ID.

var NullGUID GUID

func NewGUID

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

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

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

type ShellItem struct {
	Unknown
}

func NewShellItem

func NewShellItem(path string) *ShellItem

func (*ShellItem) DisplayName

func (obj *ShellItem) DisplayName() string

type ShellItemArray

type ShellItemArray struct {
	Unknown
}

func (*ShellItemArray) Count

func (obj *ShellItemArray) Count() int

func (*ShellItemArray) Item

func (obj *ShellItemArray) Item(index int) string

Jump to

Keyboard shortcuts

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