summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-06-24 02:22:21 -0400
committermidipix <writeonce@midipix.org>2016-06-24 03:32:46 -0400
commit5f1999c6f77e9abb827d61e4e89fa42841caaa9a (patch)
treebaa85523a11f4c0a5b9f049910e931144e49b9f0 /include
parenta3e9aaed1633e5ca5426758719486e001931eddd (diff)
downloadntapi-5f1999c6f77e9abb827d61e4e89fa42841caaa9a.tar.bz2
ntapi-5f1999c6f77e9abb827d61e4e89fa42841caaa9a.tar.xz
process tokens: added __ntapi_tt_[enable/disable]_token_privilege().
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;