github.com/Serizao/go-winio@v0.0.0-20230906082528-f02f7f4ad6e8/internal/fs/security.go (about) 1 package fs 2 3 // https://learn.microsoft.com/en-us/windows/win32/api/winnt/ne-winnt-security_impersonation_level 4 type SecurityImpersonationLevel int32 // C default enums underlying type is `int`, which is Go `int32` 5 6 // Impersonation levels 7 const ( 8 SecurityAnonymous SecurityImpersonationLevel = 0 9 SecurityIdentification SecurityImpersonationLevel = 1 10 SecurityImpersonation SecurityImpersonationLevel = 2 11 SecurityDelegation SecurityImpersonationLevel = 3 12 )