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.

95 lines
2.8 KiB

  1. /*++
  2. Copyright (c) 1991 Microsoft Corporation
  3. Module Name:
  4. elfcfg.h
  5. Abstract:
  6. This file contains default settings for the eventlog service.
  7. Author:
  8. Rajen Shah (rajens) 16-Aug-1991
  9. Revision History:
  10. --*/
  11. #ifndef _EVENTDEFAULTS_
  12. #define _EVENTDEFAULTS_
  13. //
  14. // Default for the Application log file
  15. //
  16. //
  17. #define ELF_DEFAULT_MODULE_NAME ELF_APPLICATION_MODULE_NAME
  18. #define ELF_APPLICATION_DEFAULT_LOG_FILE L"%SystemRoot%\\system32\\config\\appevent.evt"
  19. #define ELF_SYSTEM_DEFAULT_LOG_FILE L"%SystemRoot%\\system32\\config\\sysevent.evt"
  20. #define ELF_SECURITY_DEFAULT_LOG_FILE L"%SystemRoot%\\system32\\config\\secevent.evt"
  21. #define ELF_DEFAULT_MAX_FILE_SIZE 512*1024
  22. #define ELF_DEFAULT_RETENTION_PERIOD 7*24*3600
  23. #define ELF_DEFAULT_WARNING_LEVEL 0
  24. #define ELF_DEFAULT_AUTOBACKUP 0
  25. #define ELF_GUEST_ACCESS_UNRESTRICTED 0
  26. #define ELF_GUEST_ACCESS_RESTRICTED 1
  27. //
  28. // Default title for the "log full" message box
  29. //
  30. #define ELF_DEFAULT_MESSAGE_BOX_TITLE L"Eventlog Service"
  31. //
  32. // Maximum size for the buffer that will read the key values from the
  33. // registry.
  34. //
  35. #define ELF_MAX_REG_KEY_INFO_SIZE 200
  36. //
  37. // String defines for the pre-defined nodes in the registry
  38. // These are used to get to the appropriate nodes.
  39. //
  40. #define REG_EVENTLOG_NODE_PATH \
  41. L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\Eventlog"
  42. #define REGSTR_VAL_AUTOBACKUPLOGFILES L"AutoBackupLogFiles"
  43. #define REG_COMPUTERNAME_NODE_PATH \
  44. L"\\Registry\\Machine\\System\\CurrentControlSet\\Control\\ComputerName\\ActiveComputerName"
  45. //SS: start of changes for replicated event logging across the cluster
  46. #define REG_CLUSSVC_NODE_PATH \
  47. L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\ClusSvc"
  48. //SS: end of changes for replicated event logging across the cluster
  49. //
  50. // String defines for the values for each of the configured pieces of
  51. // information in the eventlog\logfiles node. These exist per logfile.
  52. //
  53. //
  54. #define VALUE_FILENAME L"File"
  55. #define VALUE_MAXSIZE L"Maxsize"
  56. #define VALUE_RETENTION L"Retention"
  57. #define VALUE_RESTRICT_GUEST_ACCESS L"RestrictGuestAccess"
  58. #define VALUE_LOGPOPUP L"LogFullPopup"
  59. #define VALUE_DEBUG L"ElfDebugLevel"
  60. #define VALUE_COMPUTERNAME L"ComputerName"
  61. #define VALUE_WARNINGLEVEL L"WarningLevel"
  62. #define VALUE_CUSTOM_SD L"CustomSD"
  63. #if defined(_WIN64)
  64. #define ALIGN_UP_64(x,t) (((x) + (t) - 1) & ~((t)-1))
  65. #else
  66. #define ALIGN_UP_64(x,t) (x)
  67. #endif
  68. #endif // ifndef _EVENTDEFAULTS_