-
-
Notifications
You must be signed in to change notification settings - Fork 739
Expand file tree
/
Copy pathsid.h
More file actions
31 lines (27 loc) · 1.17 KB
/
sid.h
File metadata and controls
31 lines (27 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_SID_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_SID_H_
struct NtSidIdentifierAuthority {
#define kNtSecurityNullSidAuthority {0, 0, 0, 0, 0, 0}
#define kNtSecurityWorldSidAuthority {0, 0, 0, 0, 0, 1}
#define kNtSecurityLocalSidAuthority {0, 0, 0, 0, 0, 2}
#define kNtSecurityCreatorSidAuthority {0, 0, 0, 0, 0, 3}
#define kNtSecurityNonUniqueAuthority {0, 0, 0, 0, 0, 4}
#define kNtSecurityResourceManagerAuthority {0, 0, 0, 0, 0, 9}
uint8_t Value[6];
};
struct NtSid {
uint8_t Revision;
uint8_t SubAuthorityCount;
struct NtSidIdentifierAuthority IdentifierAuthority;
uint32_t SubAuthority[1];
};
#define kNtSecurityNullRid 0x00000000u
#define kNtSecurityWorldRid 0x00000000u
#define kNtSecurityLocalRid 0x00000000u
#define kNtSecurityLocalLogonRid 0x00000001u
#define kNtSecurityCreatorOwnerRid 0x00000000u
#define kNtSecurityCreatorGroupRid 0x00000001u
#define kNtSecurityCreatorOwnerServerRid 0x00000002u
#define kNtSecurityCreatorGroupServerRid 0x00000003u
#define kNtSecurityCreatorOwnerRightsRid 0x00000004u
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_SID_H_ */