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