网站首页  词典首页

请输入您要查询的函数:

 

术语 getprocessworkingsetsizeex
释义 GetProcessWorkingSetSizeEx
语法:
C++
BOOL WINAPI GetProcessWorkingSetSizeEx(
__in HANDLE hProcess,
__out PSIZE_T lpMinimumWorkingSetSize,
__out PSIZE_T lpMaximumWorkingSetSize,
__out PDWORD Flags
);
GetProcessWorkingSetSizeEx功能
检索的最小和最大工作集大小指定的进程。
参数
hProcess [in]
一个句柄,的工作集大小将得到处理。句柄必须有PROCESS_QUERY_INFORMATION或PROCESS_QUERY_LIMITED_INFORMATION访问权限。有关更多信息,请参见过程的安全性和访问权限。
Windows Server 2003中:在处理必须有PROCESS_QUERY_INFORMATION访问权。
lpMinimumWorkingSetSize [out]
一个变量,它接收的最低工作集的指明工序大小,以字节的指针。虚拟内存管理器试图至少保持这一进程的内存居民每当进程处于活动状态。
lpMaximumWorkingSetSize [out]
一个变量,它接收的最大工作集的指明工序大小,以字节的指针。虚拟内存管理器试图将没有比这个过程中更多的内存居民每当进程处于活动状态时,内存供不应求。
旗[out]
这些标志控制的最小和最大工作集大小的执法行动。
ValueMeaning
QUOTA_LIMITS_HARDWS_MIN_DISABLE
0x00000002The工作集可以低于最低工作设置的限制,如果内存的要求是很高的。
QUOTA_LIMITS_HARDWS_MIN_ENABLE
0x00000001The工作集将不低于最低限额的工作集。
QUOTA_LIMITS_HARDWS_MAX_DISABLE
0x00000008The工作集可能会超过最大工作设置的限制,如果有丰富的存储器。
QUOTA_LIMITS_HARDWS_MAX_ENABLE
0x00000004The工作集将不会超过最高限额的工作集。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
“工作设置一个过程”是的内存页目前可以看到的物理RAM内存设置过程。这些网页的居民,可供应用程序使用,而不会触发页面错误。最小和最大工作集大小影响的虚拟内存分页行为的过程。
要求:
client最低支持Vista
最低支持serverWindows服务器2003
HeaderWinbase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
工艺工作集
过程
SetProcessWorkingSetSizeEx
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==GetProcessWorkingSetSizeEx Function
Retrieves the minimum and maximum working set sizes of the specified process.
Syntax
C++
BOOL WINAPI GetProcessWorkingSetSizeEx(
__in HANDLE hProcess,
__out PSIZE_T lpMinimumWorkingSetSize,
__out PSIZE_T lpMaximumWorkingSetSize,
__out PDWORD Flags
);
Parameters
hProcess [in]
A handle to the process whose working set sizes will be obtained. The handle must have the PROCESS_QUERY_INFORMATION or PROCESS_QUERY_LIMITED_INFORMATION access right. For more information, see Process Security and Access Rights .
Windows Server 2003: The handle must have the PROCESS_QUERY_INFORMATION access right.
lpMinimumWorkingSetSize [out]
A pointer to a variable that receives the minimum working set size of the specified process, in bytes. The virtual memory manager attempts to keep at least this much memory resident in the process whenever the process is active.
lpMaximumWorkingSetSize [out]
A pointer to a variable that receives the maximum working set size of the specified process, in bytes. The virtual memory manager attempts to keep no more than this much memory resident in the process whenever the process is active when memory is in short supply.
Flags [out]
The flags that control the enforcement of the minimum and maximum working set sizes.
ValueMeaning
QUOTA_LIMITS_HARDWS_MIN_DISABLE
0x00000002The working set may fall below the minimum working set limit if memory demands are high.
QUOTA_LIMITS_HARDWS_MIN_ENABLE
0x00000001The working set will not fall below the minimum working set limit.
QUOTA_LIMITS_HARDWS_MAX_DISABLE
0x00000008The working set may exceed the maximum working set limit if there is abundant memory.
QUOTA_LIMITS_HARDWS_MAX_ENABLE
0x00000004The working set will not exceed the maximum working set limit.

Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError .
Remarks
The "working set" of a process is the set of memory pages currently visible to the process in physical RAM memory. These pages are resident and available for an application to use without triggering a page fault. The minimum and maximum working set sizes affect the virtual memory paging behavior of a process.
Requirements
Minimum supported clientWindows Vista
Minimum supported serverWindows Server 2003
HeaderWinbase.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
See Also
Process Working Set
Processes
SetProcessWorkingSetSizeEx
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms683227(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:12