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.

81 lines
1.3 KiB

  1. /*++
  2. Copyright (c) 1991 Microsoft Corporation
  3. Module Name:
  4. elfkrnl.h
  5. Abstract:
  6. This file contains defines for kernel->elf data structures
  7. Author:
  8. Mark Zbikowski 4/27/98
  9. Revision History:
  10. --*/
  11. #ifndef _ELFKRNL_
  12. #define _ELFKRNL_
  13. #define ELF_PORT_NAME "\\ErrorLogPort"
  14. #define ELF_PORT_NAME_U L"\\ErrorLogPort"
  15. //
  16. // Type discriminator
  17. //
  18. typedef enum {
  19. IO_ERROR_LOG = 0,
  20. SM_ERROR_LOG,
  21. } ELF_MESSAGE_TYPE;
  22. //
  23. // SM event structure
  24. //
  25. typedef struct {
  26. LARGE_INTEGER TimeStamp;
  27. NTSTATUS Status;
  28. ULONG StringOffset;
  29. ULONG StringLength;
  30. } SM_ERROR_LOG_MESSAGE, *PSM_ERROR_LOG_MESSAGE;
  31. //
  32. // Max size of data sent to the eventlogging service through the LPC port.
  33. //
  34. #define ELF_PORT_MAX_MESSAGE_LENGTH PORT_MAXIMUM_MESSAGE_LENGTH
  35. //
  36. // Structure that is passed in from the system thread to the LPC port
  37. //
  38. typedef struct {
  39. PORT_MESSAGE PortMessage;
  40. ULONG MessageType;
  41. union {
  42. IO_ERROR_LOG_MESSAGE IoErrorLogMessage;
  43. SM_ERROR_LOG_MESSAGE SmErrorLogMessage;
  44. } u;
  45. } ELF_PORT_MSG, *PELF_PORT_MSG;
  46. //
  47. // Structure for the message as a reply from the eventlogging service to
  48. // the LPC client.
  49. //
  50. typedef struct _ELF_REPLY_MESSAGE {
  51. PORT_MESSAGE PortMessage;
  52. NTSTATUS Status;
  53. } ELF_REPLY_MESSAGE, *PELF_REPLY_MESSAGE;
  54. #endif // ifndef _ELFLPC_
  55.