pub struct ModuleHandle { /* private fields */ }Expand description
owned handle to a module (allows modifications)
Implementations§
Source§impl ModuleHandle
impl ModuleHandle
Sourcepub unsafe fn from_raw(ptr: *mut LdrDataTableEntry) -> Option<Self>
pub unsafe fn from_raw(ptr: *mut LdrDataTableEntry) -> Option<Self>
Sourcepub fn as_ptr(&self) -> *mut LdrDataTableEntry
pub fn as_ptr(&self) -> *mut LdrDataTableEntry
get raw pointer
Sourcepub unsafe fn as_entry_mut(&mut self) -> &mut LdrDataTableEntry
pub unsafe fn as_entry_mut(&mut self) -> &mut LdrDataTableEntry
get mutable access to LDR entry (for unlinking)
§Safety
caller must ensure no other references exist
Sourcepub fn get_link_pointers(&self) -> ModuleLinkPointers
pub fn get_link_pointers(&self) -> ModuleLinkPointers
get pointers to all three list links
Trait Implementations§
impl Send for ModuleHandle
impl Sync for ModuleHandle
Auto Trait Implementations§
impl Freeze for ModuleHandle
impl RefUnwindSafe for ModuleHandle
impl Unpin for ModuleHandle
impl UnwindSafe for ModuleHandle
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