GetMemoryStatus

Declaration: GetMemoryStatus (var TotalMem, AvailableMem: Int64): boolean;
The function GetMemoryStatus retrieves the size of the total physical memory as well as the currently available memory (in Bytes). The returned parameters TotalMem and AvailableMem are only valid if the function returns value is TRUE.