Documentation ¶
Index ¶
- Constants
- func DisplayOff() (err error)
- func Hibernate(force bool) (err error)
- func HybridShutdown(force bool) error
- func LogOff(force bool) error
- func PowerOff(force bool) error
- func Reboot(force bool) error
- func RestartApps(force bool) error
- func Shutdown(force bool) error
- func Suspend(force bool) (err error)
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 HybridShutdown ¶
func RestartApps ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.