ReadProcessMemory (user32)
Last changed: -

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:


Alternative Managed API:

Do you know one? Please contribute it!



Tips & Tricks:

Please add some!

Sample Code:

Please add some!