pub struct Peb { /* private fields */ }Expand description
safe wrapper around PEB access
Implementations§
Source§impl Peb
impl Peb
Sourcepub fn being_debugged(&self) -> bool
pub fn being_debugged(&self) -> bool
check BeingDebugged flag
Sourcepub unsafe fn set_being_debugged(&mut self, value: bool)
pub unsafe fn set_being_debugged(&mut self, value: bool)
Sourcepub fn nt_global_flag(&self) -> u32
pub fn nt_global_flag(&self) -> u32
get NtGlobalFlag value
Sourcepub unsafe fn set_nt_global_flag(&mut self, value: u32)
pub unsafe fn set_nt_global_flag(&mut self, value: u32)
Sourcepub fn ldr(&self) -> Option<&PebLdrData>
pub fn ldr(&self) -> Option<&PebLdrData>
get pointer to PEB_LDR_DATA
Sourcepub unsafe fn ldr_mut(&mut self) -> Option<&mut PebLdrData>
pub unsafe fn ldr_mut(&mut self) -> Option<&mut PebLdrData>
Sourcepub fn image_base(&self) -> NativePtr
pub fn image_base(&self) -> NativePtr
get image base address
Sourcepub fn process_heap(&self) -> NativePtr
pub fn process_heap(&self) -> NativePtr
get process heap pointer
Sourcepub fn number_of_processors(&self) -> u32
pub fn number_of_processors(&self) -> u32
get number of processors
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more