Ejemplo n.º 1
0
        internal static string EventLogToString(this ExEventLog.EventTuple eventTuple, out int gle, params object[] arguments)
        {
            string result = null;

            if (DiagCore.s_clusmsgFullPath == null)
            {
                DiagCore.s_clusmsgFullPath = Path.Combine(DiagCore.GetFolderPathOfExchangeBinaries(), "clusmsg.dll");
            }
            if (!DiagCore.FormatMessageFromModule(DiagCore.s_clusmsgFullPath, eventTuple.EventId, out result, out gle, arguments))
            {
                return(null);
            }
            return(result);
        }