Einzelnen Beitrag anzeigen

Lord Shadow

Registriert seit: 10. Okt 2007
15 Beiträge
 
#3

Re: Problem mit ProcessMemory

  Alt 21. Feb 2008, 12:40
Delphi-Quellcode:
  

function BufferToString (Byt : Integer) : String;
begin
if (((Byt>31) and (Byt<127))) then result:=CHR(Byt)
else result:='';
end;


...
  getsysteminfo(si);
  Count:=cardinal(si.lpMinimumApplicationAddress);
  while Count<cardinal(si.lpMaximumApplicationAddress) do begin
    virtualqueryex(XHwnd,pointer(Count),mbi,sizeof(mbi));
    if ((mbi.State and mem_commit)>0) then
      Content:=Content+ToString(integer(mbi.BaseAddress));
    inc(Count,mbi.regionsize);
  end;
...
Auf dem Handle liegt der richtige ProcessHandle. Aber dieser Algorithmus gibt trotzdem nichts zurück
  Mit Zitat antworten Zitat