read_example/
read_example.rs

1use process_read_write;
2
3fn main(){
4    let pid:i32 = 1234; // id of app
5    let addr:usize = 0x70eb856006c0; // address of value to read 
6
7    //let pid = get_proc_by_name("SomeRandomGame");
8    let pid = process_read_write::get_proc_by_id(pid);
9
10    let health = process_read_write::read_addr(pid,addr,4);
11    println!("READING MEMORY: {:?}",health);
12}
13
14