reading a byte from a remote process is ok but got an access violation when
trying to write it back. hp (the remote process) was opened with
PROCESS_ALL_ACCESS. image_base was obtained from MapAndLoad.
ReadProcessMemory(hp,(LPCVOID)image_base,&byte,1,&dwRead); // OK
WriteProcessMemory(hp,(LPVOID)image_base,&byte,1,&dwWrite); // failed with
ERROR_NOACCESS (Invalid access to memory location)
let me tell you want i want to do:
i want to run the code of process, say P1, in the context of another
process, say P2. the way i am trying to do this is:
1. createprocess P1, CREATE_SUSPEND
2. createprocess P2, CREATE_SUSPEND
3. copy P1's process address space to P2's process addr space
4. resumethread (p2.mainthread)
any idea whether this is possible?
thanks...
"oknp" <ok...@hotmail.com> wrote in message
news:9b8aei$kg...@imsp212.netvigator.com...
Speaking only for myself,
Joe Durusau
navin
"oknp" <ok...@hotmail.com> wrote in message
news:9b8cli$il...@imsp212.netvigator.com...