From: Detlef Riekenberg Subject: [PATCH 1/3] include: Add TOKEN_MANDATORY_LEVEL definitions Message-Id: <1343517841-26500-1-git-send-email-wine.dev@web.de> Date: Sun, 29 Jul 2012 01:23:59 +0200 Needed for GetTokenInformation(.. TokenIntegrityLevel..), which is used by the office 2013 web installer. -- By by ... Detlef --- include/winnt.h | 22 +++++++++++++++------- 1 files changed, 15 insertions(+), 7 deletions(-) diff --git a/include/winnt.h b/include/winnt.h index b679017..cbb312f 100644 --- a/include/winnt.h +++ b/include/winnt.h @@ -3748,13 +3748,18 @@ typedef struct _ACL_SIZE_INFORMATION #define SE_IMPERSONATE_NAME TEXT("SeImpersonatePrivilege") #define SE_CREATE_GLOBAL_NAME TEXT("SeCreateGlobalPrivilege") -#define SE_GROUP_MANDATORY 0x00000001 -#define SE_GROUP_ENABLED_BY_DEFAULT 0x00000002 -#define SE_GROUP_ENABLED 0x00000004 -#define SE_GROUP_OWNER 0x00000008 -#define SE_GROUP_USE_FOR_DENY_ONLY 0x00000010 -#define SE_GROUP_LOGON_ID 0xC0000000 -#define SE_GROUP_RESOURCE 0x20000000 +#define SE_GROUP_MANDATORY 0x00000001 +#define SE_GROUP_ENABLED_BY_DEFAULT 0x00000002 +#define SE_GROUP_ENABLED 0x00000004 +#define SE_GROUP_OWNER 0x00000008 +#define SE_GROUP_USE_FOR_DENY_ONLY 0x00000010 +#define SE_GROUP_INTEGRITY 0x00000020 +#define SE_GROUP_INTEGRITY_ENABLED 0x00000040 +#define SE_GROUP_LOGON_ID 0xC0000000 +#define SE_GROUP_RESOURCE 0x20000000 +/* merge the bits for all SE_GROUP_* flags */ +#define SE_GROUP_VALID_ATTRIBUTES 0xE000007F + #define SE_PRIVILEGE_ENABLED_BY_DEFAULT 0x00000001 #define SE_PRIVILEGE_ENABLED 0x00000002 @@ -4228,6 +4233,9 @@ typedef struct _TOKEN_ELEVATION { DWORD TokenIsElevated; } TOKEN_ELEVATION, * PTOKEN_ELEVATION; +typedef struct _TOKEN_MANDATORY_LABEL { + SID_AND_ATTRIBUTES Label; +} TOKEN_MANDATORY_LABEL, * PTOKEN_MANDATORY_LABEL; /* * ACLs of NT -- 1.7.5.4