From 5f1999c6f77e9abb827d61e4e89fa42841caaa9a Mon Sep 17 00:00:00 2001 From: midipix Date: Fri, 24 Jun 2016 02:22:21 -0400 Subject: process tokens: added __ntapi_tt_[enable/disable]_token_privilege(). --- include/ntapi/nt_token.h | 11 +++++++++++ include/ntapi/ntapi.h | 4 ++++ 2 files changed, 15 insertions(+) (limited to 'include') 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; -- cgit v1.2.3