hudhook 0.9.1

A graphics API hook with dear imgui render loop. Supports DirectX 9, 11, 12, and OpenGL 3.
1
2
3
4
5
6
7
8
9
10
11
12
use std::path::PathBuf;

use hudhook::inject::Process;

fn main() {
    let mut args = std::env::args();
    args.next().unwrap();
    let name = args.next().unwrap();
    let dll: PathBuf = args.next().unwrap().into();
    let process = Process::by_name(&name).expect("Process by name");
    process.inject(dll).expect("Inject");
}