MEMORYSTATUSEX structure
来源:互联网 发布:mac打字不出现选择框 编辑:程序博客网 时间:2024/06/01 19:41
MEMORYSTATUSEX structure
Contains information about the current state of both physical and virtual memory, including extended memory. TheGlobalMemoryStatusEx function stores information in this structure.
typedef struct _MEMORYSTATUSEX { DWORD dwLength; DWORD dwMemoryLoad; DWORDLONG ullTotalPhys; DWORDLONG ullAvailPhys; DWORDLONG ullTotalPageFile; DWORDLONG ullAvailPageFile; DWORDLONG ullTotalVirtual; DWORDLONG ullAvailVirtual; DWORDLONG ullAvailExtendedVirtual;} MEMORYSTATUSEX, *LPMEMORYSTATUSEX;
Members
- dwLength
The size of the structure, in bytes. You must set this member before calling GlobalMemoryStatusEx.
- dwMemoryLoad
A number between 0 and 100 that specifies the approximate percentage of physical memory that is in use (0 indicates no memory use and 100 indicates full memory use).
- ullTotalPhys
The amount of actual physical memory, in bytes.
- ullAvailPhys
The amount of physical memory currently available, in bytes. This is the amount of physical memory that can be immediately reused without having to write its contents to disk first. It is the sum of the size of the standby, free, and zero lists.
- ullTotalPageFile
The current committed memory limit for the system or the current process, whichever is smaller, in bytes. To get the system-wide committed memory limit, callGetPerformanceInfo.
- ullAvailPageFile
The maximum amount of memory the current process can commit, in bytes. This value is equal to or smaller than the system-wide available commit value. To calculate the system-wide available commit value, callGetPerformanceInfo and subtract the value of CommitTotal from the value of CommitLimit.
- ullTotalVirtual
The size of the user-mode portion of the virtual address space of the calling process, in bytes. This value depends on the type of process, the type of processor, and the configuration of the operating system. For example, this value is approximately 2 GB for most 32-bit processes on an x86 processor and approximately 3 GB for 32-bit processes that are large address aware running on a system with4-gigabyte tuning enabled.
- ullAvailVirtual
The amount of unreserved and uncommitted memory currently in the user-mode portion of the virtual address space of the calling process, in bytes.
- ullAvailExtendedVirtual
Reserved. This value is always 0.
Remarks
MEMORYSTATUSEX reflects the state of memory at the time of the call. It also 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.
The physical memory sizes returned include the memory from all nodes.
Examples
For an example, see the GlobalMemoryStatusEx function.
Requirements
Minimum supported client
Windows XP [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
- WinBase.h (include Windows.h)
- MEMORYSTATUSEX structure
- structure
- 结构 Structure
- QAForum Structure
- id3v2_4_0 structure
- File Structure
- Data Structure
- Structure Packing
- Controlfile Structure
- MPEGLAYER3WAVEFORMAT Structure
- WIN32_FIND_DATA Structure
- NMCUSTOMDRAW Structure
- Structure Packing
- Silverlight Structure
- Theme Structure
- MCI_PLAY_PARMS Structure
- MCI_STATUS_PARMS Structure
- WNDCLASSEX Structure
- Win10开启IIS
- Java NIO系列教程(二) Channel
- 关于CSS中盒子模型的一些特殊现象
- 利用PreparedStatement处理登录、注册、转账等功能
- 我的H5生涯
- MEMORYSTATUSEX structure
- python-django学习
- 阿里云免费DV SSL类型申请与部署
- 知道创宇研发技能表v3.0
- 判断网络
- 关于C++类中*this指针的理解
- 继承
- barrier 和 smp_mb
- ECSHOP如何解决Deprecated: preg_replace()报错