security.go 469 B

123456789101112
  1. package fs
  2. // https://learn.microsoft.com/en-us/windows/win32/api/winnt/ne-winnt-security_impersonation_level
  3. type SecurityImpersonationLevel int32 // C default enums underlying type is `int`, which is Go `int32`
  4. // Impersonation levels
  5. const (
  6. SecurityAnonymous SecurityImpersonationLevel = 0
  7. SecurityIdentification SecurityImpersonationLevel = 1
  8. SecurityImpersonation SecurityImpersonationLevel = 2
  9. SecurityDelegation SecurityImpersonationLevel = 3
  10. )