Crashpad
Public Member Functions | List of all members
crashpad::ProcessMemoryWin Class Referencefinal

Accesses the memory of another Windows process. More...

#include "util/process/process_memory_win.h"

Inheritance diagram for crashpad::ProcessMemoryWin:
crashpad::ProcessMemory

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...
 

Detailed Description

Accesses the memory of another Windows process.

Member Function Documentation

◆ Initialize()

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.

Parameters
[in]handleThe HANDLE of a target process.
Returns
true on success, false on failure with a message logged.

◆ ReadAvailableMemory()

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.

Returns
The actual number of bytes read.

The documentation for this class was generated from the following files: