MEMORYSTATUS

typedef struct _MEMORYSTATUS { /* mst */

DWORD dwLength;

DWORD dwMemoryLoad;

DWORD dwTotalPhys;

DWORD dwAvailPhys;

DWORD dwTotalPageFile;

DWORD dwAvailPageFile;

DWORD dwTotalVirtual;

DWORD dwAvailVirtual;

} MEMORYSTATUS, *LPMEMORYSTATUS;

The MEMORYSTATUS data structure contains information about current memory availability.

Members

dwLength

Size of this structure. Caller should set this field prior to calling this function.

dwMemoryLoad

Number between 0 and 100 that gives a general idea of how busy memory is, where 0 is not busy at all, and 100 is extremely busy.

dwTotalPhys

Total number of bytes of physical memory.

dwAvailPhys

Number of bytes of available physical memory (basically the number of pages on the free page list).

dwTotalPageFile

Total number of bytes that can be stored in the paging file.

dwAvailPageFile

Number of bytes that are currently unused in the paging file.

dwTotalVirtual

Total number of bytes that can be described in the user mode portion of the virtual address space.

dwAvailVirtual

Number of bytes that are currently unused in the user mode portion of the virtual address space.