Thread: how do you get the min and max address space of a process ,

  1. #1
    Registered User
    Join Date
    Nov 2002
    Posts
    319

    how do you get the min and max address space of a process ,

    i am using ReadProcessMemory to look for a string in a process , trouble is i dont know where to start and end from i just have

    for (dwBaseAddress = 0; dwBaseAddress < 999999999; dwBaseAddress++)

    can anyone help me out

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Maybe read the "related topics" section of the manual page for ReadProcessMemory ?
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Nov 2002
    Posts
    319
    i did , i couldent see anything to say where the start and end address is for the process

  4. #4
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    GetSystemInfo will give you the range and then one typically walks through the allocation blocks using VirtualQueryEx (only reading the committed blocks).

    Performing a hex dump of another process's memory

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. need help finding the max and min of a 2d array
    By finalreign in forum C Programming
    Replies: 6
    Last Post: 04-29-2009, 11:39 AM
  2. Max Min Problem
    By smithc2005 in forum C Programming
    Replies: 7
    Last Post: 10-22-2008, 10:38 AM
  3. Ranged numbers
    By Desolation in forum Game Programming
    Replies: 8
    Last Post: 07-25-2006, 10:02 PM
  4. Variable Min and Max Program
    By EdanD in forum C Programming
    Replies: 8
    Last Post: 06-30-2004, 07:48 PM
  5. Double output!
    By Spurnout in forum C++ Programming
    Replies: 3
    Last Post: 11-02-2002, 03:35 AM