I am currently using an EventWaitHandle
to trigger a clean shutdown of a native process that doesnt have a window from a Windows Forms app. When I have multiple of these processes running at the same time, setting the event will stop all of them. Is there any way to send an event to a single selected process? I retain a Process
variable for each of them.
EventWaitHandle Event = new EventWaitHandle(false, EventResetMode.ManualReset, "EventName");
Event.Set();