pub trait ModuleListPid: GetContext {
// Required methods
fn get_module_list(&self, pid: &Self::Context) -> Vec<Module>;
fn get_main_module(&self, pid: &Self::Context) -> Module;
// Provided method
fn get_module(&self, pid: &Self::Context, name: &str) -> Option<Module> { ... }
}Expand description
A trait that mirrors the ModuleList trait by gets information from a PID instead of directly from the implementor. Note that the Pid type is not necessarily a Windows process ID. One may implement this using another form of identifier such as a dirbase.
Required Methods§
Sourcefn get_module_list(&self, pid: &Self::Context) -> Vec<Module>
fn get_module_list(&self, pid: &Self::Context) -> Vec<Module>
Returns a list of all modules from a Pid. If the implementor can only provide a single module based on the name, this function should panic
Sourcefn get_main_module(&self, pid: &Self::Context) -> Module
fn get_main_module(&self, pid: &Self::Context) -> Module
Gets the main module from the Pid.