Click to See Complete Forum and Search --> : getting memory size


Alpha Vijayan
April 28th, 2004, 01:46 AM
#include<sys/sysi86.h>
mem=sysi86(SI86MEM)
This is giving the page size of mem. of 86 micropocessor
Do u know the s/m call to get the physical,virtual memory size and the page size no matter whatever be the processor/OS?

ovidiucucu
April 28th, 2004, 10:57 AM
Originally posted by Alpha Vijayan
#include<sys/sysi86.h>
mem=sysi86(SI86MEM)
This is giving the page size of mem. of 86 micropocessor
Do u know the s/m call to get the physical,virtual memory size and the page size no matter whatever be the processor/OS?
You mean "no matter what Windows version"?
Try GlobalMemoryStatus.

Alpha Vijayan
May 5th, 2004, 02:42 AM
That particular s/m call is used for unix.
I just want to know abt the s/m call used to get the page size of mem for the diff processors/OS