views:

60

answers:

0

I'd like to do some simple synchronization across two processes under Windows. I'd like process A to send an event and have process B handle this event via a callback. That is, process B will not be stuck waiting while the event is pending. Instead, a routine will be called when the event is sent.

The only way I've thought of so far to do this is to have a thread in B waiting on the event while the rest of B is doing its standard processing. Is there an easier way to do this, or perhaps a library that already implements this?

Process A (the sender) is unmanaged, but process B is managed (.net / C#).

Thanks for any insight you can provide!