pub struct Module<'a> { /* private fields */ }Expand description
immutable reference to a loaded module
Implementations§
Source§impl<'a> Module<'a>
impl<'a> Module<'a>
Sourcepub fn entry_point(&self) -> usize
pub fn entry_point(&self) -> usize
get entry point address (may be 0 if no entry point)
Sourcepub fn name_lowercase(&self) -> String
pub fn name_lowercase(&self) -> String
get name as lowercase for comparison
Sourcepub fn matches_name(&self, name: &str) -> bool
pub fn matches_name(&self, name: &str) -> bool
check if module name matches (case-insensitive)
Sourcepub fn as_ldr_entry(&self) -> &LdrDataTableEntry
pub fn as_ldr_entry(&self) -> &LdrDataTableEntry
get raw LDR entry reference
Sourcepub fn dos_header(&self) -> Result<&DosHeader>
pub fn dos_header(&self) -> Result<&DosHeader>
get DOS header
Sourcepub fn nt_headers(&self) -> Result<NtHeaders>
pub fn nt_headers(&self) -> Result<NtHeaders>
get NT headers
Sourcepub fn get_export(&self, name: &str) -> Result<usize>
pub fn get_export(&self, name: &str) -> Result<usize>
get export by name
Sourcepub fn get_export_by_ordinal(&self, ordinal: u16) -> Result<usize>
pub fn get_export_by_ordinal(&self, ordinal: u16) -> Result<usize>
get export by ordinal
Auto Trait Implementations§
impl<'a> Freeze for Module<'a>
impl<'a> RefUnwindSafe for Module<'a>
impl<'a> !Send for Module<'a>
impl<'a> !Sync for Module<'a>
impl<'a> Unpin for Module<'a>
impl<'a> UnwindSafe for Module<'a>
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