The OpenFileMapping function opens a named file-mapping object.
HANDLE OpenFileMapping(
DWORD dwDesiredAccess, |
// access mode |
BOOL bInheritHandle, |
// inherit flag |
LPCTSTR lpName |
// pointer to name of file-mapping object |
); |
This parameter can be one of the following values:
Value |
Meaning |
FILE_MAP_WRITE |
Read-write access. The target file-mapping object must have been created with PAGE_READWRITE protection. A read-write view of the file is mapped. |
FILE_MAP_READ |
Read-only access. The target file-mapping object must have been created with PAGE_READWRITE or PAGE_READ protection. A read-only view of the file is mapped. |
FILE_MAP_ALL_ACCESS |
Same as FILE_MAP_WRITE. |
FILE_MAP_COPY |
Copy-on-write access. The target file-mapping object must have been created with PAGE_WRITECOPY protection. A copy-on-write view of the file is mapped. |
If the function succeeds, the return value is an open handle to the specified file-mapping object.
If the function fails, the return value is NULL. To get extended error information, call GetLastError.
The handle that OpenFileMapping returns can be used with any function that requires a handle to a file-mapping object.
file: /Techref/os/win/api/win32/func/src/f66_1.htm, 4KB, , updated: 2001/6/24 02:01, local time: 2024/12/7 17:01,
18.97.9.174:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://www.piclist.com/techref/os/win/api/win32/func/src/f66_1.htm"> OpenFileMapping</A> |
Did you find what you needed? |
PICList 2024 contributors:
o List host: MIT, Site host massmind.org, Top posters @none found - Page Editors: James Newton, David Cary, and YOU! * Roman Black of Black Robotics donates from sales of Linistep stepper controller kits. * Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters. * Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated! * Contributors: Richard Seriani, Sr. |
Welcome to www.piclist.com! |
.