#![allow(improper_ctypes_definitions)]
mod dispatch;
mod logging;
mod trampoline;
pub mod types;
#[cfg(target_os = "linux")]
mod hook_linux;
#[cfg(target_os = "macos")]
mod hook_macos;
#[cfg(target_os = "windows")]
mod hook_windows;
#[cfg(target_os = "windows")]
#[unsafe(no_mangle)]
pub unsafe extern "system" fn DllMain(
_dll_module: *mut u8,
call_reason: u32,
_reserved: *mut u8,
) -> i32 {
const DLL_PROCESS_ATTACH: u32 = 1;
if call_reason == DLL_PROCESS_ATTACH {
hook_windows::install_hook();
}
1 }