网站首页  词典首页

请输入您要查询的函数:

 

术语 emptyworkingset
释义 EmptyWorkingSet
语法:
C++
BOOL WINAPI EmptyWorkingSet(
__in HANDLE hProcess
);
EmptyWorkingSet功能
删除尽可能从工作指定的进程中设置多页。
参数
hProcess [in]
句柄的进程。句柄必须有PROCESS_QUERY_INFORMATION或PROCESS_QUERY_LIMITED_INFORMATION访问权和PROCESS_SET_QUOTA访问权限。有关更多信息,请参见过程的安全性和访问权限。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
您还可以通过调用空设置为值(SIZE_T)-1的dwMinimumWorkingSetSize和dwMaximumWorkingSetSize参数SetProcessWorkingSetSize或SetProcessWorkingSetSizeEx功能的工作集。
与PSAPI版本的Windows 7和Windows Server 2008 R2的2起,这个函数被定义为K32EmptyWorkingSet在Psapi.h和Kernel32.lib和Kernel32.dll出口。但是,您应该始终作为EmptyWorkingSet调用这个函数。为了确保对程序将运行在Windows的早期版本的符号的正确决议,添加Psapi.lib到TARGETLIBS宏和编译程序与- DPSAPI_VERSION = 1。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderPsapi.h
LibraryKernel32.lib在Windows 7和Windows Server 2008 R2的Psapi.lib在Windows Server 2008,Windows Vista中的Windows Server 2003,和Windows XP/2000
DLLKernel32.dll在Windows 7和Windows Server 2008 R2的Psapi.dll在Windows Server 2008,Windows Vista中的Windows Server 2003,和Windows XP/2000
参见
EnumProcesses
PSAPI函数
SetProcessWorkingSetSize
工作集
工作集信息
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==EmptyWorkingSet Function
Removes as many pages as possible from the working set of the specified process.
Syntax
C++
BOOL WINAPI EmptyWorkingSet(
__in HANDLE hProcess
);
Parameters
hProcess [in]
A handle to the process. The handle must have the PROCESS_QUERY_INFORMATION or PROCESS_QUERY_LIMITED_INFORMATION access right and the PROCESS_SET_QUOTA access right. For more information, see Process Security and Access Rights .
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
You can also empty the working set by calling the SetProcessWorkingSetSize or SetProcessWorkingSetSizeEx function with the dwMinimumWorkingSetSize and dwMaximumWorkingSetSize parameters set to the value (SIZE_T)–1.
Starting with PSAPI version 2 for Windows 7 and Windows Server 2008 R2, this function is defined as K32EmptyWorkingSet in Psapi.h and exported in Kernel32.lib and Kernel32.dll. However, you should always call this function as EmptyWorkingSet. To ensure correct resolution of symbols for programs that will run on earlier versions of Windows, add Psapi.lib to the TARGETLIBS macro and compile the program with –DPSAPI_VERSION=1.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderPsapi.h
LibraryKernel32.lib on Windows 7 and Windows Server 2008 R2, Psapi.lib on Windows Server 2008, Windows Vista, Windows Server 2003, and Windows XP/2000
DLLKernel32.dll on Windows 7 and Windows Server 2008 R2, Psapi.dll on Windows Server 2008, Windows Vista, Windows Server 2003, and Windows XP/2000
See Also
EnumProcesses
PSAPI Functions
SetProcessWorkingSetSize
Working Set
Working Set Information
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms682606(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 11:27:59