Leaked source code of windows server 2003
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.

115 lines
3.8 KiB

  1. #ifndef _EVENTCMD_H
  2. #define _EVENTCMD_H
  3. #define CMDLINE_DELIM "-/"
  4. #define CMDLINE_OPTION_HELP "hH?"
  5. #define CMDLINE_OPTION_VERBOSE "vV"
  6. #define CMDLINE_OPTION_SYSTEM "sS"
  7. #define CMDLINE_OPTION_NORESTART "nN"
  8. #define CMDLINE_FLG_NORESTART 1
  9. #define IDS_MSG_HELP 100
  10. #define IDS_MSG_CPYRGHT 101
  11. #define IDS_CHKP_WRN01 111
  12. #define IDS_CHKP_WRN02 112
  13. #define IDS_CHKP_WRN03 113
  14. #define IDS_CHKP_WRN04 114
  15. #define IDS_ALRT_WRN05 115
  16. #define IDS_ATTN_WRN06 116
  17. #define IDS_CHKP_WRN07 117
  18. #define IDS_CHKP_WRN08 118
  19. #define IDS_CHKP_WRN09 119
  20. #define IDS_ATTN_WRN10 120
  21. #define IDS_ATTN_WRN11 121
  22. #define IDS_ALRT_WRN12 122
  23. #define IDS_ALRT_WRN13 123
  24. #define IDS_ATTN_WRN14 124
  25. #define IDS_ALRT_WRN15 125
  26. #define IDS_ALRT_WRN16 126
  27. #define IDS_ALRT_WRN17 127
  28. #define IDS_ALRT_WRN18 128
  29. #define IDS_ALRT_WRN19 129
  30. #define IDS_ALRT_WRN20 130
  31. #define IDS_ALRT_WRN21 131
  32. #define IDS_ALRT_WRN22 132
  33. #define IDS_ALRT_WRN23 133
  34. #define IDS_ALRT_WRN24 134
  35. #define IDS_ALRT_WRN25 135
  36. #define IDS_ATTN_WRN26 136
  37. #define IDS_TRCK_WRN27 137
  38. #define IDS_TRCK_WRN28 138
  39. #define IDS_ERRO_WRN29 139
  40. #define IDS_ALRT_WRN30 140
  41. #define IDS_ALRT_WRN31 141
  42. #define IDS_ALRT_WRN32 142
  43. #define IDS_TRCK_WRN33 143
  44. #define IDS_ATTN_WRN34 144
  45. #define IDS_ATTN_WRN35 145
  46. #define IDS_ATTN_WRN36 146
  47. #define IDS_ATTN_WRN37 147
  48. #define IDS_ATTN_WRN38 148
  49. #define IDS_TRCK_WRN39 149
  50. #define IDS_TRCK_WRN40 150
  51. #define IDS_TRCK_WRN41 151
  52. #define IDS_ATTN_WRN42 152
  53. #define IDS_ATTN_WRN43 153
  54. #define IDS_ATTN_WRN44 154
  55. #define IDS_ATTN_WRN45 155
  56. #define IDS_ERRO_WRN46 156
  57. #define IDS_TRCK_WRN47 157
  58. #define IDS_TRCK_WRN48 158
  59. #define IDS_TRCK_WRN49 159
  60. #define IDS_TRCK_WRN50 160
  61. #define IDS_ERR01 500
  62. #define IDS_ERR02 501
  63. #define IDS_ERR03 503
  64. #define IDS_ERR04 504
  65. #define IDS_ERR05 505
  66. #define IDS_ERR06 506
  67. #define IDS_ERR07 507
  68. #define IDS_ERR08 508
  69. #define IDS_ERR09 509
  70. #define IDS_ERR10 510
  71. #define IDS_ERR11 511
  72. #define IDS_ERR12 512
  73. #define IDS_ERR13 513
  74. #define IDS_ERR14 514
  75. #define IDS_ERR15 515
  76. #define IDS_ERR16 516
  77. #define IDS_ERR17 517
  78. #define IDS_ERR18 518
  79. #define IDS_ERR19 519
  80. #define IDS_ERR20 520
  81. #define IDS_ERR21 521
  82. #define IDS_ERR22 522
  83. #define IDS_ERR23 523
  84. #define IDS_ERR24 524
  85. #define IDS_ERR25 525
  86. #define IDS_ERR26 526
  87. #define IDS_ERR27 527
  88. #define IDS_ERR28 528
  89. #define IDS_ERR29 529
  90. #define IDS_ERR30 530
  91. #define IDS_ERR31 531
  92. class CCommandLine
  93. {
  94. public:
  95. char *m_szFileName;
  96. char *m_szSystem;
  97. DWORD m_nVerboseLevel;
  98. DWORD m_nFlags;
  99. CCommandLine();
  100. ~CCommandLine();
  101. DWORD ParseCmdLine(int argc, char *argv[]);
  102. DWORD GetVerboseLevel();
  103. };
  104. extern CString gStrMessage;
  105. extern CCommandLine gCommandLine;
  106. #endif