Share via


Memory-mapped Files (Windows CE 5.0)

Send Feedback

A memory-mapped file, or file mapping, is the result of associating a file's contents with a portion of the virtual address space of a process. It can be used to share a file or memory between two or more processes.

Security Note   Information in a readable memory mapped file can be read by other processes on the system. Do not store confidential information in a memory mapped file.

Information in a writeable memory mapped file can be written to by other processes on the system. You must validate all data that you read from a memory mapped file.

Windows CE supports named and unnamed file-mapping objects. Unnamed files provide a method for interprocess communication and a way to allocate virtual memory regions larger than the 32 MB slot size limit.

Unnamed memory-mapped files are not backed up by a page file. These files do not have to be unnamed. The created object can have a name and you can pass that name to other processes so these processes can access the same object.

See Also

Memory Architecture

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.