You need to prefix the name with "Global\". See the CreateMutex() documentation in the Win32 docs.
-- manaaki whenua | manaaki tangata | haere whakamua http://hestia.typepad.com/flatlander | mailto:[EMAIL PROTECTED] -----Original Message----- From: Unmoderated discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Neils Christoffersen Sent: 2 March 2005 06:41 To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM Subject: [ADVANCED-DOTNET] System global Mutex The problem is that this only prevents the process from running more than once in a user session. The program runs on a server (it really should be a Windows service, but can't be due to ridiculous requirements beyond my control), so if it's running on the console session, someone is still able to use terminal services, log in, and run another instance. Therefore, I need some sort of "system global" mutex, or another mechanism to achieve this. What's the best way? =================================== This list is hosted by DevelopMentorŪ http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com