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.

121 lines
2.6 KiB

  1. /*++
  2. Copyright (c) 1998 Specialix International Ltd.
  3. Abstract:
  4. Constant definitions for the I/O error code log values.
  5. --*/
  6. #ifndef IO8_LOG_H
  7. #define IO8_LOG_H
  8. //
  9. // Status values are 32 bit values layed out as follows:
  10. //
  11. // 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
  12. // 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
  13. // +---+-+-------------------------+-------------------------------+
  14. // |Sev|C| Facility | Code |
  15. // +---+-+-------------------------+-------------------------------+
  16. //
  17. // where
  18. //
  19. // Sev - is the severity code
  20. //
  21. // 00 - Success
  22. // 01 - Informational
  23. // 10 - Warning
  24. // 11 - Error
  25. //
  26. // C - is the Customer code flag
  27. //
  28. // Facility - is the facility code
  29. //
  30. // Code - is the facility's status code
  31. //
  32. //
  33. // Values are 32 bit values layed out as follows:
  34. //
  35. // 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
  36. // 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
  37. // +---+-+-+-----------------------+-------------------------------+
  38. // |Sev|C|R| Facility | Code |
  39. // +---+-+-+-----------------------+-------------------------------+
  40. //
  41. // where
  42. //
  43. // Sev - is the severity code
  44. //
  45. // 00 - Success
  46. // 01 - Informational
  47. // 10 - Warning
  48. // 11 - Error
  49. //
  50. // C - is the Customer code flag
  51. //
  52. // R - is a reserved bit
  53. //
  54. // Facility - is the facility code
  55. //
  56. // Code - is the facility's status code
  57. //
  58. //
  59. // Define the facility codes
  60. //
  61. #define FACILITY_SERIAL_ERROR_CODE 0x6
  62. #define FACILITY_RPC_STUBS 0x3
  63. #define FACILITY_RPC_RUNTIME 0x2
  64. #define FACILITY_IO_ERROR_CODE 0x4
  65. //
  66. // Define the severity codes
  67. //
  68. #define STATUS_SEVERITY_WARNING 0x2
  69. #define STATUS_SEVERITY_SUCCESS 0x0
  70. #define STATUS_SEVERITY_INFORMATIONAL 0x1
  71. #define STATUS_SEVERITY_ERROR 0x3
  72. //
  73. // MessageId: SPX_SEVERITY_SUCCESS
  74. //
  75. // MessageText:
  76. //
  77. // %2
  78. //
  79. #define SPX_SEVERITY_SUCCESS ((NTSTATUS)0x00060001L)
  80. //
  81. // MessageId: SPX_SEVERITY_INFORMATIONAL
  82. //
  83. // MessageText:
  84. //
  85. // %2
  86. //
  87. #define SPX_SEVERITY_INFORMATIONAL ((NTSTATUS)0x40060002L)
  88. //
  89. // MessageId: SPX_SEVERITY_WARNING
  90. //
  91. // MessageText:
  92. //
  93. // %2
  94. //
  95. #define SPX_SEVERITY_WARNING ((NTSTATUS)0x80060003L)
  96. //
  97. // MessageId: SPX_SEVERITY_ERROR
  98. //
  99. // MessageText:
  100. //
  101. // %2
  102. //
  103. #define SPX_SEVERITY_ERROR ((NTSTATUS)0xC0060004L)
  104. #endif // End of IO8_LOG.H