Posted: Fri Aug 02, 2002 3:28 am
Restored from previous forum. Originally posted by plopzz.
Hi all
I have made a trainer with delphi ... But delphi make big .EXE ...
So i want to try with purebasic (who are amazing!)
for open the game and take the procid (not window handle!) i use that :
New(lpExecInfo);
lpExecInfo^.cbSize:= Sizeof(lpExecInfo^);
lpExecInfo^.fMask:= SEE_MASK_DOENVSUBST or SEE_MASK_NOCLOSEPROCESS;
lpExecInfo^.Wnd:= 0; //Handle; //Application.Handle;
lpExecInfo^.lpVerb:= 'open'#0;
lpExecInfo^.lpFile:= PChar(Edit1.Text);
lpExecInfo^.lpParameters:= #0;
lpExecInfo^.lpDirectory:= #0;
lpExecInfo^.nShow:= SW_SHOWNORMAL;
lpExecInfo^.hInstApp:= 0; //HInstance;
ProcID:= OpenProcess(PROCESS_ALL_ACCESS, False, lpExecInfo^.hProcess);
How i can translate that for purebasic ??
2nd question for memory writing :
i use :
WriteProcessMemory(ProcID, Pointer($0042919C), lpAllType, Sizeof(lpAllType^.Bit8), ReadNum);
(note the var ProcID! :p)
i hope purebasic are most fast for writing address than delphi
thanks
Hi all
I have made a trainer with delphi ... But delphi make big .EXE ...
So i want to try with purebasic (who are amazing!)
for open the game and take the procid (not window handle!) i use that :
New(lpExecInfo);
lpExecInfo^.cbSize:= Sizeof(lpExecInfo^);
lpExecInfo^.fMask:= SEE_MASK_DOENVSUBST or SEE_MASK_NOCLOSEPROCESS;
lpExecInfo^.Wnd:= 0; //Handle; //Application.Handle;
lpExecInfo^.lpVerb:= 'open'#0;
lpExecInfo^.lpFile:= PChar(Edit1.Text);
lpExecInfo^.lpParameters:= #0;
lpExecInfo^.lpDirectory:= #0;
lpExecInfo^.nShow:= SW_SHOWNORMAL;
lpExecInfo^.hInstApp:= 0; //HInstance;
ProcID:= OpenProcess(PROCESS_ALL_ACCESS, False, lpExecInfo^.hProcess);
How i can translate that for purebasic ??
2nd question for memory writing :
i use :
WriteProcessMemory(ProcID, Pointer($0042919C), lpAllType, Sizeof(lpAllType^.Bit8), ReadNum);
(note the var ProcID! :p)
i hope purebasic are most fast for writing address than delphi
thanks