Ejemplo n.º 1
0
 public FSException(Win32Returncode errorcode) : base(errorcode.ToString())
 {
     this.pError = errorcode;
     if (this.pError == Win32Returncode.SUCCESS)
     {
         this.pError = Win32Returncode.DEFAULT_UNKNOWN_ERROR;
     }
 }
        private void LogEvent(string funcName, Win32Returncode returnValue, string Param, FuserFileHandler hFile)
        {
            string filename;

            if (hFile == null)
            {
                filename = "";
            }
            else
            {
                filename = hFile.filename;
            }

            LogMessage(funcName + "[" + (returnValue.ToString() + " " + Param).Trim() + "]: " + filename);

            //if (filename == @"\test") {
            //    LogMessage(funcName + "[" + (returnValue + " " + Param).Trim() + "]: " + filename);
            //}

            //LogMessage(funcName + ": " + InfoToString(info));
        }