Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. readprocessmemory to read contents of specific (other process) memory address.

readprocessmemory to read contents of specific (other process) memory address.

Scheduled Pinned Locked Moved Visual Basic
csharpalgorithmsperformancehelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Arokh
    wrote on last edited by
    #1

    I have been searching for days, but I just can't seem to make heads or tails of anything google brings up. Here's my situation, I need a quick and dirty program that can read the contents (string) of a specific memory address of a separately running process. I have it to the point where I can find the window I need via hwnd/findwindow, I can associate the processID, but everytime I dive into readprocessmemory I just can't make it work. Any help is greatly appreciated. Thanks! PS - VB6, not VB.net -Brian Nelson (Arokh)

    D 1 Reply Last reply
    0
    • A Arokh

      I have been searching for days, but I just can't seem to make heads or tails of anything google brings up. Here's my situation, I need a quick and dirty program that can read the contents (string) of a specific memory address of a separately running process. I have it to the point where I can find the window I need via hwnd/findwindow, I can associate the processID, but everytime I dive into readprocessmemory I just can't make it work. Any help is greatly appreciated. Thanks! PS - VB6, not VB.net -Brian Nelson (Arokh)

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      The first thing you have to to is make sure that the process handle you get (NOT the same as the processID!) has PROCESS_VM_READ rights. You can do that with a call to GetSecurityInfo. The docs for GetSecurityInfo are here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/security/security/getsecurityinfo.asp[^] RageInTheMachine9532

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups