ReadProcessMemory function kernel32
int
ReadProcessMemory(
- int hProcess,
- Pointer<
NativeType> lpBaseAddress, - Pointer<
NativeType> lpBuffer, - int nSize,
- Pointer<
IntPtr> lpNumberOfBytesRead,
ReadProcessMemory copies the data in the specified address range from the address space of the specified process into the specified buffer of the current process. Any process that has a handle with PROCESS_VM_READ access can call the function.
BOOL ReadProcessMemory(
HANDLE hProcess,
LPCVOID lpBaseAddress,
LPVOID lpBuffer,
SIZE_T nSize,
SIZE_T *lpNumberOfBytesRead
);
Implementation
int ReadProcessMemory(int hProcess, Pointer lpBaseAddress, Pointer lpBuffer,
int nSize, Pointer<IntPtr> lpNumberOfBytesRead) =>
_ReadProcessMemory(
hProcess, lpBaseAddress, lpBuffer, nSize, lpNumberOfBytesRead);