Brian McGrew wrote:
d3d1 wrote:
Hi All,
If 2 programs running at same time, is it possible one of those applications
access the other's recourses such as memory data?
On Windows, yes. Look at the ReadProcessMemory / WriteProcessMemory
APIs. This is not a GCC question, however.
-----
If there's a way to do this on Linux using gcc-4.1.1 and kernel-2.6.23++ I
would love to hear it! Persaonlly, I know it's not a gcc question, but
you's guys are the guru's and it would help me out tremendously!!!
A quick Google for "linux read process memory" turned up hundreds of
winners. The consensus seems to be to use ptrace():
http://www.linuxmanpages.com/man2/ptrace.2.php
Cheers,
Nicholas Sherlock