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.

107 lines
2.6 KiB

  1. #ifndef _SERLOG_
  2. #define _SERLOG_
  3. //
  4. // Status values are 32 bit values layed out as follows:
  5. //
  6. // 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
  7. // 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
  8. // +---+-+-------------------------+-------------------------------+
  9. // |Sev|C| Facility | Code |
  10. // +---+-+-------------------------+-------------------------------+
  11. //
  12. // where
  13. //
  14. // Sev - is the severity code
  15. //
  16. // 00 - Success
  17. // 01 - Informational
  18. // 10 - Warning
  19. // 11 - Error
  20. //
  21. // C - is the Customer code flag
  22. //
  23. // Facility - is the facility code
  24. //
  25. // Code - is the facility's status code
  26. //
  27. //
  28. // Values are 32 bit values layed out as follows:
  29. //
  30. // 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
  31. // 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
  32. // +---+-+-+-----------------------+-------------------------------+
  33. // |Sev|C|R| Facility | Code |
  34. // +---+-+-+-----------------------+-------------------------------+
  35. //
  36. // where
  37. //
  38. // Sev - is the severity code
  39. //
  40. // 00 - Success
  41. // 01 - Informational
  42. // 10 - Warning
  43. // 11 - Error
  44. //
  45. // C - is the Customer code flag
  46. //
  47. // R - is a reserved bit
  48. //
  49. // Facility - is the facility code
  50. //
  51. // Code - is the facility's status code
  52. //
  53. //
  54. // Define the facility codes
  55. //
  56. #define FACILITY_IO_ERROR_CODE 0x4
  57. //
  58. // Define the severity codes
  59. //
  60. #define STATUS_SEVERITY_WARNING 0x2
  61. #define STATUS_SEVERITY_SUCCESS 0x0
  62. #define STATUS_SEVERITY_INFORMATIONAL 0x1
  63. #define STATUS_SEVERITY_ERROR 0x3
  64. //
  65. // MessageId: SER_INSUFFICIENT_RESOURCES
  66. //
  67. // MessageText:
  68. //
  69. // Not enough memory was available to allocate internal storage needed for the device %1.
  70. //
  71. #define SER_INSUFFICIENT_RESOURCES ((NTSTATUS)0xC0040001L)
  72. //
  73. // MessageId: SER_NO_SYMLINK_CREATED
  74. //
  75. // MessageText:
  76. //
  77. // Unable to create the symbolic link for %1.
  78. //
  79. #define SER_NO_SYMLINK_CREATED ((NTSTATUS)0x80040002L)
  80. //
  81. // MessageId: SER_NO_DEVICE_MAP_CREATED
  82. //
  83. // MessageText:
  84. //
  85. // Unable to create the device map entry for %1.
  86. //
  87. #define SER_NO_DEVICE_MAP_CREATED ((NTSTATUS)0x80040003L)
  88. //
  89. // MessageId: SER_CANT_FIND_PORT_DRIVER
  90. //
  91. // MessageText:
  92. //
  93. // Unable to get device object pointer for port object.
  94. //
  95. #define SER_CANT_FIND_PORT_DRIVER ((NTSTATUS)0xC0040004L)
  96. #endif