I have created a global event and set / reset in my own C ++ process, which is created as follows:
HANDLE hGlobalEvent = CreateEvent(NULL, TRUE, FALSE, _T("Global\\MyEvent"));
Is there a way (even if it is with a library not written by MS) to register for one of these events in .NET (C #), so that standard .NET event handlers fire when a global event changes?
And I just don't want to wait for the event and the loop, as in C ++ with WaitForSingleObject ... I really would like it to be a fully asynchronous event handler.
I have to imagine an easy way to do this ... I just can't find it.
source
share