You call also use
MEMORYSTATUSEX stat;
stat.dwLength = sizeof( MEMORYSTATUSEX ); //You must allways call this before calling GlobalMemoryStatusEx
GlobalMemoryStatusEx( &stat );
This is not always garanteed to give you the type of information you want because on different operating system the amount of virtual memory may differ, because of harddisk size and use.
Main Topics
Browse All Topics





by: n8shadowPosted on 2003-10-09 at 01:48:51ID: 9519162
MEMORYSTATUS stat;
library/de fault.asp? url=/libra ry/ en-us/m emory/base /globalmem orystatus. asp
GlobalMemoryStatus (&stat);
The GlobalMemoryStatus function obtains information about the system's current usage of both physical and virtual memory.
http://msdn.microsoft.com/