Struct gothook::GotHookLibrary [−][src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,