Crashpad
|
Accesses the memory of another Windows process. More...
#include "util/process/process_memory_win.h"
Public Member Functions | |
bool | Initialize (HANDLE handle) |
Initializes this object to read the memory of a process with the provided handle. More... | |
size_t | ReadAvailableMemory (VMAddress address, size_t num_bytes, void *buffer) const |
Attempts to read size bytes from the target process starting at address address into buffer. If some of the specified range is not accessible, reads up to the first inaccessible byte. More... | |
Public Member Functions inherited from crashpad::ProcessMemory | |
bool | Read (VMAddress address, VMSize size, void *buffer) const |
Copies memory from the target process into a caller-provided buffer in the current process. More... | |
bool | ReadCString (VMAddress address, std::string *string) const |
Reads a NUL -terminated C string from the target process into a string in the current process. More... | |
bool | ReadCStringSizeLimited (VMAddress address, VMSize size, std::string *string) const |
Reads a NUL -terminated C string from the target process into a string in the current process. More... | |
Accesses the memory of another Windows process.
bool crashpad::ProcessMemoryWin::Initialize | ( | HANDLE | handle | ) |
Initializes this object to read the memory of a process with the provided handle.
This method must be called successfully prior to calling any other method in this class.
[in] | handle | The HANDLE of a target process. |
true
on success, false
on failure with a message logged. size_t crashpad::ProcessMemoryWin::ReadAvailableMemory | ( | VMAddress | address, |
size_t | num_bytes, | ||
void * | buffer | ||
) | const |
Attempts to read size bytes from the target process starting at address address into buffer. If some of the specified range is not accessible, reads up to the first inaccessible byte.