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)
| 676 | /// |
| 677 | /// It will return the NTSTATUS value returned by the call. |
| 678 | pub 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 | /// |
nothing calls this directly
no test coverage detected