Autor Beitrag
mathias
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 58
Erhaltene Danke: 3



BeitragVerfasst: Mo 24.06.02 22:11 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
procedure TForm1.Timer1Timer(Sender: TObject);
var
  Memory: TMemoryStatus;
begin
  Memory.dwLength := Sizeof (Memory);

  GlobalMemoryStatus(Memory);
  Canvas.Font.Name := 'terminal';
  Canvas.Font.Height := 16;
  Canvas.TextOut(1010'Speicher:         ' +
    IntToStr(Memory.dwTotalPhys div 1048576) + ' MByte');
  Canvas.TextOut(1030'Freier Speicher:  ' +
    IntToStr(Memory.dwAvailPhys div 1048576) + ' MByte');
  Canvas.TextOut(1050'Groesse PageFile: ' +
    IntToStr(Memory.dwTotalPageFile div 1048576) + ' MByte');
  Canvas.TextOut(1070'Freier PageFile:  ' +
    IntToStr(Memory.dwAvailPageFile div 1048576) + ' MByte');
end;


Zuletzt bearbeitet von mathias am Mo 24.06.02 22:42, insgesamt 1-mal bearbeitet