You can use a memory-mapped object to share data between processes. However, do not create an unnamed object and pass a memory pointer to the different processes: one process can close the unnamed object without informing the other process. To avoid this memory error, Windows CE supports naming the unnamed object. Instead of passing a pointer to the object, you can now pass the name of the object. The other process then accesses the object through its name. Accessing the object through the name informs Windows CE which processes have access to the object. Windows CE then deletes the object only when both processes have closed the object.
The name of the memory-mapped object is global. When the second process calls CreateFileMapping, Windows CE passes back the handle to the original object.