title: Access denied for a semaphore in a normal application, when it was first created by a service
body: <p>I create a global semaphore in a library that is used by a normal application and a service.
  If I run my normal application before the service, every thing comes fine, but if I change the order (I mean, running service before application), I will get access denied error in normal application when I trying to create or open the existed semaphore.
  I set SEMAPHORE_ALL_ACCESS during semaphore creation, but it doesn't solve the problem. In a ridiculous way, I also add SYNCHRONIZE and SEMAPHORE_MODIFY_STATE (by | operand), but it doesn't' solve the problem too.</p>
  
  <p>Do you have any idea?
  I'm using windows 8.1 (x64) and run both the 32bit version of service and application.</p>