pub struct InstalledHook { /* private fields */ }Expand description
One installed hook: enough to restore it and to hand the caller the original.
Implementations§
Source§impl InstalledHook
impl InstalledHook
Sourcepub fn original(&self) -> *const c_void
pub fn original(&self) -> *const c_void
The canonical original entry point — the real callee the hookfs shims
invoke for passthrough. For a standard import this is GetProcAddress
(or the load-time-bound slot value as a fallback); for a delay import it
is always the authoritatively resolved export, never the
__delayLoadHelper2 stub the delay slot holds before first call.
Sourcepub fn replacement(&self) -> *const c_void
pub fn replacement(&self) -> *const c_void
The replacement pointer installed into the slot.
Trait Implementations§
Source§impl Clone for InstalledHook
impl Clone for InstalledHook
Auto Trait Implementations§
impl Forget for InstalledHook
impl Freeze for InstalledHook
impl Move for InstalledHook
impl RefUnwindSafe for InstalledHook
impl Send for InstalledHook
impl Sync for InstalledHook
impl Unpin for InstalledHook
impl UnsafeUnpin for InstalledHook
impl UnwindSafe for InstalledHook
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