elevate

package
v0.0.0-...-639bd8e Latest Latest
Warning

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

Go to latest
Published: May 26, 2024 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, arguments, 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