pub struct WindowsPeb<'a, Driver>{ /* private fields */ }Expand description
A Windows process environment block (PEB).
The PEB is a user-mode structure that stores process-wide information, such as loaded modules, heap data, and environment settings. This structure supports both 32-bit and 64-bit PEBs.
§Implementation Details
Corresponds to _PEB.
Implementations§
Source§impl<'a, Driver> WindowsPeb<'a, Driver>
impl<'a, Driver> WindowsPeb<'a, Driver>
Sourcepub fn new(
vmi: VmiState<'a, Driver, WindowsOs<Driver>>,
va: Va,
root: Pa,
kind: WindowsWow64Kind,
) -> Self
pub fn new( vmi: VmiState<'a, Driver, WindowsOs<Driver>>, va: Va, root: Pa, kind: WindowsWow64Kind, ) -> Self
Creates a new Windows PEB object.
Sourcepub fn process_parameters(
&self,
) -> Result<WindowsProcessParameters<'a, Driver>, VmiError>
pub fn process_parameters( &self, ) -> Result<WindowsProcessParameters<'a, Driver>, VmiError>
Returns the process parameters of the process.
§Implementation Details
Corresponds to _PEB.ProcessParameters.
Sourcepub fn current_directory(&self) -> Result<String, VmiError>
pub fn current_directory(&self) -> Result<String, VmiError>
Returns the current directory.
Shortcut for self.process_parameters()?.current_directory().
Sourcepub fn dll_path(&self) -> Result<String, VmiError>
pub fn dll_path(&self) -> Result<String, VmiError>
Returns the DLL search path.
Shortcut for self.process_parameters()?.dll_path().
Sourcepub fn image_path_name(&self) -> Result<String, VmiError>
pub fn image_path_name(&self) -> Result<String, VmiError>
Returns the full path of the executable image.
Shortcut for self.process_parameters()?.image_path_name().
Sourcepub fn command_line(&self) -> Result<String, VmiError>
pub fn command_line(&self) -> Result<String, VmiError>
Returns the command line used to launch the process.
Shortcut for self.process_parameters()?.command_line().
Trait Implementations§
Source§impl<Driver> Debug for WindowsPeb<'_, Driver>
impl<Driver> Debug for WindowsPeb<'_, Driver>
Source§impl<Driver> VmiVa for WindowsPeb<'_, Driver>
impl<Driver> VmiVa for WindowsPeb<'_, Driver>
Auto Trait Implementations§
impl<'a, Driver> Freeze for WindowsPeb<'a, Driver>
impl<'a, Driver> !RefUnwindSafe for WindowsPeb<'a, Driver>
impl<'a, Driver> !Send for WindowsPeb<'a, Driver>
impl<'a, Driver> !Sync for WindowsPeb<'a, Driver>
impl<'a, Driver> Unpin for WindowsPeb<'a, Driver>
impl<'a, Driver> !UnwindSafe for WindowsPeb<'a, Driver>
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