Results 1 to 1 of 1
  1. #1
    Grooguz
    Grooguz is offline
    BanHammer Holder
    Grooguz's Avatar
    Join Date
    2010 May
    Posts
    678
    Thanks Thanks Given 
    152
    Thanks Thanks Received 
    537
    Thanked in
    167 Posts
    Rep Power
    15

    ReadProcessMemory in C# Quick Example

    Quick Example:
    [ DllImport( "Kernel32.dll" ) ]
    public static extern bool ReadProcessMemory
    (
    IntPtr hProcess,
    IntPtr lpBaseAddress,
    byte[] lpBuffer,
    UInt32 nSize,
    ref UInt32 lpNumberOfBytesRead
    );


    public byte[] Read(IntPtr handle,IntPtr address,UInt32 size,ref UInt32 bytes)
    {
    byte[] buffer = new byte[size];

    ReadProcessMemory(handle,address,buffer,size, ref bytes);

    Debug.Assert(bytes == size);

    return buffer;
    }

  2. The Following 2 Users Say Thank You to Grooguz For This Useful Post:


Similar Threads

  1. [Help] reading text value with readprocessmemory
    By elshabory in forum Delphi
    Replies: 5
    Last Post: 2013-01-07, 04:34 PM
  2. C#...ReadProcessMemory. ( Need Help)
    By pohkak in forum VB, .NET Framework
    Replies: 5
    Last Post: 2012-09-23, 02:36 PM
  3. Quick Question about Bot program?
    By Furiousgeorge in forum Aika Online
    Replies: 3
    Last Post: 2010-11-29, 04:18 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •