I use in memory files for these types of problems as there is no house keeping if the workstation dies / is turned off before the applications exit.

Bit more complicated as you have to register class and messages names with windows. Google Windows API CreateFileMappingA, MapViewOfFile