diff options
author | midipix <writeonce@midipix.org> | 2018-03-19 02:31:03 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2018-03-20 23:27:57 -0400 |
commit | 39bb9d66aae4253c7c0b926785c0f2cc69b8993e (patch) | |
tree | 0fdbde414f813135da102489b9a0ff118053ae6b | |
parent | a738157be0ea0c08564aadf6f59df5f3702ce8ce (diff) | |
download | ntapi-39bb9d66aae4253c7c0b926785c0f2cc69b8993e.tar.bz2 ntapi-39bb9d66aae4253c7c0b926785c0f2cc69b8993e.tar.xz |
added helper sid struct definitions (with pre-defined sub-authority arrays).
-rw-r--r-- | include/ntapi/nt_object.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/include/ntapi/nt_object.h b/include/ntapi/nt_object.h index f6a97b4..0618c37 100644 --- a/include/ntapi/nt_object.h +++ b/include/ntapi/nt_object.h @@ -274,6 +274,30 @@ typedef struct _nt_sid { } nt_sid; +typedef struct _nt_sid_os { + unsigned char revision; + unsigned char sub_authority_count; + nt_sid_identifier_authority identifier_authority; + uint32_t sub_authority[2]; +} nt_sid_os; + + +typedef struct _nt_sid_user { + unsigned char revision; + unsigned char sub_authority_count; + nt_sid_identifier_authority identifier_authority; + uint32_t sub_authority[5]; +} nt_sid_user; + + +typedef struct _nt_sid_any { + unsigned char revision; + unsigned char sub_authority_count; + nt_sid_identifier_authority identifier_authority; + uint32_t sub_authority[15]; +} nt_sid_any; + + typedef struct _nt_sid_and_attributes { nt_sid * sid; uint32_t attributes; |