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. C / C++ / MFC
  4. Memory access from another app?

Memory access from another app?

Scheduled Pinned Locked Moved C / C++ / MFC
performancetutorialquestion
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.
  • A Offline
    A Offline
    Andrew Stampor
    wrote on last edited by
    #1

    I am trying to access a specific area of memory in another application and was wondering if anyone had any ideas on how to make that happen.

    D A 2 Replies Last reply
    0
    • A Andrew Stampor

      I am trying to access a specific area of memory in another application and was wondering if anyone had any ideas on how to make that happen.

      D Offline
      D Offline
      Dominik Reichl
      wrote on last edited by
      #2

      Have a look at IPC techniques: http://www.codeproject.com/threads/#Inter%2DProcess+Communication :) Dominik


      _outp(0x64, 0xAD); and __asm mov al, 0xAD __asm out 0x64, al do the same... but what do they do?? ;) (doesn't work on NT)

      1 Reply Last reply
      0
      • A Andrew Stampor

        I am trying to access a specific area of memory in another application and was wondering if anyone had any ideas on how to make that happen.

        A Offline
        A Offline
        Anonymous
        wrote on last edited by
        #3

        One possible way is to access it directly, all you need to know is the address in another process that you want access/modify: 1. If necessary enable SeDebugPrivelege for your process. a. OpenProcessToken (..,TOKEN_ADJUST_PRIVILEGES|TOKEN_QUERY ) b.LookupPrivilegeValue c. AdjustTokenPrivileges, CloseToken 2. OpenProcess with desired access (PROCESS_VM_READ .. ) 3.ReadProcessMemory/WriteProcessMemory HTH, Edward

        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