Crate get_proc_address_rs

Crate get_proc_address_rs 

Source
Expand description

§Get-Proc-Address-rs

get_proc_address provides a rust native alternative to GetProcAddress

§Example

use get_proc_address_rs::get_proc_address;
let pointer = get_proc_address("kernel32.dll", "IsDebuggerPresent").unwrap();
unsafe {
    let is_debugger_present: IsDebuggerPresent = std::mem::transmute(pointer);
    let being_debugged = is_debugger_present();
    assert!(!being_debugged);
}

Re-exports§

pub use win_types::*;

Modules§

win_types

Functions§

fetch_peb_offset
Fetches the PEB offset by offsetting from gs
get_proc_address
Takes in the dll and function names and returns a pointer to the function.