private static void parseMutex(string name)
        {
            Mutex  m;
            string mutexName = name;

            try
            {
                m = Mutex.OpenExisting(mutexName);
                MutexSecurity mSec = m.GetAccessControl();
                Console.WriteLine(mSec.ToString());
            }
            catch (WaitHandleCannotBeOpenedException)
            {
                Console.WriteLine("Mutex does not exist.");
            }
            catch (UnauthorizedAccessException ex)
            {
                Console.WriteLine("Unauthorized access: {0}", ex.Message);
                try
                {
                    m = Mutex.OpenExisting(mutexName,
                                           MutexRights.ReadPermissions);
                    MutexSecurity mSec = m.GetAccessControl();
                    ShowSecurity(mSec);
                }
                catch (Exception e)
                {
                    Console.WriteLine("*******Unauthorized access: {0}", ex.Message);
                }
            }
        }