elevate

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdminGroupName added in v0.0.24

func AdminGroupName() string

func DoAsService added in v0.0.36

func DoAsService(serviceName string, f func() error) error

func DoAsSystem added in v0.0.36

func DoAsSystem(f func() error) error

func DropAllPrivileges

func DropAllPrivileges(retainDriverLoading bool) error

func IsAdminDesktop added in v0.0.24

func IsAdminDesktop() (bool, error)

func ShellExecute

func ShellExecute(program, arguments, directory string, show int32) (err error)

func TokenIsElevatedOrElevatable added in v0.0.24

func TokenIsElevatedOrElevatable(token windows.Token) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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