网站首页  词典首页

请输入您要查询的函数:

 

术语 unmapviewoffile
释义 UnmapViewOfFile
语法:
C++
BOOL WINAPI UnmapViewOfFile(
__in LPCVOID lpBaseAddress
);
UnmapViewOfFile函数
Unmaps一个从调用进程的地址空间映射文件的看法。
参数
lpBaseAddress [in]
是对一个文件是要映射的映射视图基址指针。此值必须相同,因先前调用该MapViewOfFile或MapViewOfFileEx函数的返回值。
返回值
如果函数成功,返回值为非零值,并在指定范围内的所有脏页都写着“懒惰”的磁盘。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
虽然一个应用程序可能会关闭该文件用于创建一个文件映射对象句柄,系统持有,直到文件的最后看法是打开相应的文件映射:
该文件的最后意见尚未映射没有持有开放式交流的限制。
实例
有关示例,请参见创建在一个文件视图。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinbase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
关闭一个文件映射对象
文件映射函数
MapViewOfFile
MapViewOfFileEx
内存管理功能
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==UnmapViewOfFile Function
Unmaps a mapped view of a file from the calling process's address space.
Syntax
C++
BOOL WINAPI UnmapViewOfFile(
__in LPCVOID lpBaseAddress
);
Parameters
lpBaseAddress [in]
A pointer to the base address of the mapped view of a file that is to be unmapped. This value must be identical to the value returned by a previous call to the MapViewOfFile or MapViewOfFileEx function.
Return Value
If the function succeeds, the return value is nonzero, and all dirty pages within the specified range are written "lazily" to disk.
If the function fails, the return value is zero. To get extended error information, call GetLastError .
Remarks
Although an application may close the file handle used to create a file mapping object, the system holds the corresponding file open until the last view of the file is unmapped:
Files for which the last view has not yet been unmapped are held open with no sharing restrictions.
Examples
For an example, see Creating a View Within a File .
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinbase.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
See Also
Closing a File Mapping Object
File Mapping Functions
MapViewOfFile
MapViewOfFileEx
Memory Management Functions
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa366882(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:18:44