O'Reilly logo

Windows® via C/C++, Fifth Edition by Christophe Nasarre, Jeffrey Richter

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Implementation Details of Memory-Mapped Files

Windows requires a process to call MapViewOfFile before the file’s data is accessible in the process’ address space. If one process calls MapViewOfFile, the system reserves a region of address space for the view in the calling process’ address space—no other process can see the view. If another process wants to access the data in the same file-mapping object, a thread in the second process must call MapViewOfFile, and the system will reserve a region for the view in the second process’ address space.

It is important to note that the memory address returned by the first process’ call to MapViewOfFile will most likely not be the same memory address returned by the second process’ call to MapViewOfFile ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required