I\'ve written an API that will be used on the same box in (1) a windows service, (2) a web application, and (3) a windows forms application. They all need to share a very s
For cross-process locking in C#/.Net, you can use a named system Mutex.