christianlott1
8/16/2011 8:54:00 PM
If I use CreateFileMapping I must 'own' both applications. They share
a globally allocated chunk of memory.
I want to create a pointer into another process address space and use
this pointer as the 'File Map'. In other words, the other application
just reads and writes to it's memory as always, unchanged. I can do
this with ReadProcessMemory and WriteProcessMemory using the process
handle and an offset into it's process memory. I'd rather just create
a mapping so I don't need to constantly update the data (with a
timer).
Is there any way to do this? I was hoping CreateFileMapping would
accept my Process ID instead of File Handle. Maybe there is a way to
turn a Process ID + offset and range into a File Handle I can pass to
CreateFileMapping / CreateFile ie ...
Can I use CreateFile ( or some other method ) to return a handle to a
separate process address offset+range?
Thanks