hello,
i have some little problem here.
sorry my newbie question..
regard,
i have some little problem here.
Code: Select all
how to make it writeable in T, because i remark isBadWritePtr is AccessViolation... that code for some game with hackshield protect.. but i think it's not kernelmode because i use old .exe can change in address T...
Procedure WMPos(T:pointer;Isi:array of byte;Jum:DWORD);
var i:byte;
oldprotection:cardinal;
begin
if IsBadWritePtr(T,jum)=false then
begin
// showmessage(inttohex(DWORD(T),4));
VirtualProtect(T,jum,PAGE_EXECUTE_READWRITE, OldProtection);
for i := 0 to jum-1 do
begin
pbyte(Dword(T)+i)^:=isi[i];
end;
VirtualProtect(T,jum,OldProtection, OldProtection);
end;
end;
sorry my newbie question..
regard,