How to run a process from an other probgram.
Posted: Sat Apr 23, 2005 1:13 am
How can i run a process from an other program? I have the memory adress where the process is starting, but when i try to CallFuntionFast($adress) it, i get an acces vioalation error.
i try this:
any idea pls? 
Holdláng
i try this:
Code: Select all
Procedure VirtualProtectExMY(hwnd, adress, size.l)
CallFunction (#PROCESS32LIB, "VirtualProtectEx", hwnd, adress, size.l, 128, @OrigMode)
EndProcedure
pHandle = OpenProcess_(#PROCESS_ALL_ACCESS, #False, pid)
ReadProcessMemory_(pHandle, $40107D,lives,1,0)
PrintN("lives:" + Hex(Asc(lives))) ;It works i get the firs byte of the process (push....)
VirtualProtectExMY(pHandle, $40107D, 24) ;I try to set read,write,exec access to the process in the other program
CallFunctionFast($40107D) ;and here is where it dies....

Holdláng