Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 6 additions & 10 deletions libc/nt/struct/sid.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
#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];
};

Expand All @@ -12,16 +18,6 @@ struct NtSid {
uint32_t SubAuthority[1];
};

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];
};

#define kNtSecurityNullRid 0x00000000u
#define kNtSecurityWorldRid 0x00000000u
#define kNtSecurityLocalRid 0x00000000u
Expand Down