compat

package
v0.0.0-...-88ec5d8 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2019 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNotWindows is an error that is returned when attempting to access Windows specific
	// functions on a machine that is not running Windows.
	ErrNotWindows = errors.New("support is only avaliable on Windows")
	// ErrInvalidPrefix is an error returned when attempting to get registry data using
	// an invalid Registry top level key prefix.
	ErrInvalidPrefix = errors.New("cannot find the specified key prefix")
)

Functions

func Elevated

func Elevated() bool

Elevated returns the user's privilege level as Admin or User. This is only needed for the Local Device struct, use the device or local packages to gain this information in a more efficient way.

func Inject

func Inject(p int, b []byte) (uintptr, error)

func Newline

func Newline() string

Newline returns the machine specific newline value. This is only needed for the Local Device struct, use the device or local packages to gain this information in a more efficient way.

func Os

func Os() uint8

Os returns the Operating system value. This is only needed for the Local Device struct, use the device or local packages to gain this information in a more efficient way.

func Parent

func Parent(p int, s []string) (int32, error)

func Shell

func Shell() string

Shell returns the machine specific default shell value. This is only needed for the Local Device struct, use the device or local packages to gain this information in a more efficient way.

func ShellArgs

func ShellArgs() []string

ShellArgs returns the machine specific default shell arguments. This is only needed for the Local Device struct, use the device or local packages to gain this information in a more efficient way.

func Version

func Version() string

Version returns the machine specific Operating System version. This is only needed for the Local Device struct, use the device or local packages to gain this information in a more efficient way.

Types

This section is empty.

Jump to

Keyboard shortcuts

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