wps

package module
v0.0.0-...-8c66fa6 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

README

wps

Windows PowerState

Documentation

Index

Constants

View Source
const (
	HWND_BROADCAST  = 0xffff
	WM_SYSCOMMAND   = 0x0112
	SC_MONITORPOWER = 0xf170

	DISPLAY_ON  = -1
	DISPLAY_OFF = 2
	LOW_POWER   = 1
)
View Source
const (
	PS_SUSPEND   = 0
	PS_HIBERNATE = 1
)

Variables

This section is empty.

Functions

func DisplayOff

func DisplayOff() (err error)

func Hibernate

func Hibernate(force bool) (err error)

func HybridShutdown

func HybridShutdown(force bool) error

func LogOff

func LogOff(force bool) error

func PowerOff

func PowerOff(force bool) error

func Reboot

func Reboot(force bool) error

func RestartApps

func RestartApps(force bool) error

func Shutdown

func Shutdown(force bool) error

func Suspend

func Suspend(force bool) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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