Build Status Build status crates.io Coverage Status

A crate to read memory from another process. Code originally taken from Julia Evans' excellent ruby-stacktrace project.

Example

```rust,norun extern crate readprocess_memory;

use std::io; use readprocessmemory::{Pid, TryIntoProcessHandle, CopyAddress, copy_address};

// Try to read size bytes at address from the process pid. fn readsomememory(pid: Pid, address: usize, size: usize) -> io::Result<()> { let handle = pid.tryintoprocesshandle()?; let _bytes = copyaddress(address, size, &handle)?; println!("Read {} bytes", size); Ok(()) }

fn main() { readsomememory(123 as Pid, 0x100000, 100).unwrap(); } ```

Documentation

https://docs.rs/read-process-memory