pub struct ModuleEntry {
pub id: u32,
pub name: String,
pub path: PathBuf,
pub hmodule: HMODULE,
pub process_id: u32,
pub global_load_count: u32,
pub proc_load_count: u32,
pub mod_base_addr: *mut u8,
pub mod_base_size: u32,
}
Expand description
Holds data related to a module of a running process.
Maps almost directly to a Windows MODULEENTRY32W.
Fields§
§id: u32
This member is no longer used, and is always set to one.
name: String
The module’s basename.
path: PathBuf
The path to the module’s file.
hmodule: HMODULE
A handle to the module in the context of the owning process.
process_id: u32
The identifier of the process in which the module is loaded.
global_load_count: u32
The load count of the module, which is not generally meaningful,
and usually equal to 0xffff
.
proc_load_count: u32
The load count of the module (same as GlblcntUsage), which is not
generally meaningful, and usually equal to 0xffff
.
mod_base_addr: *mut u8
The base address of the module in the context of the owning process.
mod_base_size: u32
The size of the module, in bytes.
Trait Implementations§
Source§impl Clone for ModuleEntry
impl Clone for ModuleEntry
Source§fn clone(&self) -> ModuleEntry
fn clone(&self) -> ModuleEntry
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ModuleEntry
impl Debug for ModuleEntry
Source§impl From<MODULEENTRY32W> for ModuleEntry
impl From<MODULEENTRY32W> for ModuleEntry
Source§fn from(me: MODULEENTRY32W) -> ModuleEntry
fn from(me: MODULEENTRY32W) -> ModuleEntry
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ModuleEntry
impl RefUnwindSafe for ModuleEntry
impl !Send for ModuleEntry
impl !Sync for ModuleEntry
impl Unpin for ModuleEntry
impl UnwindSafe for ModuleEntry
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