private static bool EseMessageIdToString(uint ec, int extcode, out string msg) { bool result = DiagCore.FormatMessageFromModule("eseback2.dll", ec, out msg, null); if (3355381765U == ec || 3355381764U == ec) { msg = SeedHelper.StrEmbedEsebackExtendedErrorCode(msg, extcode); } return(result); }
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); }
internal static bool FormatMessageFromModule(string moduleName, uint msgId, out string msg, params object[] arguments) { int num; return(DiagCore.FormatMessageFromModule(moduleName, msgId, out msg, out num, arguments)); }