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.

85 lines
2.4 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 1*24*3600
  23. #define ELF_DEFAULT_AUTOBACKUP 0
  24. #define ELF_GUEST_ACCESS_UNRESTRICTED 0
  25. #define ELF_GUEST_ACCESS_RESTRICTED 1
  26. //
  27. // Default title for the "log full" message box
  28. //
  29. #define ELF_DEFAULT_MESSAGE_BOX_TITLE L"Eventlog Service"
  30. //
  31. // Maximum size for the buffer that will read the key values from the
  32. // registry.
  33. //
  34. #define ELF_MAX_REG_KEY_INFO_SIZE 200
  35. //
  36. // String defines for the pre-defined nodes in the registry
  37. // These are used to get to the appropriate nodes.
  38. //
  39. #define REG_EVENTLOG_NODE_PATH \
  40. L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\Eventlog"
  41. #define REGSTR_VAL_AUTOBACKUPLOGFILES L"AutoBackupLogFiles"
  42. #define REG_COMPUTERNAME_NODE_PATH \
  43. L"\\Registry\\Machine\\System\\CurrentControlSet\\Control\\ComputerName\\ActiveComputerName"
  44. //SS: start of changes for replicated event logging across the cluster
  45. #define REG_CLUSSVC_NODE_PATH \
  46. L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\ClusSvc"
  47. //SS: end of changes for replicated event logging across the cluster
  48. //
  49. // String defines for the values for each of the configured pieces of
  50. // information in the eventlog\logfiles node. These exist per logfile.
  51. //
  52. //
  53. #define VALUE_FILENAME L"File"
  54. #define VALUE_MAXSIZE L"Maxsize"
  55. #define VALUE_RETENTION L"Retention"
  56. #define VALUE_RESTRICT_GUEST_ACCESS L"RestrictGuestAccess"
  57. #define VALUE_LOGPOPUP L"LogFullPopup"
  58. #define VALUE_DEBUG L"ElfDebugLevel"
  59. #define VALUE_COMPUTERNAME L"ComputerName"
  60. #endif // ifndef _EVENTDEFAULTS_