win32

package
v1.30.1 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

View Source
const (
	HwndDesktop = windows.Handle(0)
)

Variables

This section is empty.

Functions

func DomainJoined added in v1.29.0

func DomainJoined() (bool, error)

DomainJoined attempts to determine whether the machine is actively domain joined.

func ShellExecute

func ShellExecute(hwnd windows.Handle, verb, file, parameters, directory string, showCmd int) error

func ShellExecuteAsAdmin

func ShellExecuteAsAdmin(reason string, hwnd windows.Handle, file, parameters, directory string, showCmd int) error

Uses "runas" as verb to execute as Elevated privileges

Types

type Win32_ComputerSystem added in v1.29.0

type Win32_ComputerSystem struct {
	Partofdomain bool
}

nolint

Jump to

Keyboard shortcuts

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