Reading Running Process

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • patelj27b@gmail.com

    #1

    Reading Running Process

    Hey There,
    I am trying to read the memory of the text region of a running
    process. I can open a process and read the data in the process using
    OpenProcess and ReadProcessMemo ry. I'm not sure however how to detect
    which data I am getting corresponds to the "text region" and not the
    other regions, like the stack. Does the type "MEM_IMAGE" defined in the
    "Type" parameter of the MEMORY_BASIC_IN FORMATION structure define the
    read in memory block as part of the "text region"? Any insights would
    be greatly appreciated.


    -Jay

  • Puppet_Sock

    #2
    Re: Reading Running Process

    patelj27b@gmail .com wrote:[color=blue]
    > Hey There,
    > I am trying to read the memory of the text region of a running
    > process. I can open a process and read the data in the process using
    > OpenProcess and ReadProcessMemo ry. I'm not sure however how to detect
    > which data I am getting corresponds to the "text region" and not the
    > other regions, like the stack. Does the type "MEM_IMAGE" defined in the
    > "Type" parameter of the MEMORY_BASIC_IN FORMATION structure define the
    > read in memory block as part of the "text region"? Any insights would
    > be greatly appreciated.[/color]

    Your post appears to be off topic in this news group. Here we only talk
    about standard language issues. You seem to be talking about some
    particular OS and how to obtain memory arangement specific stuff.
    While some of us here may know that, we don't know how to do it
    in standard C++.

    You will get better help if you find a news group that is on topic for
    your post. You could start by doing a search at groups.google.c om
    to find that news group. Most probably you will find a group that
    has in its name your compiler or operating system. Possibly if
    you start with the search you can find the info has already been
    posted by somebody else.
    Socks

    Comment

    • ehilah

      #3
      Re: Reading Running Process

      in win32 look at psapi .... quite simple to use ..... but OT here I think
      patelj27b@gmail .com ha scritto:[color=blue]
      > Hey There,
      > I am trying to read the memory of the text region of a running
      > process. I can open a process and read the data in the process using
      > OpenProcess and ReadProcessMemo ry. I'm not sure however how to detect
      > which data I am getting corresponds to the "text region" and not the
      > other regions, like the stack. Does the type "MEM_IMAGE" defined in the
      > "Type" parameter of the MEMORY_BASIC_IN FORMATION structure define the
      > read in memory block as part of the "text region"? Any insights would
      > be greatly appreciated.
      >
      >
      > -Jay
      >[/color]

      Comment

      Working...