1
16cy
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TForm2.Button8Click(Sender: TObject);<br>var<br>vq,totalcommit,paddr:dword;<br>xy:array[0..4] of char;<br>meminfo:_MEMORY_BASIC_INFORMATION;<br>sysinfo:_SYSTEM_INFO;<br>begin<br>totalcommit:=0;<br>paddr:=0;<br>vq:=VirtualQueryEx(pid,@paddr,meminfo,sizeof(meminfo));<br><br>while vq=sizeof(meminfo) do<br>begin<br> if meminfo.state=MEM_COMMIT then<br> begin<br> [red]ReadProcessMemory(pid,meminfo.BaseAddress,@xy,sizeof(xy),0);[/red]<br> vq:=VirtualQueryEx(pid,@paddr,meminfo,sizeof(meminfo));<br> end<br> else<br> begin<br> paddr:=paddr+ mi.RegionSize;<br> vq:=VirtualQueryEx(pid,@paddr,meminfo,sizeof(meminfo));<br> end;<br>end;<br>红色部分老是通不过,说形参实参不匹配!!!!<br>我急死了,搞了一个上午也没搞好,晕。。。。。