pub fn read_memory(
    process: HANDLE,
    base_addr: usize,
    storage: &mut [u8]
) -> Result<()>
Expand description

Reads process memory.

Parameters

  • process - Pointer to a opened process.
  • base_addr - Address from where to start reading.
  • storage - Storage to hold memory. Its len determines amount of bytes to read.

Return

  • Ok - Vector with data.
  • Err - Error reason.