网站首页  词典首页

请输入您要查询的函数:

 

术语 virtualunlock
释义 VirtualUnlock
语法:
C++
BOOL WINAPI VirtualUnlock(
__in LPVOID lpAddress,
__in SIZE_T dwSize
);
VirtualUnlock功能
解锁了在一个进程的虚拟地址空间的页面指定的范围,使系统的页面交换出分页文件如有必要。
参数
lpAddress [in]
是对地区的页面基址指针被锁定。
dwSize [in]
该地区被锁定的大小,以字节。受影响的地区包括网页的所有网页包含从lpAddress参数(lpAddress + dwSize的一个或多个字节)。这意味着,2个字节的范围跨越边界造成的网页两个网页被锁定。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
为函数要取得成功,需要指定范围不匹配传递到以前的调用VirtualLock职能范围,但在范围内的所有网页必须被锁定。如果在指定范围内的任何网页不会被锁定,VirtualUnlock除去工作集的网页,设置最后错误ERROR_NOT_LOCKED,并返回FALSE。
上调用的内存范围是未锁定释放从进程的工作集的网页VirtualUnlock。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinbase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
内存管理功能
虚拟内存函数
VirtualLock
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==VirtualUnlock Function
Unlocks a specified range of pages in the virtual address space of a process, enabling the system to swap the pages out to the paging file if necessary.
Syntax
C++
BOOL WINAPI VirtualUnlock(
__in LPVOID lpAddress,
__in SIZE_T dwSize
);
Parameters
lpAddress [in]
A pointer to the base address of the region of pages to be unlocked.
dwSize [in]
The size of the region being unlocked, in bytes. The region of affected pages includes all pages containing one or more bytes in the range from the lpAddress parameter to (lpAddress+dwSize). This means that a 2-byte range straddling a page boundary causes both pages to be unlocked.
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
For the function to succeed, the range specified need not match a range passed to a previous call to the VirtualLock function, but all pages in the range must be locked. If any of the pages in the specified range are not locked, VirtualUnlock removes such pages from the working set, sets last error to ERROR_NOT_LOCKED, and returns FALSE.
Calling VirtualUnlock on a range of memory that is not locked releases the pages from the process's working set.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinbase.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
See Also
Memory Management Functions
Virtual Memory Functions
VirtualLock
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa366910(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:26:19