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. how can I read a value at a specific address?

how can I read a value at a specific address?

Scheduled Pinned Locked Moved Visual Basic
question
3 Posts 3 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.
  • B Offline
    B Offline
    Big Ralph
    wrote on last edited by
    #1

    I need to read the value that is present at a specific address. any Ideas? thx in advance

    BiG RaLpH

    D L 2 Replies Last reply
    0
    • B Big Ralph

      I need to read the value that is present at a specific address. any Ideas? thx in advance

      BiG RaLpH

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

      You can't just read any old address in the machine. Windows memory and process protections won't let you. When an application runs, it thinks it's the only application in the entire system. Each process get's it's own 2GB address space, so theres lots of room to play, even if the machine doesn't actually have 2GB of RAM in it. If each process has its own address space, each process can be sitting in the same range of addresses. So how are you going to get one process to read another processes address space?? You have to Open the other process and read it, kind of like a file. But, not any user can open another process. You have to have admin rights to do this. For a C# example (can be converted to VB.NET), check out this article[^].

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007

      1 Reply Last reply
      0
      • B Big Ralph

        I need to read the value that is present at a specific address. any Ideas? thx in advance

        BiG RaLpH

        L Offline
        L Offline
        LloydA111
        wrote on last edited by
        #3

        I agree with Dave. I suppose if it is too difficult to do something like that in VB.Net, you could write something in the Assembly language?

        Lloyd J. Atkinson "Logic will get you from A to B, but imagination will take you everywhere" -ALbert Einstein

        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