Thread: Detecting where an application is running in memory...

  1. #1
    Registered User CompiledMonkey's Avatar
    Join Date
    Feb 2002
    Richmond, VA

    Detecting where an application is running in memory...

    How easy is it in C to determine where in memory a certain application is running?

  2. #2
    Registered User
    Join Date
    Jun 2003
    From your .net reference in your signature, I assume your using windows, and so in which case, it is not possible, as every application thinks it has complete control over the entire memory, and, for all effects and purposes, it has. Most applications start at the standard 0x401000, but there are others (and the start address can be changed by compiler options).

    For more information, you'll need to read up on the virtual memory map.

    HOWEVER, you can get a handle to a process by using OpenProcess.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Process memory space
    By barboris in forum C++ Programming
    Replies: 6
    Last Post: 04-25-2008, 11:35 PM
  2. running application from command prompt
    By l2u in forum C++ Programming
    Replies: 4
    Last Post: 04-01-2007, 04:24 AM
  3. Unix - memory leaks detecting.
    By SOUND in forum C++ Programming
    Replies: 3
    Last Post: 12-14-2002, 06:24 PM
  4. Memory handler
    By Dr. Bebop in forum C Programming
    Replies: 7
    Last Post: 09-15-2002, 04:14 PM
  5. running an application
    By 1976 in forum Windows Programming
    Replies: 1
    Last Post: 11-12-2001, 03:17 AM
Website Security Test