revert peb changes

This commit is contained in:
uru
2021-03-16 09:14:45 +09:00
parent 32024af2e1
commit 281488d4bd
+1 -12
View File
@@ -16,8 +16,7 @@ use ntapi::{
ntpsapi::{
NtQueryInformationProcess, PROCESS_BASIC_INFORMATION,
},
ntpebteb::{ PEB as PEB64, PPEB as PPEB64 },
ntwow64::{ PEB32, PPEB32 }
ntpebteb::{ PEB, PPEB }
};
#[derive(Debug)]
@@ -63,16 +62,6 @@ pub struct LOADED_IMAGE64 {
pub SizeOfImage: ULONG,
}
#[cfg(target_pointer_width = "64")]
type PEB = PEB64;
#[cfg(target_pointer_width = "64")]
type PPEB = PPEB64;
#[cfg(target_pointer_width = "32")]
type PEB = PEB32;
#[cfg(target_pointer_width = "32")]
type PPEB = PPEB32;
pub unsafe fn find_remote_peb(h_process: HANDLE) -> PPEB {
let mut pbi = zeroed::<PROCESS_BASIC_INFORMATION>();