elevate

package
v0.0.0-...-ea9ab63 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdminGroupName

func AdminGroupName() string

func DoAsService

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

func DoAsSystem

func DoAsSystem(f func() error) error

func DropAllPrivileges

func DropAllPrivileges(retainDriverLoading bool) error

func IsAdminDesktop

func IsAdminDesktop() (bool, error)

func ShellExecute

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

func TokenIsElevatedOrElevatable

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