ReadProcessMemory (user32)
Last changed: -202.125.132.74

.
Summary
Reads data from an area of memory in a specified process. The entire area to be read must be accessible or the operation fails.

C# Signature:

[DllImport("kernel32.dll", SetLastError = true)]
   public static extern bool ReadProcessMemory(
   IntPtr hProcess,
   IntPtr lpBaseAddress,
   byte[] lpBuffer,
   Int32 nSize,
   out IntPtr lpNumberOfBytesRead);

VB Signature:

   Private Declare Function ReadProcessMemory Lib "kernel32" (ByVal hProcess As Integer, ByVal lpBaseAddress As Integer, ByVal lpBuffer As Integer, ByVal nSize As Integer, ByRef lpNumberOfBytesWritten As Integer) As Integer

User-Defined Types:

None.

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Documentation