w32

package
v0.31.2 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2022 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

View Source
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
	OFNShareAware           = 0x00004000
	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

View Source
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

func AttachConsole(processID uint32) bool

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

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

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

Jump to

Keyboard shortcuts

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