Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

155 lines
7.9 KiB

  1. /*++
  2. Copyright (C) 1999-2000 Microsoft Corporation
  3. Module Name:
  4. strings.c
  5. Abstract:
  6. String constants used by the functions in the logman program
  7. --*/
  8. #include "stdafx.h"
  9. //LPCWSTR cszAppShortName = (LPCWSTR)L"LOGMAN";
  10. // Command parameter strings
  11. /*
  12. LPCTSTR cszQuestionMark = TEXT("?");
  13. LPCTSTR cszComputerName = TEXT("computer");
  14. LPCTSTR cszSettings = TEXT("settings");
  15. LPCTSTR cszOverwrite = TEXT("overwrite");
  16. LPCTSTR cszStart = TEXT("start");
  17. LPCTSTR cszStop = TEXT("stop");
  18. LPCTSTR cszParamDelimiters = TEXT(" =\":");
  19. */
  20. LPCTSTR cszComputerNameDelimiters = TEXT(" =\"\\:");
  21. LPCTSTR cszLogNameDelimiters = TEXT(" =\"\\:");
  22. LPCTSTR cszFileNameDelimiters = TEXT("=\"");
  23. LPCTSTR cszComputerNameInvalidChars = TEXT("/"); // Todo: Any others?
  24. LPCTSTR cszFilePathInvalidChars = TEXT("/\""); // Todo: Need separate check for file name chars
  25. LPCTSTR cszLogNameInvalidChars = TEXT("\\ /:*?\"<>|.");
  26. // Registry path, key and value strings
  27. // Registry key strings
  28. LPCWSTR cwszRegKeySysmonLog = (LPCWSTR)L"System\\CurrentControlSet\\Services\\SysmonLog";
  29. LPCWSTR cwszRegKeyFullLogQueries = (LPCWSTR)L"System\\CurrentControlSet\\Services\\SysmonLog\\Log Queries";
  30. LPCWSTR cwszRegKeyLogQueries = (LPCWSTR)L"Log Queries";
  31. // Registry property key strings
  32. LPCWSTR cwszRegComment = (LPCWSTR)L"Comment";
  33. LPCWSTR cwszRegLogType = (LPCWSTR)L"Log Type";
  34. LPCWSTR cwszRegCurrentState = (LPCWSTR)L"Current State";
  35. LPCWSTR cwszRegLogFileMaxSize = (LPCWSTR)L"Log File Max Size";
  36. LPCWSTR cwszRegLogFileBaseName = (LPCWSTR)L"Log File Base Name";
  37. LPCWSTR cwszRegLogFileFolder = (LPCWSTR)L"Log File Folder";
  38. LPCWSTR cwszRegLogFileSerialNumber = (LPCWSTR)L"Log File Serial Number";
  39. LPCWSTR cwszRegLogFileAutoFormat = (LPCWSTR)L"Log File Auto Format";
  40. LPCWSTR cwszRegLogFileType = (LPCWSTR)L"Log File Type";
  41. LPCWSTR cwszRegStartTime = (LPCWSTR)L"Start";
  42. LPCWSTR cwszRegStopTime = (LPCWSTR)L"Stop";
  43. LPCWSTR cwszRegRestart = (LPCWSTR)L"Restart";
  44. LPCWSTR cwszRegLastModified = (LPCWSTR)L"Last Modified";
  45. LPCWSTR cwszRegCounterList = (LPCWSTR)L"Counter List";
  46. LPCWSTR cwszRegSampleInterval = (LPCWSTR)L"Sample Interval";
  47. LPCWSTR cwszRegEofCommandFile = (LPCWSTR)L"EOF Command File";
  48. LPCWSTR cwszRegCommandFile = (LPCWSTR)L"Command File";
  49. LPCWSTR cwszRegNetworkName = (LPCWSTR)L"Network Name";
  50. LPCWSTR cwszRegUserText = (LPCWSTR)L"User Text";
  51. LPCWSTR cwszRegPerfLogName = (LPCWSTR)L"Perf Log Name";
  52. LPCWSTR cwszRegActionFlags = (LPCWSTR)L"Action Flags";
  53. LPCWSTR cwszRegTraceBufferSize = (LPCWSTR)L"Trace Buffer Size";
  54. LPCWSTR cwszRegTraceBufferMinCount = (LPCWSTR)L"Trace Buffer Min Count";
  55. LPCWSTR cwszRegTraceBufferMaxCount = (LPCWSTR)L"Trace Buffer Max Count";
  56. LPCWSTR cwszRegTraceBufferFlushInt = (LPCWSTR)L"Trace Buffer Flush Interval";
  57. LPCWSTR cwszRegTraceFlags = (LPCWSTR)L"Trace Flags";
  58. LPCWSTR cwszRegTraceProviderList = (LPCWSTR)L"Trace Provider List";
  59. LPCWSTR cwszRegAlertThreshold = (LPCWSTR)L"Counter%05d.AlertThreshold";
  60. LPCWSTR cwszRegAlertOverUnder = (LPCWSTR)L"Counter%05d.AlertOverUnder";
  61. //LPCWSTR cwszRegTraceProviderCount = (LPCWSTR)L"TraceProviderCount";
  62. //LPCWSTR cwszRegTraceProviderGuid = (LPCWSTR)L"TraceProvider%05d.Guid";
  63. // Properties in registry but not in HTML file
  64. LPCWSTR cwszRegExecuteOnly = (LPCWSTR)L"ExecuteOnly";
  65. // HTML strings
  66. LPCWSTR cwszHtmlObjectClassId = (LPCWSTR)L"C4D2D8E0-D1DD-11CE-940F-008029004347";
  67. LPCWSTR cwszHtmlObjectHeader = (LPCWSTR)L"<OBJECT ID=\"DISystemMonitor1\" WIDTH=\"100%\" HEIGHT=\"100%\"\r\nCLASSID=\"CLSID:C4D2D8E0-D1DD-11CE-940F-008029004347\">\r\n";
  68. LPCWSTR cwszHtmlObjectFooter = (LPCWSTR)L"</OBJECT>";
  69. LPCWSTR cwszHtmlParamTag = (LPCWSTR)L"\t<PARAM NAME=\"";
  70. LPCWSTR cwszHtmlValueTag = (LPCWSTR)L"\" VALUE=\"";
  71. LPCWSTR cwszHtmlParamSearchTag = (LPCWSTR)L"PARAM NAME";
  72. LPCWSTR cwszHtmlValueSearchTag = (LPCWSTR)L"VALUE";
  73. LPCWSTR cwszHtmlValueEolTag = (LPCWSTR)L"\">\r\n";
  74. LPCWSTR cwszHtmlComment = (LPCWSTR)L"Comment";
  75. LPCWSTR cwszHtmlLogType = (LPCWSTR)L"LogType";
  76. LPCWSTR cwszHtmlCurrentState = (LPCWSTR)L"CurrentState";
  77. LPCWSTR cwszHtmlLogFileMaxSize = (LPCWSTR)L"LogFileMaxSize";
  78. LPCWSTR cwszHtmlLogFileBaseName = (LPCWSTR)L"LogFileBaseName";
  79. LPCWSTR cwszHtmlLogFileFolder = (LPCWSTR)L"LogFileFolder";
  80. LPCWSTR cwszHtmlLogFileSerialNumber = (LPCWSTR)L"LogFileSerialNumber";
  81. LPCWSTR cwszHtmlLogFileAutoFormat = (LPCWSTR)L"LogFileAutoFormat";
  82. LPCWSTR cwszHtmlLogFileType = (LPCWSTR)L"LogFileType";
  83. LPCWSTR cwszHtmlEofCommandFile = (LPCWSTR)L"EOFCommandFile";
  84. LPCWSTR cwszHtmlCommandFile = (LPCWSTR)L"CommandFile";
  85. LPCWSTR cwszHtmlNetworkName = (LPCWSTR)L"NetworkName";
  86. LPCWSTR cwszHtmlUserText = (LPCWSTR)L"UserText";
  87. LPCWSTR cwszHtmlPerfLogName = (LPCWSTR)L"PerfLogName";
  88. LPCWSTR cwszHtmlActionFlags = (LPCWSTR)L"ActionFlags";
  89. LPCWSTR cwszHtmlTraceBufferSize = (LPCWSTR)L"TraceBufferSize";
  90. LPCWSTR cwszHtmlTraceBufferMinCount = (LPCWSTR)L"TraceBufferMinCount";
  91. LPCWSTR cwszHtmlTraceBufferMaxCount = (LPCWSTR)L"TraceBufferMaxCount";
  92. LPCWSTR cwszHtmlTraceBufferFlushInt = (LPCWSTR)L"TraceBufferFlushInterval";
  93. LPCWSTR cwszHtmlTraceFlags = (LPCWSTR)L"TraceFlags";
  94. LPCWSTR cwszHtmlSysmonLogFileName = (LPCWSTR)L"LogFileName";
  95. LPCWSTR cwszHtmlSysmonCounterCount = (LPCWSTR)L"CounterCount";
  96. LPCWSTR cwszHtmlSysmonSampleCount = (LPCWSTR)L"SampleCount";
  97. LPCWSTR cwszHtmlSysmonUpdateInterval= (LPCWSTR)L"UpdateInterval";
  98. LPCWSTR cwszHtmlSysmonCounterPath = (LPCWSTR)L"Counter%05d.Path";
  99. LPCWSTR cwszHtmlRestartMode = (LPCWSTR)L"RestartMode";
  100. LPCWSTR cwszHtmlSampleIntUnitType = (LPCWSTR)L"SampleIntervalUnitType";
  101. LPCWSTR cwszHtmlSampleIntValue = (LPCWSTR)L"SampleIntervalValue";
  102. LPCWSTR cwszHtmlStartMode = (LPCWSTR)L"StartMode";
  103. LPCWSTR cwszHtmlStartAtTime = (LPCWSTR)L"StartAtTime";
  104. LPCWSTR cwszHtmlStopMode = (LPCWSTR)L"StopMode";
  105. LPCWSTR cwszHtmlStopAtTime = (LPCWSTR)L"StopAtTime";
  106. LPCWSTR cwszHtmlStopAfterUnitType = (LPCWSTR)L"StopAfterUnitType";
  107. LPCWSTR cwszHtmlStopAfterValue = (LPCWSTR)L"StopAfterValue";
  108. LPCWSTR cwszHtmlAlertThreshold = (LPCWSTR)L"Counter%05d.AlertThreshold";
  109. LPCWSTR cwszHtmlAlertOverUnder = (LPCWSTR)L"Counter%05d.AlertOverUnder";
  110. LPCWSTR cwszHtmlTraceProviderCount = (LPCWSTR)L"TraceProviderCount";
  111. LPCWSTR cwszHtmlTraceProviderGuid = (LPCWSTR)L"TraceProvider%05d.Guid";
  112. LPCWSTR cwszHtmlLogName = (LPCWSTR)L"LogName";
  113. LPCWSTR cwszHtmlAlertName = (LPCWSTR)L"AlertName";
  114. LPCWSTR cwszHtmlSysmonVersion = (LPCWSTR)L"_Version";
  115. // other general strings
  116. LPCWSTR cwszNewLine = (LPCWSTR)L"\n";
  117. LPCWSTR cwszQuote = (LPCWSTR)L"\"";
  118. LPCWSTR cwszNull = (LPCWSTR)L"";
  119. LPCWSTR cwszGreaterThan = (LPCWSTR)L">";
  120. LPCWSTR cwszLessThan = (LPCWSTR)L"<";
  121. LPCWSTR cwszAlertFormatString = (LPCWSTR)L"%s%s%0.23g";
  122. LPCWSTR cwszMissingResourceString = (LPCWSTR)L"????";
  123. LPCWSTR cwszMessageIdFormatString = (LPCWSTR)L"0x%08lX";
  124. LPCWSTR cwszPdhDll = (LPCWSTR)L"PDH.DLL";
  125. LPCWSTR cwszDefaultLogFileFolder = (LPCWSTR)L"%SystemDrive%\\PerfLogs";
  126. LPCWSTR cwszNoErrorMessage = (LPCWSTR)L"Unable to access LogMan error message.";
  127. LPCWSTR cwszLogService = (LPCWSTR)L"SysmonLog";
  128. LPCWSTR cwszSystemError = (LPCWSTR)L"System Error: %s";
  129. LPCWSTR cwszLocalComputer = (LPCWSTR)L"local computer";
  130. LPCWSTR cwszGuidFormat = (LPCWSTR)L"{%08lx-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x}";
  131. // strings only used in DEBUG builds
  132. #ifdef _DEBUG
  133. //LPCWSTR cszNameDontMatch = (LPCWSTR)L"Last Machine Name does not match the current selection";
  134. //LPCWSTR cszNotice = (LPCWSTR)L"Notice!";
  135. #endif