pub struct ModuleQuery<'a> { /* private fields */ }Expand description
module query builder
Implementations§
Source§impl<'a> ModuleQuery<'a>
impl<'a> ModuleQuery<'a>
Sourcepub fn find_by_name(&self, name: &str) -> Result<Module<'a>>
pub fn find_by_name(&self, name: &str) -> Result<Module<'a>>
find module by name (case-insensitive)
searches by base name (e.g., “ntdll.dll”, not full path)
Sourcepub fn find_by_hash(&self, hash: u32) -> Result<Module<'a>>
pub fn find_by_hash(&self, hash: u32) -> Result<Module<'a>>
find module by hash of name (for API hashing)
hash is computed lowercase
Sourcepub fn find_by_address(&self, address: usize) -> Result<Module<'a>>
pub fn find_by_address(&self, address: usize) -> Result<Module<'a>>
find module containing an address
Sourcepub fn find_by_base(&self, base: usize) -> Result<Module<'a>>
pub fn find_by_base(&self, base: usize) -> Result<Module<'a>>
find module by base address (exact match)
Sourcepub fn find_by_path_contains(&self, substring: &str) -> Result<Module<'a>>
pub fn find_by_path_contains(&self, substring: &str) -> Result<Module<'a>>
find module by partial path match
Sourcepub fn kernelbase(&self) -> Result<Module<'a>>
pub fn kernelbase(&self) -> Result<Module<'a>>
get kernelbase.dll module
Sourcepub fn current_module(&self) -> Result<Module<'a>>
pub fn current_module(&self) -> Result<Module<'a>>
get current executable module
Auto Trait Implementations§
impl<'a> Freeze for ModuleQuery<'a>
impl<'a> RefUnwindSafe for ModuleQuery<'a>
impl<'a> Send for ModuleQuery<'a>
impl<'a> Sync for ModuleQuery<'a>
impl<'a> Unpin for ModuleQuery<'a>
impl<'a> UnwindSafe for ModuleQuery<'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