title: Creating a Cross-Process EventWaitHandle
body: <p>I have two windows application, one is a windows service which create EventWaitHandle and wait for it. Second application is a windows gui which open it by calling EventWaitHandle.OpenExisting() and try to Set the event. But I am getting an exception in OpenExisting. The Exception is "Access to the path is denied".</p>
  
  <p>windows Service code</p>
  
  <pre><code>EventWaitHandle wh = new EventWaitHandle(false, EventResetMode.AutoReset, "MyEventName");
  wh.WaitOne();
  </code></pre>
  
  <p>Windows GUI code</p>
  
  <pre><code>try
  {
      EventWaitHandle wh = EventWaitHandle.OpenExisting("MyEventName");
      wh.Set();
  }
  catch (Exception ex)
  {
      MessageBox.Show(ex.Message);
  }
  </code></pre>
  
  <p>I tried the same code with two sample console application, it was working fine.</p>