summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/ntapi/nt_token.h11
-rw-r--r--include/ntapi/ntapi.h4
2 files changed, 15 insertions, 0 deletions
diff --git a/include/ntapi/nt_token.h b/include/ntapi/nt_token.h
index a0c7c2e..dfb221e 100644
--- a/include/ntapi/nt_token.h
+++ b/include/ntapi/nt_token.h
@@ -201,4 +201,15 @@ typedef int32_t __stdcall ntapi_zw_set_information_token(
__in void * token_info,
__in size_t token_info_length);
+
+/* extension functions */
+typedef int32_t __stdcall ntapi_tt_enable_token_privilege(
+ __in void * htoken,
+ __in uint32_t privilege);
+
+
+typedef int32_t __stdcall ntapi_tt_disable_token_privilege(
+ __in void * htoken,
+ __in uint32_t privilege);
+
#endif
diff --git a/include/ntapi/ntapi.h b/include/ntapi/ntapi.h
index 054d66a..714abf0 100644
--- a/include/ntapi/ntapi.h
+++ b/include/ntapi/ntapi.h
@@ -447,6 +447,10 @@ typedef struct _ntapi_vtbl {
ntapi_tt_exec_map_image_as_data * tt_exec_map_image_as_data;
ntapi_tt_exec_unmap_image * tt_exec_unmap_image;
+ /* nt_token.h */
+ ntapi_tt_enable_token_privilege * tt_enable_token_privilege;
+ ntapi_tt_disable_token_privilege * tt_disable_token_privilege;
+
/* nt_section.h */
ntapi_tt_get_section_name * tt_get_section_name;