Tao.Platform.Windows SDK Documentation

Kernel.MEMORYSTATUS Structure

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

The GlobalMemoryStatus function stores information in a MEMORYSTATUS structure.

For a list of all members of this type, see Kernel.MEMORYSTATUS Members.

System.Object
   System.ValueType
      Tao.Platform.Windows.Kernel.MEMORYSTATUS

[Visual Basic]
Public Structure Kernel.MEMORYSTATUS
[C#]
public struct Kernel.MEMORYSTATUS

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

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 function.

Requirements

Namespace: Tao.Platform.Windows

Assembly: Tao.Platform.Windows (in Tao.Platform.Windows.dll)

See Also

Kernel.MEMORYSTATUS Members | Tao.Platform.Windows Namespace | GlobalMemoryStatus