MEMORYSTATUS Structure

Type MEMORYSTATUS
  dwLength As Long
  dwMemoryLoad As Long
  dwTotalPhys As Long
  dwAvailPhys As Long
  dwTotalPageFile As Long
  dwAvailPageFile As Long
  dwTotalVirtual As Long
  dwAvailVirtual As Long
End Type

Description & Usage

The MEMORYSTATUS structure holds information about the computer's memory. The structure stores the amounts of total and available physical memory and virtual memory.

Visual Basic-Specific Issues

None.

Data Members

dwLength
The size in bytes of the structure.
dwMemoryLoad
Windows 95, 98, NT: The percentage of approximately the last 1000 pages of physical memory that is in use. Windows 2000: The percentage of total physical memory in use.
dwTotalPhys
The number of bytes of total physical memory.
dwAvailPhys
The number of bytes of available physical memory.
dwTotalPageFile
The largest possible size, in bytes, of the paging file. This is not necessarily the current size of the paging file.
dwAvailPageFile
The amount of space, in bytes, currently available in the paging file.
dwTotalVirtual
The number of bytes of total virtual memory.
dwAvailVirtual
The number of bytes of available virtual memory.

Used By

GlobalMemoryStatus

Back to the Structure list.
Back to the Reference section.


Last Modified: March 19, 2000
This page is copyright © 2000 Paul Kuliniewicz. Copyright Information Revised October 29, 2000
Go back to the Windows API Guide home page.
E-mail: vbapi@vbapi.com Send Encrypted E-Mail
This page is at http://www.vbapi.com/ref/m/memorystatus.html