Paul
Had a very similar problem, a program in a terminal services environment that needed to be a single instance (ie only one user running it), was going to use a named mutex but MSDN recommended a very simple trick. Open a dummy locked file in general disk space (not a user area) as soon as the program starts and don’t close it till the program ends. If you get an error while opening then another instance exists.
John
Had a very similar problem, a program in a terminal services environment that needed to be a single instance (ie only one user running it), was going to use a named mutex but MSDN recommended a very simple trick. Open a dummy locked file in general disk space (not a user area) as soon as the program starts and don’t close it till the program ends. If you get an error while opening then another instance exists.
John
Comment