Page 1 of 1
How to Read Data From Memory Address of Seperate Program?
Posted: January 20th, 2006, 8:27 am
by 0mnigeek
I am trying to develop a plugin that will take the channel from the tuner software I use (which I know the memory address of) and use it to output the current channel to lcd screen. Does anyone know how to find the value of a memory address for a given proccess name? I am using C to code this but any language code would be appreciated as it is a simple code I will be able to modify for any language.
Posted: March 8th, 2006, 11:04 pm
by limbo
Posted: March 8th, 2006, 11:23 pm
by ReverseEngineered
There is a caveat to all of this: you can't just access another program's memory space. This is exactly what an Access Violation or General Protection Fault is: trying to access memory that doesn't belong to you.
Now, there is a way to work around this. Windows provides "shared memory", which is memory that has been set aside, with a name attached to it, that several programs can use simultaneously. If your tuner software sets up and maintains this shared memory space, then you should be able to read from it using any language, just by calling the appropriate functions (which I don't remember off the top of my head). It's a relatively simple process to do this.
So, first off you'll have to find out if your tuner provides this (most won't), and if so, how it is to be used. If it doesn't provide this, you are most likely out of luck.