Click to See Complete Forum and Search --> : Number of phsyical pages


kzseattle
October 5th, 2005, 11:40 PM
I am trying to retrieve number of physical pages in the system. Apparently, GetSystemInfo doesn't return that information. ZwQuerySystemInformation requires loading ntdll.

Alternatively, I could get the size of physical memory and compute number of physical pages by knowing page size which is returned by GetSystemInfo. What function can I used to get the size of physical memory. Again, GetSystemInfo doesn't give us that information.

Marc G
October 6th, 2005, 03:43 AM
GlobalMemoryStatusEx (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/memory/base/globalmemorystatusex.asp)