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.

75 lines
2.2 KiB

  1. /*++
  2. Copyright (c) 1991 Microsoft Corporation
  3. Module Name:
  4. elfcommn.h
  5. Abstract:
  6. Common defines for client and server.
  7. Author:
  8. Rajen Shah (rajens) 12-Aug-1991
  9. Revision History:
  10. --*/
  11. #ifndef _ELFCOMMON_
  12. #define _ELFCOMMON_
  13. //
  14. // Current default names of modules supported
  15. //
  16. #define ELF_MAX_LOG_MODULES 256
  17. #define ELF_SYSTEM_MODULE_NAME L"System"
  18. #define ELF_APPLICATION_MODULE_NAME L"Application"
  19. #define ELF_SECURITY_MODULE_NAME L"Security"
  20. #define ELF_SYSTEM_MODULE_NAME_ASCII "System"
  21. #define ELF_APPLICATION_MODULE_NAME_ASCII "Application"
  22. #define ELF_SECURITY_MODULE_NAME_ASCII "Security"
  23. //
  24. // Version numbers for the file header and the client
  25. //
  26. #define ELF_VERSION_MAJOR 0x0001
  27. #define ELF_VERSION_MINOR 0x0001
  28. //
  29. // The following are definitions for the Flags field in the context handle.
  30. //
  31. // ELF_LOG_HANDLE_INVALID is used to indicate that the handle is no
  32. // longer valid - i.e. the contents of the file
  33. // or the file itself have changed. It is used for
  34. // READs to cause the reader to "resync".
  35. //
  36. // ELF_LOG_HANDLE_BACKUP_LOG indicates that this was created with the
  37. // OpenBackupEventlog API and is not an active log.
  38. // This means we do some additional work at close time
  39. // and we disallow clear, backup, write and
  40. // ChangeNotify operations.
  41. //
  42. // ELF_LOG_HANDLE_REMOTE_HANDLE indicates that this handle was created via
  43. // a remote RPC call. This handle cannot be used for
  44. // ElfChangeNotify
  45. //
  46. // ELF_LOG_HANDLE_GENERATE_ON_CLOSE indicates that NtCloseAuditAlarm must
  47. // be called when this handle is closed. This flag
  48. // is set when an audit is generated on open.
  49. //
  50. #define ELF_LOG_HANDLE_INVALID_FOR_READ 0x0001
  51. #define ELF_LOG_HANDLE_BACKUP_LOG 0x0002
  52. #define ELF_LOG_HANDLE_REMOTE_HANDLE 0x0004
  53. #define ELF_LOG_HANDLE_LAST_READ_FORWARD 0x0008
  54. #define ELF_LOG_HANDLE_GENERATE_ON_CLOSE 0x0010
  55. #endif /* _ELFCOMMON_ */