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

This is a discussion on how do you get the min and max address space of a process , within the Windows Programming forums, part of the Platform Specific Boards category; i am using ReadProcessMemory to look for a string in a process , trouble is i dont know where to ...

  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
    32,848
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  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, 12:39 PM
  2. Max Min Problem
    By smithc2005 in forum C Programming
    Replies: 7
    Last Post: 10-22-2008, 11:38 AM
  3. Ranged numbers
    By Desolation in forum Game Programming
    Replies: 8
    Last Post: 07-25-2006, 11:02 PM
  4. Variable Min and Max Program
    By EdanD in forum C Programming
    Replies: 8
    Last Post: 06-30-2004, 08:48 PM
  5. Double output!
    By Spurnout in forum C++ Programming
    Replies: 3
    Last Post: 11-02-2002, 03:35 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21