utils

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MB_OK                = 0x00000000
	MB_OKCANCEL          = 0x00000001
	MB_ABORTRETRYIGNORE  = 0x00000002
	MB_YESNOCANCEL       = 0x00000003
	MB_YESNO             = 0x00000004
	MB_RETRYCANCEL       = 0x00000005
	MB_CANCELTRYCONTINUE = 0x00000006
	MB_ICONHAND          = 0x00000010
	MB_ICONQUESTION      = 0x00000020
	MB_ICONEXCLAMATION   = 0x00000030
	MB_ICONASTERISK      = 0x00000040
	MB_USERICON          = 0x00000080
	MB_ICONWARNING       = MB_ICONEXCLAMATION
	MB_ICONERROR         = MB_ICONHAND
	MB_ICONINFORMATION   = MB_ICONASTERISK
	MB_ICONSTOP          = MB_ICONHAND

	MB_DEFBUTTON1 = 0x00000000
	MB_DEFBUTTON2 = 0x00000100
	MB_DEFBUTTON3 = 0x00000200
	MB_DEFBUTTON4 = 0x00000300

	IDOK     = 1
	IDCANCEL = 2
	IDABORT  = 3
	IDRETRY  = 4
	IDIGNORE = 5
	IDYES    = 6
	IDNO     = 7
)

Variables

This section is empty.

Functions

func GetDefaultSID

func GetDefaultSID() (*windows.SID, error)

func GetHandleSID

func GetHandleSID(h windows.Handle) (*windows.SID, error)

func GetUserSID

func GetUserSID() (*windows.SID, error)

func MessageBox

func MessageBox(title, text string, style uintptr) int

func NewPageant

func NewPageant() (*pageantWindow, error)

func Notify

func Notify(title, message string)

func OpenFileMapping

func OpenFileMapping(dwDesiredAccess uint32, bInheritHandle uintptr, mapNamePtr uintptr) (windows.Handle, error)

func RegisterNotifier

func RegisterNotifier(n notify.Notifier)

func SetClipBoard

func SetClipBoard(text string) error

func SetFileAttributes

func SetFileAttributes(path string, attr uint32) error

func SetListenerDeadline

func SetListenerDeadline(l net.Listener, t time.Time) error

func UUIDToString

func UUIDToString(uuid [16]byte) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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