术语 | queryworkingsetex |
释义 | QueryWorkingSetEx 语法: C++ BOOL WINAPI QueryWorkingSetEx( __in HANDLE hProcess, __inout PVOID pv, __in DWORD cb ); QueryWorkingSetEx功能 扩展检索的网页有关的信息添加到当前工作的指明工序集。 参数 hProcess [in] 句柄的进程。句柄必须有PROCESS_QUERY_INFORMATION和PROCESS_VM_READ访问权限。有关更多信息,请参见过程的安全性和访问权限。 光伏[ in , out ] 一个一个PSAPI_WORKING_SET_EX_INFORMATION结构的数组指针。在输入数组中的每个项目指定了一个虚拟地址的利益。对产出,数组中的每个项目收到约相应的虚拟页的信息。 文件 [in] 在光伏缓冲区大小,以字节为单位。 返回值 如果函数成功,返回值为非零。 如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。 备注 不像QueryWorkingSet功能,地址未在规定的工作过程,但仍然是这一进程的一部分可以查询。例如,敬畏和大页面可以查询。 与PSAPI版本的Windows 7和Windows Server 2008 R2的2起,这个函数被定义为K32QueryWorkingSetEx在Psapi.h和Kernel32.lib和Kernel32.dll出口。但是,您应该始终作为QueryWorkingSetEx调用这个函数。为了确保对程序将运行在Windows的早期版本的符号的正确决议,添加Psapi.lib到TARGETLIBS宏和编译程序与- DPSAPI_VERSION = 1。 实例 有关示例,请参见分配从NUMA节点内存。 要求: 最低支持clientWindows Vista中,Windows XP Professional x64版本 最低支持serverWindows Server 2008中时,Windows Server 2003 SP1的 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函数 PSAPI_WORKING_SET_EX_INFORMATION 工作集信息 如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com) 生成日期:2009年8月27日 ==英文原文==QueryWorkingSetEx Function Retrieves extended information about the pages currently added to the working set of the specified process. Syntax C++ BOOL WINAPI QueryWorkingSetEx( __in HANDLE hProcess, __inout PVOID pv, __in DWORD cb ); Parameters hProcess [in] A handle to the process. The handle must have the PROCESS_QUERY_INFORMATION and PROCESS_VM_READ access rights. For more information, see Process Security and Access Rights . pv [in, out] A pointer to an array of PSAPI_WORKING_SET_EX_INFORMATION structures. On input, each item in the array specifies a virtual address of interest. On output, each item in the array receives information about the corresponding virtual page. cb [in] The size of the pv buffer, in bytes. 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 Unlike the QueryWorkingSet function, addresses that are not in the process working set but are still part of the process can be queried. For example, AWE and large pages can be queried. Starting with PSAPI version 2 for Windows 7 and Windows Server 2008 R2, this function is defined as K32QueryWorkingSetEx in Psapi.h and exported in Kernel32.lib and Kernel32.dll. However, you should always call this function as QueryWorkingSetEx. 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. Examples For an example, see Allocating Memory from a NUMA Node . Requirements Minimum supported clientWindows Vista, Windows XP Professional x64 Edition Minimum supported serverWindows Server 2008, Windows Server 2003 with SP1 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 PSAPI_WORKING_SET_EX_INFORMATION Working Set Information Send comments about this topic to Microsoft Build date: 8/27/2009 ==原始网址==http://msdn.microsoft.com/en-us/library/ms684949(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。