M
MicroZeng
Unregistered / Unconfirmed
GUEST, unregistred user!
我要做一个如FPE类的东西,请问怎么做?有谁作过类似的东西?
ReadProcessMemory,WriteProcessMemory两个怎么用?
下面程序错在那里,Windows98平台;
procedure TForm1.Button1Click(Sender: TObject);
var i : Cardinal;
Address : ^Cardinal;
Buffer : ^String;
NumRead : Cardinal;
begin
New(Address);
New(Buffer);
for i := StrToInt(Edit1.Text) to StrToInt(Edit2.Text) do
begin
if not DebugActiveProcess(DEBUG_ONLY_THIS_PROCESS) then
begin
ShowMessage('Can not DEBUG_ONLY_THIS_PROCESS');
Exit;
end;
Address^ := i;
if not ReadProcessMemory(PROCESS_VM_READ, Address, Buffer, 20, NumRead ) then Break;
RichEdit1.Lines.Add(Buffer^ + '---'+ IntToStr(i)+'---'+ IntToStr(NumREad));
end;
End;
ReadProcessMemory,WriteProcessMemory两个怎么用?
下面程序错在那里,Windows98平台;
procedure TForm1.Button1Click(Sender: TObject);
var i : Cardinal;
Address : ^Cardinal;
Buffer : ^String;
NumRead : Cardinal;
begin
New(Address);
New(Buffer);
for i := StrToInt(Edit1.Text) to StrToInt(Edit2.Text) do
begin
if not DebugActiveProcess(DEBUG_ONLY_THIS_PROCESS) then
begin
ShowMessage('Can not DEBUG_ONLY_THIS_PROCESS');
Exit;
end;
Address^ := i;
if not ReadProcessMemory(PROCESS_VM_READ, Address, Buffer, 20, NumRead ) then Break;
RichEdit1.Lines.Add(Buffer^ + '---'+ IntToStr(i)+'---'+ IntToStr(NumREad));
end;
End;