-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Closed
Labels
Milestone
Description
What version of Go are you using (go version)?
C:\Users\Bruce Downs>go version go version go1.13 windows/amd64
Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (go env)?
go env Output
C:\Users\Bruce Downs>go env set GO111MODULE= set GOARCH=amd64 set GOBIN= set GOCACHE=C:\Users\Bruce Downs\AppData\Local\go-build set GOENV=C:\Users\Bruce Downs\AppData\Roaming\go\env set GOEXE=.exe set GOFLAGS= set GOHOSTARCH=amd64 set GOHOSTOS=windows set GONOPROXY= set GONOSUMDB= set GOOS=windows set GOPATH=C:\Users\Bruce Downs\go set GOPRIVATE= set GOPROXY=https://proxy.golang.org,direct set GOROOT=c:\go set GOSUMDB=sum.golang.org set GOTMPDIR= set GOTOOLDIR=c:\go\pkg\tool\windows_amd64 set GCCGO=gccgo set AR=ar set CC=gcc set CXX=g++ set CGO_ENABLED=1 set GOMOD= set CGO_CFLAGS=-g -O2 set CGO_CPPFLAGS= set CGO_CXXFLAGS=-g -O2 set CGO_FFLAGS=-g -O2 set CGO_LDFLAGS=-g -O2 set PKG_CONFIG=pkg-config set GOGCCFLAGS=-m64 -mthreads -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=C:\Users\BRUCED~1\AppData\Local\Temp\go-build181801726=/tmp/go-build -gno-record-gcc-switches
What did you do?
Tried to find windows reboot functionality in the standard library, but it was only found for linux.
What did you expect to see?
For Windows to have parity capability as linux.
import "golang.org/x/sys/unix" unix.Reboot(...)
What did you see instead?
Mention of ExitWindowsEx is missing in the standard library.
The following api will need to be added to /x/sys/windows:
ExitWindowsEx
The following apis will need to be moved from internal/syscall/windows:
LookupPrivilegeValue
AdjustTokenPrivileges
along with their various const dependencies.