网站首页  词典首页

请输入您要查询的函数:

 

术语 resetwritewatch
释义 ResetWriteWatch
语法:
C++
UINT WINAPI ResetWriteWatch(
__in LPVOID lpBaseAddress,
__in SIZE_T dwRegionSize
);
ResetWriteWatch功能
重置写跟踪的虚拟内存区域的状态。到GetWriteWatch后续调用函数只报告写入网页自复位操作。
64位Itanium的Windows系统:由于在页面大小的差异,ResetWriteWatch不支持32位应用程序。
参数
lpBaseAddress [in]
阿对内存区域重置为其写跟踪状态基址指针。
这个地址必须是在一个内存区域,这是由VirtualAlloc函数分配的MEM_WRITE_WATCH。
dwRegionSize [in]
该内存区域重置为其写跟踪信息的字节大小。
返回值
如果函数成功,返回值为0(零)。
如果函数失败,返回值是一个非零值。
备注
该ResetWriteWatch功能是很有用的应用程序,如垃圾收集器。在应用程序调用GetWriteWatch函数检索页的书面清单,然后将这些网页作为其清理行动的一部分。然后,垃圾收集器调用ResetWriteWatch消除写跟踪清理造成的记录。
您还可以重置写跟踪指定WRITE_WATCH_FLAG_RESET当调用GetWriteWatch一个内存区域的状态。
如果您使用ResetWriteWatch,您必须确保在没有线程写GetWriteWatch之间的间隔和ResetWriteWatch该地区通话。否则,有可能会被写入网页,您没有发现。
要求:
最低支持clientWindows与SP3 XP中,Windows 2000专业版
最低支持serverWindows与SP3的服务器2003,Windows 2000服务器
HeaderWinbase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
GetWriteWatch
内存管理功能
VirtualAlloc
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==ResetWriteWatch Function
Resets the write-tracking state for a region of virtual memory. Subsequent calls to the GetWriteWatch function only report pages that are written to since the reset operation.
64-bit Windows on Itanium-based systems: Due to the difference in page sizes, ResetWriteWatch is not supported for 32-bit applications.
Syntax
C++
UINT WINAPI ResetWriteWatch(
__in LPVOID lpBaseAddress,
__in SIZE_T dwRegionSize
);
Parameters
lpBaseAddress [in]
A pointer to the base address of the memory region for which to reset the write-tracking state.
This address must be in a memory region that is allocated by the VirtualAlloc function with MEM_WRITE_WATCH.
dwRegionSize [in]
The size of the memory region for which to reset the write-tracking information, in bytes.
Return Value
If the function succeeds, the return value is 0 (zero).
If the function fails, the return value is a nonzero value.
Remarks
The ResetWriteWatch function can be useful to an application such as a garbage collector. The application calls the GetWriteWatch function to retrieve the list of written pages, and then writes to those pages as part of its cleanup operation. Then the garbage collector calls ResetWriteWatch to remove the write-tracking records caused by the cleanup.
You can also reset the write-tracking state of a memory region by specifying WRITE_WATCH_FLAG_RESET when you call GetWriteWatch.
If you use ResetWriteWatch, you must ensure that no threads write to the region during the interval between the GetWriteWatch and ResetWriteWatch calls. Otherwise, there may be written pages that you not detect.
Requirements
Minimum supported clientWindows XP, Windows 2000 Professional with SP3
Minimum supported serverWindows Server 2003, Windows 2000 Server with SP3
HeaderWinbase.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
See Also
GetWriteWatch
Memory Management Functions
VirtualAlloc
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa366874(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:19:12