From 39bb9d66aae4253c7c0b926785c0f2cc69b8993e Mon Sep 17 00:00:00 2001 From: midipix Date: Mon, 19 Mar 2018 02:31:03 +0000 Subject: added helper sid struct definitions (with pre-defined sub-authority arrays). --- include/ntapi/nt_object.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'include') 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; -- cgit v1.2.3