网站首页  词典首页

请输入您要查询的函数:

 

术语 globalmemorystatus
释义 GlobalMemoryStatus
语法:
C++
void WINAPI GlobalMemoryStatus(
__out LPMEMORYSTATUS lpBuffer
);
GlobalMemoryStatus函数
[GlobalMemoryStatus可以返回不正确的信息。使用GlobalMemoryStatusEx函数代替。 ]
检索信息系统的物理和虚拟内存的当前使用情况。
参数
lpBuffer [out]
一个 MEMORYSTATUS中结构的指针。该GlobalMemoryStatus函数存储有关当前内存可用性这个结构。
返回值
这个函数没有返回值。
备注
在超过4 GB的内存电脑,GlobalMemoryStatus函数可以返回不正确的信息,报告的值为-1表示溢出。为此,应用程序应该使用GlobalMemoryStatusEx函数代替。
在Intel x86超过2 GB的和小于4 GB的内存电脑,GlobalMemoryStatus函数总是返回在MEMORYSTATUS中结构dwTotalPhys成员2 GB的。同样,如果总可用内存2至4 GB的,该MEMORYSTATUS中的成员结构dwAvailPhys将向下调整为2 GB。如果可执行链接使用/ LARGEADDRESSAWARE链接器选项,然后GlobalMemoryStatus函数将返回的成员的物理内存正确的数额。
由GlobalMemoryStatus函数返回的信息是不稳定的。也不能保证这两个函数顺序调用将返回相同的信息。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinbase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
GlobalMemoryStatusEx
内存管理功能
内存性能信息
MEMORYSTATUS中
虚拟地址空间和物理存储
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==GlobalMemoryStatus Function
[GlobalMemoryStatus can return incorrect information. Use the GlobalMemoryStatusEx function instead. ]
Retrieves information about the system's current usage of both physical and virtual memory.
Syntax
C++
void WINAPI GlobalMemoryStatus(
__out LPMEMORYSTATUS lpBuffer
);
Parameters
lpBuffer [out]
A pointer to a MEMORYSTATUS structure. The GlobalMemoryStatus function stores information about current memory availability into this structure.
Return Value
This function does not return a value.
Remarks
On computers with more than 4 GB of memory, the GlobalMemoryStatus function can return incorrect information, reporting a value of –1 to indicate an overflow. For this reason, applications should use the GlobalMemoryStatusEx function instead.
On Intel x86 computers with more than 2 GB and less than 4 GB of memory, the GlobalMemoryStatus function will always return 2 GB in the dwTotalPhys member of the MEMORYSTATUS structure. Similarly, if the total available memory is between 2 and 4 GB, the dwAvailPhys member of the MEMORYSTATUS structure will be rounded down to 2 GB. If the executable is linked using the /LARGEADDRESSAWARE linker option, then the GlobalMemoryStatus function will return the correct amount of physical memory in both members.
The information returned by the GlobalMemoryStatus function is volatile. There is no guarantee that two sequential calls to this function will return the same information.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinbase.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
See Also
GlobalMemoryStatusEx
Memory Management Functions
Memory Performance Information
MEMORYSTATUS
Virtual Address Space and Physical Storage
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa366586(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 13:25:58