How easy is it in C to determine where in memory a certain application is running?
How easy is it in C to determine where in memory a certain application is running?
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.