Re: [python-win32] Technique to limit number of instances of our application under Terminal Server

2010-03-10 Thread Mark Hammond
It sounds like you are after a named semaphore in the "Global\\" namespace. The semaphore count should work fine when your process terminates abnormally - but will not if it simply hangs - so something will need to terminate a hung process before the semaphore becomes available. HTH, Mark

Re: [python-win32] Technique to limit number of instances of our application under Terminal Server

2010-03-10 Thread python
Hi Tim, > It's not quite clear whether you want something which you can build into the > application itself Yes, since I control the source code, this is a feature I would like to build into my applications. > ... in which case, the answer's probably Semaphores: > http://msdn.microsoft.com/en-