pub struct ExecutableModule { /* private fields */ }Expand description
A handle to a module (EXE or DLL).
Implementations§
Source§impl ExecutableModule
impl ExecutableModule
Sourcepub fn from_current_process_exe() -> Result<Self>
pub fn from_current_process_exe() -> Result<Self>
Returns the module handle of the currently executed code.
Sourcepub fn from_loaded<A: AsRef<Path>>(name: A) -> Result<Self>
pub fn from_loaded<A: AsRef<Path>>(name: A) -> Result<Self>
Returns the module handle of an already loaded executable with the given name in the current process.
Sourcepub fn load_module_as_data_file<P: AsRef<Path>>(file_name: P) -> Result<Self>
pub fn load_module_as_data_file<P: AsRef<Path>>(file_name: P) -> Result<Self>
Loads a DLL or EXE module as a data file usable for extracting resources.
Sourcepub fn load_module<P: AsRef<Path>>(file_name: P) -> Result<Self>
pub fn load_module<P: AsRef<Path>>(file_name: P) -> Result<Self>
Loads a DLL or EXE module.
pub fn get_symbol_ptr_by_ordinal(&self, ordinal: u16) -> Result<*const c_void>
pub fn get_symbol_ptr_by_name<S: AsRef<str>>( &self, name: S, ) -> Result<*const c_void>
Trait Implementations§
Source§impl Debug for ExecutableModule
impl Debug for ExecutableModule
Source§impl Drop for ExecutableModule
impl Drop for ExecutableModule
Source§impl PartialEq for ExecutableModule
impl PartialEq for ExecutableModule
impl Eq for ExecutableModule
impl StructuralPartialEq for ExecutableModule
Auto Trait Implementations§
impl Freeze for ExecutableModule
impl RefUnwindSafe for ExecutableModule
impl !Send for ExecutableModule
impl !Sync for ExecutableModule
impl Unpin for ExecutableModule
impl UnwindSafe for ExecutableModule
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