Struct gothook::GotHookLibrary[][src]

pub struct GotHookLibrary<'a> { /* fields omitted */ }

Implementations

impl<'a> GotHookLibrary<'a>[src]

pub fn new(path: &'a str, load: bool) -> Self[src]

Create a new library to be hooked from a path. If the load boolean is true, the library will first be loaded.

pub fn start(&self) -> usize[src]

Get the start address of this library

pub fn end(&self) -> usize[src]

Get the end address of this library

pub fn path(&self) -> &str[src]

Get the library’s path

pub unsafe fn hook_function(&self, name: &str, newfunc: *const c_void) -> bool[src]

Hook the function specified by name

#Safety: This function is inherently unsafe as it modifies the got.plt of the target library, dereferncing raw pointers as necessary.

Auto Trait Implementations

impl<'a> RefUnwindSafe for GotHookLibrary<'a>

impl<'a> Send for GotHookLibrary<'a>

impl<'a> Sync for GotHookLibrary<'a>

impl<'a> Unpin for GotHookLibrary<'a>

impl<'a> UnwindSafe for GotHookLibrary<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.