FreeBASIC  0.91.0
sys_fmem.c
Go to the documentation of this file.
1 /* fre() function */
2 
3 #include "../fb.h"
4 #include <windows.h>
5 
6 FBCALL size_t fb_GetMemAvail( int mode )
7 {
8  MEMORYSTATUS ms;
9  ms.dwLength = sizeof( MEMORYSTATUS );
10  GlobalMemoryStatus( &ms );
11  return ms.dwAvailPhys;
12 }