You can access a file though a memory object that is directly mapped to the file. Windows CE reflects any change to the memory-mapped object back to the file. Memory mapping can be more complicated to set up than traditional memory access; however, memory mapping simplifies file access. Instead of using a system-maintained pointer to write to the file, you can write directly to memory.
You can open any file, including files that are created by CreateFile, for memory mapping. Like CreateFile, you can also create a file with CreateFileForMapping. For Windows CE version 2.10 and earlier, you can use CreateFileForMapping for read-only permission.