CAtlFileMappingBase Class

This class represents a memory-mapped file.

Important

This class and its members cannot be used in applications that execute in the Windows Runtime.

class CAtlFileMappingBase

Members

Public Constructors

Name

Description

CAtlFileMappingBase::CAtlFileMappingBase

The constructor.

CAtlFileMappingBase::~CAtlFileMappingBase

The destructor.

Public Methods

Name

Description

CAtlFileMappingBase::CopyFrom

Call this method to copy from a file-mapping object.

CAtlFileMappingBase::GetData

Call this method to get the data from a file-mapping object.

CAtlFileMappingBase::GetHandle

Call this method to return the file handle.

CAtlFileMappingBase::GetMappingSize

Call this method to get the mapping size from a file-mapping object.

CAtlFileMappingBase::MapFile

Call this method to create a file-mapping object.

CAtlFileMappingBase::MapSharedMem

Call this method to create a file-mapping object that permits full access to all processes.

CAtlFileMappingBase::OpenMapping

Call this method to return a handle to the file-mapping object.

CAtlFileMappingBase::Unmap

Call this method to unmap a file-mapping object.

Public Operators

Name

Description

CAtlFileMappingBase::operator =

Sets the current file-mapping object to another file-mapping object.

Remarks

File mapping is the association of a file's contents with a portion of the virtual address space of a process. This class provides methods for creating file-mapping objects that permit programs to easily access and share data.

For more information, see File Mapping in the Windows SDK.

Requirements

Header: atlfile.h

See Also

Reference

CAtlFileMapping Class

Other Resources

ATL Class Overview