// Token: 0x06000002 RID: 2 RVA: 0x00002050 File Offset: 0x00000250
        public static bool NamedPipeExist(string pipeName)
        {
            bool result;

            try
            {
                int timeout = 0;
                if (!AutisticThemeAPI.WaitNamedPipe(Path.GetFullPath(string.Format("\\\\\\\\.\\\\pipe\\\\{0}", pipeName)), timeout))
                {
                    int lastWin32Error = Marshal.GetLastWin32Error();
                    if (lastWin32Error == 0)
                    {
                        result = false;
                        return(result);
                    }
                    if (lastWin32Error == 2)
                    {
                        result = false;
                        return(result);
                    }
                }
                result = true;
            }
            catch (Exception)
            {
                result = false;
            }
            return(result);
        }
 // Token: 0x06000003 RID: 3 RVA: 0x000020AC File Offset: 0x000002AC
 public static void LuaPipe(string script)
 {
     if (AutisticThemeAPI.NamedPipeExist(AutisticThemeAPI.luapipename))
     {
         new Thread(delegate()
         {
             try
             {
                 using (NamedPipeClientStream namedPipeClientStream = new NamedPipeClientStream(".", AutisticThemeAPI.luapipename, PipeDirection.Out))
                 {
                     namedPipeClientStream.Connect();
                     using (StreamWriter streamWriter = new StreamWriter(namedPipeClientStream, Encoding.Default, 999999))
                     {
                         streamWriter.Write(script);
                         streamWriter.Dispose();
                     }
                     namedPipeClientStream.Dispose();
                 }
             }
             catch (IOException)
             {
             }
             catch (Exception)
             {
             }
         }).Start();
         return;
     }
 }
 // Token: 0x06000006 RID: 6 RVA: 0x000021B8 File Offset: 0x000003B8
 public void Execute(string Script)
 {
     AutisticThemeAPI.LuaPipe(Script);
 }