pub struct ShellItemHooks { /* private fields */ }Available on crate features
hook-dll and hook only.Expand description
A collection of injected hooks that can be ejected together.
Implementations§
Source§impl ShellItemHooks
impl ShellItemHooks
Sourcepub fn eject(&mut self) -> Result<(), Error>
pub fn eject(&mut self) -> Result<(), Error>
Eject all hooks and return the first error if any.
Sourcepub fn inject<'f1, 'f2>() -> ShellItemHooksInjectBuilder<'f1, 'f2>
pub fn inject<'f1, 'f2>() -> ShellItemHooksInjectBuilder<'f1, 'f2>
Inject the hook DLL into all processes with the given name.
Before ShellItemHooks::eject(), the DLL file will be locked and can’t be deleted.
§Returns
Ok(ShellItemHooks)- Successfully injected hooksErr(anyhow::Error)- Error during injection
Auto Trait Implementations§
impl !RefUnwindSafe for ShellItemHooks
impl !Send for ShellItemHooks
impl !Sync for ShellItemHooks
impl !UnwindSafe for ShellItemHooks
impl Freeze for ShellItemHooks
impl Unpin for ShellItemHooks
impl UnsafeUnpin for ShellItemHooks
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