LdrDataTableEntry

Struct LdrDataTableEntry 

Source
#[repr(C)]
pub struct LdrDataTableEntry { pub in_load_order_links: ListEntry, pub in_memory_order_links: ListEntry, pub in_initialization_order_links: ListEntry, pub dll_base: NativePtr, pub entry_point: NativePtr, pub size_of_image: u32, pub full_dll_name: UnicodeString, pub base_dll_name: UnicodeString, }
Expand description

LDR_DATA_TABLE_ENTRY - represents a loaded module

this is a simplified version; full structure has more fields that vary by Windows version

Fields§

§in_load_order_links: ListEntry§in_memory_order_links: ListEntry§in_initialization_order_links: ListEntry§dll_base: NativePtr§entry_point: NativePtr§size_of_image: u32§full_dll_name: UnicodeString§base_dll_name: UnicodeString

Implementations§

Source§

impl LdrDataTableEntry

Source

pub fn base(&self) -> usize

get module base address

Source

pub fn size(&self) -> usize

get module size

Source

pub fn entry_point(&self) -> usize

get entry point address

Source

pub unsafe fn full_name(&self) -> String

get full path as String

§Safety

full_dll_name buffer must be valid

Source

pub unsafe fn base_name(&self) -> String

get base name (filename only) as String

§Safety

base_dll_name buffer must be valid

Source

pub fn contains_address(&self, addr: usize) -> bool

check if address is within this module

Source

pub unsafe fn matches_name(&self, name: &str) -> bool

check if this module matches a name (case-insensitive)

§Safety

name buffers must be valid

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.