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.

99 lines
3.8 KiB

  1. // *********************************************************************************
  2. //
  3. // Copyright (c) Microsoft Corporation. All rights reserved.
  4. //
  5. // Module Name:
  6. //
  7. // EventCreate.h
  8. //
  9. // Abstract:
  10. //
  11. // macros and prototypes of eventcreate.c
  12. //
  13. // Author:
  14. //
  15. // Sunil G.V.N. Murali ([email protected]) 24-Sep-2000
  16. //
  17. // Revision History:
  18. //
  19. // Sunil G.V.N. Murali ([email protected]) 24-Sep-2000 : Created It.
  20. //
  21. // *********************************************************************************
  22. #ifndef __EVENTCREATE_H
  23. #define __EVENTCREATE_H
  24. // include resource header
  25. #include "resource.h"
  26. //
  27. // type definitions
  28. //
  29. //
  30. // constants / defines / enumerators
  31. //
  32. // general purpose macros
  33. #define EXIT_PROCESS( exitcode ) \
  34. ReleaseGlobals(); \
  35. return exitcode; \
  36. 1
  37. //
  38. // command line options and their indexes in the array
  39. #define MAX_OPTIONS 9
  40. // supported options ( do not localize )
  41. #define OPTION_HELP L"?" // 1
  42. #define OPTION_SERVER L"s" // 2
  43. #define OPTION_USERNAME L"u" // 3
  44. #define OPTION_PASSWORD L"p" // 4
  45. #define OPTION_LOG L"l" // 5
  46. #define OPTION_TYPE L"t" // 6
  47. #define OPTION_SOURCE L"so" // 7
  48. #define OPTION_ID L"id" // 8
  49. #define OPTION_DESCRIPTION L"d" // 9
  50. // indexes
  51. #define OI_HELP 0
  52. #define OI_SERVER 1
  53. #define OI_USERNAME 2
  54. #define OI_PASSWORD 3
  55. #define OI_LOG 4
  56. #define OI_TYPE 5
  57. #define OI_SOURCE 6
  58. #define OI_ID 7
  59. #define OI_DESCRIPTION 8
  60. // values supported by 'type' option
  61. #define OVALUES_TYPE GetResString2( IDS_OVALUES_LOGTYPE, 2 )
  62. //
  63. // others
  64. #define LOGTYPE_ERROR GetResString2( IDS_LOGTYPE_ERROR, 0 )
  65. #define LOGTYPE_WARNING GetResString2( IDS_LOGTYPE_WARNING, 0 )
  66. #define LOGTYPE_INFORMATION GetResString2( IDS_LOGTYPE_INFORMATION, 0 )
  67. #define LOGTYPE_SUCCESS GetResString2( IDS_LOGTYPE_SUCCESS, 0 )
  68. // error messages
  69. #define ERROR_USERNAME_BUT_NOMACHINE GetResString2( IDS_ERROR_USERNAME_BUT_NOMACHINE, 0 )
  70. #define ERROR_PASSWORD_BUT_NOUSERNAME GetResString2( IDS_ERROR_PASSWORD_BUT_NOUSERNAME, 0 )
  71. #define ERROR_INVALID_EVENT_ID GetResString2( IDS_ERROR_INVALID_EVENT_ID, 0 )
  72. #define ERROR_DESCRIPTION_IS_EMPTY GetResString2( IDS_ERROR_DESCRIPTION_IS_EMPTY, 0 )
  73. #define ERROR_LOGSOURCE_IS_EMPTY GetResString2( IDS_ERROR_LOGSOURCE_IS_EMPTY, 0 )
  74. #define ERROR_LOG_SOURCE_BOTH_MISSING GetResString2( IDS_ERROR_LOG_SOURCE_BOTH_MISSING, 0 )
  75. #define ERROR_LOG_NOTEXISTS GetResString2( IDS_ERROR_LOG_NOTEXISTS, 0 )
  76. #define ERROR_NEED_LOG_ALSO GetResString2( IDS_ERROR_NEED_LOG_ALSO, 0 )
  77. #define ERROR_SOURCE_DUPLICATING GetResString2( IDS_ERROR_SOURCE_DUPLICATING, 0 )
  78. #define ERROR_USERNAME_EMPTY GetResString2( IDS_ERROR_USERNAME_EMPTY, 0 )
  79. #define ERROR_INVALID_USAGE_REQUEST GetResString2( IDS_ERROR_INVALID_USAGE_REQUEST, 0 )
  80. #define ERROR_SYSTEM_EMPTY GetResString2( IDS_ERROR_SYSTEM_EMPTY, 0 )
  81. #define ERROR_ID_OUTOFRANGE GetResString2( IDS_ERROR_ID_OUTOFRANGE, 0 )
  82. #define ERROR_NONCUSTOM_SOURCE GetResString2( IDS_ERROR_NONCUSTOM_SOURCE, 0 )
  83. #define ERROR_LOG_CANNOT_BE_SECURITY GetResString2( IDS_ERROR_LOG_CANNOT_BE_SECURITY, 0 )
  84. #define MSG_SUCCESS GetResString2( IDS_EVENTCREATE_SUCCESS_BOTH, 0 )
  85. #define MSG_SUCCESS_LOG GetResString2( IDS_EVENTCREATE_SUCCESS_LOG, 0 )
  86. #define MSG_SUCCESS_SOURCE GetResString2( IDS_EVENTCREATE_SUCCESS_SOURCE, 0 )
  87. #endif // __EVENTCREATE_H