dobby-hook-core 0.1.4

Dobby-like low-level inline hook core in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::error::{Error, Result};
use core::ffi::c_void;

pub(super) fn instrument(
    address: *mut c_void,
    _pre_handler: unsafe fn(address: *mut c_void, context: *mut c_void),
) -> Result<()> {
    if address.is_null() {
        return Err(Error::NullPointer);
    }
    Err(Error::UnsupportedPlatform)
}