MCPcopy Create free account
hub / github.com/Kudaes/Dumpy / nt_query_information_process

Function nt_query_information_process

dumpy/dinvoke/src/lib.rs:678–692  ·  view source on GitHub ↗

Dynamically calls NtQueryInformationProcess. It will return the NTSTATUS value returned by the call.

(handle: HANDLE, process_information_class: u32, process_information: PVOID, length: u32, return_length: *mut u32)

Source from the content-addressed store, hash-verified

676///
677/// It will return the NTSTATUS value returned by the call.
678pub fn nt_query_information_process (handle: HANDLE, process_information_class: u32, process_information: PVOID, length: u32, return_length: *mut u32) -> i32 {
679
680 unsafe
681 {
682 let ret;
683 let func_ptr: data::NtQueryInformationProcess;
684 let ntdll = get_module_base_address(&lc!("ntdll.dll"));
685 dynamic_invoke!(ntdll,&lc!("NtQueryInformationProcess"),func_ptr,ret,handle,process_information_class,process_information,length,return_length);
686
687 match ret {
688 Some(x) => return x,
689 None => return -1,
690 }
691 }
692}
693
694/// Dynamically calls RtlAdjustPrivilege.
695///

Callers

nothing calls this directly

Calls 1

get_module_base_addressFunction · 0.85

Tested by

no test coverage detected