function MemInfo :Integer; var Mem: TMEMORYSTATUS; begin Mem.dwLength := Sizeof(TMEMORYSTATUS); GlobalMemoryStatus(Mem); result := Mem.dwAvailPhys div 1024; end;
var MS: TMemoryStatus; begin GlobalMemoryStatus(MS); PhysMem.Caption := FormatFloat('#,###" KB"', MS.dwTotalPhys / 1024); FreeRes.Caption := Format('%d %%', [MS.dwMemoryLoad]); end;
var
Mem: TMEMORYSTATUS;
begin
Mem.dwLength := Sizeof(TMEMORYSTATUS);
GlobalMemoryStatus(Mem);
result := Mem.dwAvailPhys div 1024;
end;
MS: TMemoryStatus;
begin
GlobalMemoryStatus(MS);
PhysMem.Caption := FormatFloat('#,###" KB"', MS.dwTotalPhys / 1024);
FreeRes.Caption := Format('%d %%', [MS.dwMemoryLoad]);
end;