Documentation
¶
Index ¶
- Variables
- func DeletePermEnv(env registry.Key, name string) error
- func GetConsoleTitle() (string, error)
- func GetPermEnv(env registry.Key, name string) (string, error)
- func Is64Arch() bool
- func Locale() string
- func MsgBox(title string, msg string, flag uint) (int, error)
- func RefreshEnv() error
- func SetConsoleTitle(title string) error
- func SetPermEnv(env registry.Key, name string, value string) error
- type Version
Constants ¶
This section is empty.
Variables ¶
var ( MsgBoxBtnOk uint = 0x000000 MsgBoxBtnOkCancel uint = 0x000001 MsgBoxBtnAbortRetryIgnore uint = 0x000002 MsgBoxBtnYesNoCancel uint = 0x000003 MsgBoxBtnYesNo uint = 0x000004 MsgBoxBtnRetryCancel uint = 0x000005 MsgBoxBtnCancelTryContinue uint = 0x000006 MsgBoxIconNone uint = 0x000000 MsgBoxIconError uint = 0x000010 MsgBoxIconQuestion uint = 0x000020 MsgBoxIconWarning uint = 0x000030 MsgBoxIconInformation uint = 0x000040 MsgBoxDefaultButton1 uint = 0x000000 MsgBoxDefaultButton2 uint = 0x000100 MsgBoxDefaultButton3 uint = 0x000200 MsgBoxDefaultButton4 uint = 0x000300 MsgBoxTopMost uint = 0x041000 MsgBoxService uint = 0x200000 MsgBoxSelectOk = 1 MsgBoxSelectCancel = 2 MsgBoxSelectAbort = 3 MsgBoxSelectRetry = 4 MsgBoxSelectIgnore = 5 MsgBoxSelectYes = 6 MsgBoxSelectNo = 7 MsgBoxSelectTry = 10 MsgBoxSelectContinue = 11 )
MsgBox items types
Functions ¶
func DeletePermEnv ¶
DeletePermEnv deletes an environment variable permanently on Windows
func GetConsoleTitle ¶
GetConsoleTitle sets windows console title
func GetPermEnv ¶
GetPermEnv gets an environment variable value on Windows
func Locale ¶
func Locale() string
Locale returns the locale set for the user and falls back to the locale set for the system if unset. Returns "en-US" if all of them are unset.
func RefreshEnv ¶
func RefreshEnv() error
RefreshEnv refresh Windows environment https://docs.microsoft.com/en-us/windows/desktop/api/winuser/nf-winuser-sendmessagetimeoutw
func SetConsoleTitle ¶
SetConsoleTitle sets windows console title
Types ¶
type Version ¶
Version identifies a Windows version by major, minor, and build number.
func GetVersion ¶
GetVersion returns the Windows version information. Applications not manifested for Windows 8.1 or Windows 10 will return the Windows 8 OS version value (6.2). For a table of version numbers see: https://msdn.microsoft.com/en-us/library/windows/desktop/ms724833(v=vs.85).aspx