function opens a named file-mapping object.
| DWORD dwDesiredAccess,
||// access mode
| BOOL bInheritHandle,
||// inherit flag
| LPCTSTR lpName
||// pointer to name of file-mapping object
Specifies the access to the file-mapping object.
This access is checked against any security descriptor on the target
Windows 95 does not support security descriptors on file mapping objects.
This parameter can be one of the following values:
||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.
||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.
||Same as FILE_MAP_WRITE.
||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.
Specifies whether the returned handle is to be inherited by a new process
during process creation. A value of TRUE indicates that the new process inherits
Points to a string that names the file-mapping object to be opened. If there
is an open handle to a file-mapping object by this name and the security
descriptor on the mapping object does not conflict with the dwDesiredAccess
parameter, the open operation succeeds.
If the function succeeds, the return value is an open handle to the specified
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
- Software for developers
Software for Android Developers
- More information resources
Unix Manual Pages
- Databases for Amazon shops developers
Amazon Categories Database
Browse Nodes Database