mirror of
https://github.com/containers/podman.git
synced 2025-12-02 02:58:03 +08:00
12 lines
157 B
Go
12 lines
157 B
Go
//go:build windows
|
|
|
|
package winapi
|
|
|
|
import (
|
|
"golang.org/x/sys/windows"
|
|
)
|
|
|
|
func IsElevated() bool {
|
|
return windows.GetCurrentProcessToken().IsElevated()
|
|
}
|