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.

238 lines
5.6 KiB

  1. //File Name: rocklog.mc
  2. //Constant definitions for the I/O error code log values.
  3. #ifndef _ROCKLOG_
  4. #define _ROCKLOG_
  5. //
  6. // Status values are 32 bit values layed out as follows:
  7. //
  8. // 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
  9. // 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
  10. // +---+-+-------------------------+-------------------------------+
  11. // |Sev|C| Facility | Code |
  12. // +---+-+-------------------------+-------------------------------+
  13. //
  14. // where
  15. //
  16. // Sev - is the severity code
  17. //
  18. // 00 - Success
  19. // 01 - Informational
  20. // 10 - Warning
  21. // 11 - Error
  22. //
  23. // C - is the Customer code flag
  24. //
  25. // Facility - is the facility code
  26. //
  27. // Code - is the facility's status code
  28. //
  29. //
  30. // Values are 32 bit values layed out as follows:
  31. //
  32. // 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
  33. // 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
  34. // +---+-+-+-----------------------+-------------------------------+
  35. // |Sev|C|R| Facility | Code |
  36. // +---+-+-+-----------------------+-------------------------------+
  37. //
  38. // where
  39. //
  40. // Sev - is the severity code
  41. //
  42. // 00 - Success
  43. // 01 - Informational
  44. // 10 - Warning
  45. // 11 - Error
  46. //
  47. // C - is the Customer code flag
  48. //
  49. // R - is a reserved bit
  50. //
  51. // Facility - is the facility code
  52. //
  53. // Code - is the facility's status code
  54. //
  55. //
  56. // Define the facility codes
  57. //
  58. #define FACILITY_SERIAL_ERROR_CODE 0x6
  59. #define FACILITY_RPC_STUBS 0x3
  60. #define FACILITY_RPC_RUNTIME 0x2
  61. #define FACILITY_IO_ERROR_CODE 0x4
  62. //
  63. // Define the severity codes
  64. //
  65. #define STATUS_SEVERITY_WARNING 0x2
  66. #define STATUS_SEVERITY_SUCCESS 0x0
  67. #define STATUS_SEVERITY_INFORMATIONAL 0x1
  68. #define STATUS_SEVERITY_ERROR 0x3
  69. //
  70. // MessageId: SERIAL_RP_INIT_FAIL
  71. //
  72. // MessageText:
  73. //
  74. // The RocketPort or RocketModem could not be initialized with the current settings.
  75. //
  76. #define SERIAL_RP_INIT_FAIL ((NTSTATUS)0x80060001L)
  77. //
  78. // MessageId: SERIAL_RP_INIT_PASS
  79. //
  80. // MessageText:
  81. //
  82. // The RocketPort/RocketModem driver has successfully initialized its hardware.
  83. //
  84. #define SERIAL_RP_INIT_PASS ((NTSTATUS)0x40060002L)
  85. //
  86. // MessageId: SERIAL_NO_SYMLINK_CREATED
  87. //
  88. // MessageText:
  89. //
  90. // Unable to create the symbolic link for %2.
  91. //
  92. #define SERIAL_NO_SYMLINK_CREATED ((NTSTATUS)0x80060003L)
  93. //
  94. // MessageId: SERIAL_NO_DEVICE_MAP_CREATED
  95. //
  96. // MessageText:
  97. //
  98. // Unable to create the device map entry for %2.
  99. //
  100. #define SERIAL_NO_DEVICE_MAP_CREATED ((NTSTATUS)0x80060004L)
  101. //
  102. // MessageId: SERIAL_NO_DEVICE_MAP_DELETED
  103. //
  104. // MessageText:
  105. //
  106. // Unable to delete the device map entry for %2.
  107. //
  108. #define SERIAL_NO_DEVICE_MAP_DELETED ((NTSTATUS)0x80060005L)
  109. //
  110. // MessageId: SERIAL_UNREPORTED_IRQL_CONFLICT
  111. //
  112. // MessageText:
  113. //
  114. // Another driver on the system, which did not report its resources, has already claimed interrupt %3 used by %2.
  115. //
  116. #define SERIAL_UNREPORTED_IRQL_CONFLICT ((NTSTATUS)0xC0060006L)
  117. //
  118. // MessageId: SERIAL_INSUFFICIENT_RESOURCES
  119. //
  120. // MessageText:
  121. //
  122. // Not enough memory was available to allocate internal storage needed for %2.
  123. //
  124. #define SERIAL_INSUFFICIENT_RESOURCES ((NTSTATUS)0xC0060007L)
  125. //
  126. // MessageId: SERIAL_NO_PARAMETERS_INFO
  127. //
  128. // MessageText:
  129. //
  130. // No Parameters subkey was found for user defined data.
  131. //
  132. #define SERIAL_NO_PARAMETERS_INFO ((NTSTATUS)0xC0060008L)
  133. //
  134. // MessageId: SERIAL_UNABLE_TO_ACCESS_CONFIG
  135. //
  136. // MessageText:
  137. //
  138. // Specific user configuration data is unretrievable.
  139. //
  140. #define SERIAL_UNABLE_TO_ACCESS_CONFIG ((NTSTATUS)0xC0060009L)
  141. //
  142. // MessageId: SERIAL_UNKNOWN_BUS
  143. //
  144. // MessageText:
  145. //
  146. // The bus type for %2 is not recognizable.
  147. //
  148. #define SERIAL_UNKNOWN_BUS ((NTSTATUS)0xC006000AL)
  149. //
  150. // MessageId: SERIAL_BUS_NOT_PRESENT
  151. //
  152. // MessageText:
  153. //
  154. // The bus type for %2 is not available on this computer.
  155. //
  156. #define SERIAL_BUS_NOT_PRESENT ((NTSTATUS)0xC006000BL)
  157. //
  158. // MessageId: SERIAL_INVALID_USER_CONFIG
  159. //
  160. // MessageText:
  161. //
  162. // User configuration for parameter %2 must have %3.
  163. //
  164. #define SERIAL_INVALID_USER_CONFIG ((NTSTATUS)0xC006000CL)
  165. //
  166. // MessageId: SERIAL_RP_RESOURCE_CONFLICT
  167. //
  168. // MessageText:
  169. //
  170. // A resource conflict was detected, the RocketPort/RocketModem driver will not load.
  171. //
  172. #define SERIAL_RP_RESOURCE_CONFLICT ((NTSTATUS)0xC006000DL)
  173. //
  174. // MessageId: SERIAL_RP_HARDWARE_FAIL
  175. //
  176. // MessageText:
  177. //
  178. // The RocketPort/RocketModem driver could not initialize its hardware, the driver will not be loaded.
  179. //
  180. #define SERIAL_RP_HARDWARE_FAIL ((NTSTATUS)0xC006000EL)
  181. //
  182. // MessageId: SERIAL_DEVICEOBJECT_FAILED
  183. //
  184. // MessageText:
  185. //
  186. // The Device Object for the RocketPort or RocketModem could not be created, the driver will not load.
  187. //
  188. #define SERIAL_DEVICEOBJECT_FAILED ((NTSTATUS)0xC006000FL)
  189. //
  190. // MessageId: SERIAL_CUSTOM_ERROR_MESSAGE
  191. //
  192. // MessageText:
  193. //
  194. // %2
  195. //
  196. #define SERIAL_CUSTOM_ERROR_MESSAGE ((NTSTATUS)0xC0060010L)
  197. //
  198. // MessageId: SERIAL_CUSTOM_INFO_MESSAGE
  199. //
  200. // MessageText:
  201. //
  202. // %2
  203. //
  204. #define SERIAL_CUSTOM_INFO_MESSAGE ((NTSTATUS)0x40060011L)
  205. //
  206. // MessageId: SERIAL_NT50_INIT_PASS
  207. //
  208. // MessageText:
  209. //
  210. // The RocketPort/RocketModem driver has successfully installed.
  211. //
  212. #define SERIAL_NT50_INIT_PASS ((NTSTATUS)0x40060012L)
  213. #endif