Author: Carmelo Calzerano
Date: 04:25:34 10/18/02
Go up one level in this thread
On October 18, 2002 at 06:54:58, Gian-Carlo Pascutto wrote:
>
>Another question: Is it possible the determine the actual amount of
>physical RAM that is installed in the machine?
I assume you mean under Windows. GlobalMemoryStatus() should give you
all the info you need:
void GlobalMemoryStatus(LPMEMORYSTATUS lpBuffer);
The returned buffer is defined this way:
typedef struct _MEMORYSTATUS {
DWORD dwLength;
DWORD dwMemoryLoad;
SIZE_T dwTotalPhys;
SIZE_T dwAvailPhys;
SIZE_T dwTotalPageFile;
SIZE_T dwAvailPageFile;
SIZE_T dwTotalVirtual;
SIZE_T dwAvailVirtual;
} MEMORYSTATUS, *LPMEMORYSTATUS;
HTH
Bye,
Carmelo
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.