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
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 SourceAvailPageFile
Size of available memory to commit, in bytes.
Declaration
public int AvailPageFile
Field Value
| Type | Description |
|---|---|
| System.Int32 |
AvailPhys
Size of physical memory available, in bytes.
Declaration
public int AvailPhys
Field Value
| Type | Description |
|---|---|
| System.Int32 |
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 |
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 |
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 |
TotalPageFile
Size of the committed memory limit, in bytes.
Declaration
public int TotalPageFile
Field Value
| Type | Description |
|---|---|
| System.Int32 |
TotalPhys
Total size of physical memory, in bytes.
Declaration
public int TotalPhys
Field Value
| Type | Description |
|---|---|
| System.Int32 |
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 |