Entwickler-Ecke

Windows API - Memory Grösse


Rooof - Mi 26.02.03 11:41
Titel: Memory Grösse
Hallo zusammen

Ich habe folgendes Problem:
Ich möchte die RAM-Grösse meines PC's im Programm auslesen und gebruachen können. Wie mache ich das ???

Kann mir bitte jemand weiterhelfen....

THX Greets RoooF


Delete - Mi 26.02.03 12:59


Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
function GetTotalMemory : Integer;;
var
   memory : TMEMORYSTATUS;
begin
  memory.dwLength := sizeof(memory);
  GlobalMemoryStatus(memory);
  result := memory.dwTotalPhys;
end;


Rooof - Mi 26.02.03 13:09

Besten Dank...

War genau das was ich gesucht hatte.

THX
RoooF