summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/ntapi/nt_token.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/include/ntapi/nt_token.h b/include/ntapi/nt_token.h
index aa2df2c..a0c7c2e 100644
--- a/include/ntapi/nt_token.h
+++ b/include/ntapi/nt_token.h
@@ -26,6 +26,49 @@ typedef enum _nt_token_info_class {
} nt_token_info_class;
+/* token privilege constants */
+#define NT_SE_CREATE_TOKEN_PRIVILEGE 2
+#define NT_SE_ASSIGN_PRIMARY_TOKEN_PRIVILEGE 3
+#define NT_SE_LOCK_MEMORY_PRIVILEGE 4
+#define NT_SE_INCREASE_QUOTA_PRIVILEGE 5
+#define NT_SE_MACHINE_ACCOUNT_PRIVILEGE 6
+#define NT_SE_TCB_PRIVILEGE 7
+#define NT_SE_SECURITY_PRIVILEGE 8
+#define NT_SE_TAKE_OWNERSHIP_PRIVILEGE 9
+#define NT_SE_LOAD_DRIVER_PRIVILEGE 10
+#define NT_SE_SYSTEM_PROFILE_PRIVILEGE 11
+#define NT_SE_SYSTEMTIME_PRIVILEGE 12
+#define NT_SE_PROFILE_SINGLE_PROCESS_PRIVILEGE 13
+#define NT_SE_INCREASE_BASE_PRIORITY_PRIVILEGE 14
+#define NT_SE_CREATE_PAGEFILE_PRIVILEGE 15
+#define NT_SE_CREATE_PERMANENT_PRIVILEGE 16
+#define NT_SE_BACKUP_PRIVILEGE 17
+#define NT_SE_RESTORE_PRIVILEGE 18
+#define NT_SE_SHUTDOWN_PRIVILEGE 19
+#define NT_SE_DEBUG_PRIVILEGE 20
+#define NT_SE_AUDIT_PRIVILEGE 21
+#define NT_SE_SYSTEM_ENVIRONMENT_PRIVILEGE 22
+#define NT_SE_CHANGE_NOTIFY_PRIVILEGE 23
+#define NT_SE_REMOTE_SHUTDOWN_PRIVILEGE 24
+#define NT_SE_UNDOCK_PRIVILEGE 25
+#define NT_SE_SYNC_AGENT_PRIVILEGE 26
+#define NT_SE_ENABLE_DELEGATION_PRIVILEGE 27
+#define NT_SE_MANAGE_VOLUME_PRIVILEGE 28
+#define NT_SE_IMPERSONATE_PRIVILEGE 29
+#define NT_SE_CREATE_GLOBAL_PRIVILEGE 30
+#define NT_SE_TRUSTED_CRED_MAN_ACCESS_PRIVILEGE 31
+#define NT_SE_RELABEL_PRIVILEGE 32
+#define NT_SE_INCREASE_WORKING_SET_PRIVILEGE 33
+#define NT_SE_TIME_ZONE_PRIVILEGE 34
+#define NT_SE_CREATE_SYMBOLIC_LINK_PRIVILEGE 35
+
+
+
+/* token attribute bits */
+#define NT_SE_DISABLE_PRIVILEGE (0x0001U)
+#define NT_SE_ENABLE_PRIVILEGE (0x0002U)
+
+
/* token access bits */
#define NT_TOKEN_ASSIGN_PRIMARY 0x00000001U
#define NT_TOKEN_DUPLICATE 0x00000002U