Show / Hide Table of Contents

Struct Kernel.MEMORYSTATUS

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

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

Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: CADability
Assembly: CADability.dll
Syntax
public struct MEMORYSTATUS
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 Kernel.MEMORYSTATUS) function.

Fields

| Improve this Doc View Source

AvailPageFile

Size of available memory to commit, in bytes.

Declaration
public int AvailPageFile
Field Value
Type Description
System.Int32
| Improve this Doc View Source

AvailPhys

Size of physical memory available, in bytes.

Declaration
public int AvailPhys
Field Value
Type Description
System.Int32
| Improve this Doc View Source

AvailVirtual

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

Declaration
public int AvailVirtual
Field Value
Type Description
System.Int32
| Improve this Doc View Source

Length

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

Declaration
public int Length
Field Value
Type Description
System.Int32
| Improve this Doc View Source

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.

Declaration
public int MemoryLoad
Field Value
Type Description
System.Int32
| Improve this Doc View Source

TotalPageFile

Size of the committed memory limit, in bytes.

Declaration
public int TotalPageFile
Field Value
Type Description
System.Int32
| Improve this Doc View Source

TotalPhys

Total size of physical memory, in bytes.

Declaration
public int TotalPhys
Field Value
Type Description
System.Int32
| Improve this Doc View Source

TotalVirtual

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

Declaration
public int TotalVirtual
Field Value
Type Description
System.Int32

See Also

GlobalMemoryStatus(out Kernel.MEMORYSTATUS)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX