Can a .NET Semaphore be shared between users on the same computer?
I need to restrict access to a shared resource between 2 users logged into Terminal Server sessions (Windows 2008 R2 x64). From my tests, it appears one user cannot see the named system Semaphore already created by another user. If I try sharing a Semaphore within the same user account, that works. Should I be able to share this across accounts?
You need to create a global semaphore that's visible across sessions. Prefix its name with Global\.