1 //go:build windows 2 3 package winapi 4 5 import ( 6 "golang.org/x/sys/windows" 7 ) 8 9 func IsElevated() bool { 10 return windows.GetCurrentProcessToken().IsElevated() 11 } 12
View as plain text