Table of Contents

Struct Kernel.MEMORYSTATUS

Namespace
CADability
Assembly
CADability.dll

The MEMORYSTATUS structure contains information about the current state of both physical and virtual memory.

The GlobalMemoryStatus(out MEMORYSTATUS) function stores information in a MEMORYSTATUS structure.

public struct Kernel.MEMORYSTATUS
Inherited Members

Remarks

MEMORYSTATUS reflects the state of memory at the time of the call. It reflects the size of the paging file at that time. The operating system can enlarge the paging file up to the maximum size set by the administrator.

On computers with more than 4 GB of memory, the MEMORYSTATUS structure can return incorrect information. Windows reports a value of -1 to indicate an overflow, while Windows NT reports a value that is the real amount of memory, modulo 4 GB. If your application is at risk for this behavior, use the GlobalMemoryStatusEx function instead of the GlobalMemoryStatus(out MEMORYSTATUS) function.

Fields

AvailPageFile

Size of available memory to commit, in bytes.

public int AvailPageFile

Field Value

int

AvailPhys

Size of physical memory available, in bytes.

public int AvailPhys

Field Value

int

AvailVirtual

Size of unreserved and uncommitted memory in the user mode portion of the virtual address space of the calling process, in bytes.

public int AvailVirtual

Field Value

int

Length

Size of the MEMORYSTATUS data structure, in bytes. You do not need to set this member before calling the GlobalMemoryStatus(out MEMORYSTATUS) function; the function sets it.

public int Length

Field Value

int

MemoryLoad

Approximate percentage of total physical memory that is in use.

Windows NT: Percentage of approximately the last 1000 pages of physical memory that is in use.

public int MemoryLoad

Field Value

int

TotalPageFile

Size of the committed memory limit, in bytes.

public int TotalPageFile

Field Value

int

TotalPhys

Total size of physical memory, in bytes.

public int TotalPhys

Field Value

int

TotalVirtual

Total size of the user mode portion of the virtual address space of the calling process, in bytes.

public int TotalVirtual

Field Value

int

See Also