I am looking at Windows synchronization objects http://msdn.microsoft.com/en-us/library/ms682411(v=VS.85).aspx, those that can be opened as named objects.
Which objects can hold small amount (4-8 bytes) of shared info that san be Set by one process and Read by another process ? I realize shared memory does this, but it can be overkill with 4kb size pages and APIs that are longer than small APIs of synchronization objects.
Probably the most efficient method would be to use a message. It is rather ugly, however, as you must have a message pump. You can send a
WM_USERor a registered message type to another thread via PostMessage to a window or PostThreadMessage to a thread.