diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 18:30:56 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 18:30:56 +0000 |
commit | d3114e0edc60508fc1e44e6cd2733fb2a97cdaca (patch) | |
tree | 82d66db664dea6ee75010455b98b04f47fcc4a90 /lib/win32-helpers.h | |
parent | Initial commit. (diff) | |
download | pciutils-d3114e0edc60508fc1e44e6cd2733fb2a97cdaca.tar.xz pciutils-d3114e0edc60508fc1e44e6cd2733fb2a97cdaca.zip |
Adding upstream version 1:3.11.1.upstream/1%3.11.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'lib/win32-helpers.h')
-rw-r--r-- | lib/win32-helpers.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/win32-helpers.h b/lib/win32-helpers.h new file mode 100644 index 0000000..c415439 --- /dev/null +++ b/lib/win32-helpers.h @@ -0,0 +1,13 @@ +const char *win32_strerror(DWORD win32_error_id); +BOOL win32_is_non_nt_system(void); +BOOL win32_is_32bit_on_64bit_system(void); +BOOL win32_is_32bit_on_win8_64bit_system(void); +UINT win32_change_error_mode(UINT new_mode); +BOOL win32_have_privilege(LUID luid_privilege); +BOOL win32_enable_privilege(LUID luid_privilege, HANDLE *revert_token, BOOL *revert_only_privilege); +VOID win32_revert_privilege(LUID luid_privilege, HANDLE revert_token, BOOL revert_only_privilege); +BOOL win32_change_token(HANDLE new_token, HANDLE *old_token); +VOID win32_revert_to_token(HANDLE token); +HANDLE win32_find_and_open_process_for_query(LPCSTR exe_file); +HANDLE win32_open_process_token_with_rights(HANDLE process, DWORD rights); +BOOL win32_call_func_with_tcb_privilege(BOOL (*function)(LPVOID), LPVOID argument); |