Unfortunately also brings in golang.org/x/tools and golang.org/x/mod as a dependency, due to go-winio using a "tools.go" file. full diff: https://github.com/Microsoft/go-winio/compare/v0.5.2...v0.6.1 Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
13 lines
469 B
Go
13 lines
469 B
Go
package fs
|
|
|
|
// https://learn.microsoft.com/en-us/windows/win32/api/winnt/ne-winnt-security_impersonation_level
|
|
type SecurityImpersonationLevel int32 // C default enums underlying type is `int`, which is Go `int32`
|
|
|
|
// Impersonation levels
|
|
const (
|
|
SecurityAnonymous SecurityImpersonationLevel = 0
|
|
SecurityIdentification SecurityImpersonationLevel = 1
|
|
SecurityImpersonation SecurityImpersonationLevel = 2
|
|
SecurityDelegation SecurityImpersonationLevel = 3
|
|
)
|