We next illustrate these steps in more detail. In this example, a producer process first creates a shared-memory object using the memory-mapping features available in the Windows API.
The producer then writes a message to shared memory.
After that, a consumer process opens a mapping to the shared-memory object and reads the message written by the consumer.