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.

408 lines
9.1 KiB

  1. /*---
  2. Copyright (c) 1995 Microsoft Corporation
  3. Module Name:
  4. messages.h
  5. Abstract:
  6. Log message file for Codec Class Driver
  7. Author:
  8. billpa
  9. Revision History:
  10. --*/
  11. //
  12. // Status values are 32 bit values layed out as follows:
  13. //
  14. // 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
  15. // 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
  16. // +---+-+-------------------------+-------------------------------+
  17. // |Sev|C| Facility | Code |
  18. // +---+-+-------------------------+-------------------------------+
  19. //
  20. // where
  21. //
  22. // Sev - is the severity code
  23. //
  24. // 00 - Success
  25. // 01 - Informational
  26. // 10 - Warning
  27. // 11 - Error
  28. //
  29. // C - is the Customer code flag
  30. //
  31. // Facility - is the facility code
  32. //
  33. // Code - is the facility's status code
  34. //
  35. //
  36. // Values are 32 bit values layed out as follows:
  37. //
  38. // 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
  39. // 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
  40. // +-+-+-+-+-+---------------------+-------------------------------+
  41. // |S|R|C|N|r| Facility | Code |
  42. // +-+-+-+-+-+---------------------+-------------------------------+
  43. //
  44. // where
  45. //
  46. // S - Severity - indicates success/fail
  47. //
  48. // 0 - Success
  49. // 1 - Fail (COERROR)
  50. //
  51. // R - reserved portion of the facility code, corresponds to NT's
  52. // second severity bit.
  53. //
  54. // C - reserved portion of the facility code, corresponds to NT's
  55. // C field.
  56. //
  57. // N - reserved portion of the facility code. Used to indicate a
  58. // mapped NT status value.
  59. //
  60. // r - reserved portion of the facility code. Reserved for internal
  61. // use. Used to indicate HRESULT values that are not status
  62. // values, but are instead message ids for display strings.
  63. //
  64. // Facility - is the facility code
  65. //
  66. // Code - is the facility's status code
  67. //
  68. //
  69. // Define the facility codes
  70. //
  71. #define FACILITY_RPC_STUBS 0x3
  72. #define FACILITY_RPC_RUNTIME 0x2
  73. #define FACILITY_CODCLASS_ERROR_CODE 0x6
  74. #define FACILITY_IO_ERROR_CODE 0x4
  75. //
  76. // Define the severity codes
  77. //
  78. #define STATUS_SEVERITY_WARNING 0x2
  79. #define STATUS_SEVERITY_SUCCESS 0x0
  80. #define STATUS_SEVERITY_INFORMATIONAL 0x1
  81. #define STATUS_SEVERITY_ERROR 0x3
  82. //
  83. // MessageId: CODCLASS_NO_ADAPTERS_FOUND
  84. //
  85. // MessageText:
  86. //
  87. // Codec Minidriver found no usable adapter cards.
  88. //
  89. #define CODCLASS_NO_ADAPTERS_FOUND ((NTSTATUS)0xC0060001L)
  90. //
  91. // MessageId: CODCLASS_ADAPTER_FOUND
  92. //
  93. // MessageText:
  94. //
  95. // Codec Minidriver found adapter card.
  96. //
  97. #define CODCLASS_ADAPTER_FOUND ((NTSTATUS)0x40060002L)
  98. //
  99. // MessageId: CODCLASS_CLASS_MINIDRIVER_MISMATCH
  100. //
  101. // MessageText:
  102. //
  103. // Codec Minidriver does not match the revision of the Codec Class driver.
  104. //
  105. #define CODCLASS_CLASS_MINIDRIVER_MISMATCH ((NTSTATUS)0xC0060003L)
  106. //
  107. // MessageId: CODCLASS_MINIDRIVER_MISSING_ENTRIES
  108. //
  109. // MessageText:
  110. //
  111. // Codec Minidriver is missing required entries in HW_INITIALIZATION_DATA structure.
  112. // (HwInitialize, HwFindAdapter or HwStartIo)
  113. //
  114. #define CODCLASS_MINIDRIVER_MISSING_ENTRIES ((NTSTATUS)0xC0060004L)
  115. //
  116. // MessageId: CODCLASS_NO_PAGEDPOOL
  117. //
  118. // MessageText:
  119. //
  120. // Codec Class driver could not allocate sufficient Paged Pool.
  121. //
  122. #define CODCLASS_NO_PAGEDPOOL ((NTSTATUS)0xC0060005L)
  123. //
  124. // MessageId: CODCLASS_NO_NONPAGEDPOOL
  125. //
  126. // MessageText:
  127. //
  128. // Codec Class driver could not allocate sufficient Non-Paged Pool.
  129. //
  130. #define CODCLASS_NO_NONPAGEDPOOL ((NTSTATUS)0xC0060006L)
  131. //
  132. // MessageId: CODCLASS_COULD_NOT_CREATE_VIDEO_DEVICE
  133. //
  134. // MessageText:
  135. //
  136. // Codec Class driver could not create Video device for %1.
  137. //
  138. #define CODCLASS_COULD_NOT_CREATE_VIDEO_DEVICE ((NTSTATUS)0xC0060007L)
  139. //
  140. // MessageId: CODCLASS_COULD_NOT_CREATE_AUDIO_DEVICE
  141. //
  142. // MessageText:
  143. //
  144. // Codec Class driver could not create Video device for %1.
  145. //
  146. #define CODCLASS_COULD_NOT_CREATE_AUDIO_DEVICE ((NTSTATUS)0xC0060008L)
  147. //
  148. // MessageId: CODCLASS_COULD_NOT_CREATE_OVERLAY_DEVICE
  149. //
  150. // MessageText:
  151. //
  152. // Codec Class driver could not create Video device for %1.
  153. //
  154. #define CODCLASS_COULD_NOT_CREATE_OVERLAY_DEVICE ((NTSTATUS)0xC0060009L)
  155. //
  156. // MessageId: CODCLASS_MINIDRIVER_BAD_CONFIG
  157. //
  158. // MessageText:
  159. //
  160. // Codec Minidriver reported Bad Configuration info.
  161. // Possibly insufficient I/O resources.
  162. //
  163. #define CODCLASS_MINIDRIVER_BAD_CONFIG ((NTSTATUS)0xC006000AL)
  164. //
  165. // MessageId: CODCLASS_MINIDRIVER_INTERNAL
  166. //
  167. // MessageText:
  168. //
  169. // Codec Minidriver %1 reported an invalid error code while attempting to find the adapter.
  170. //
  171. #define CODCLASS_MINIDRIVER_INTERNAL ((NTSTATUS)0xC006000BL)
  172. //
  173. // MessageId: CODCLASS_RESOURCE_CONFLICT
  174. //
  175. // MessageText:
  176. //
  177. // A conflict was detected while reporting resources.
  178. //
  179. #define CODCLASS_RESOURCE_CONFLICT ((NTSTATUS)0xC006000CL)
  180. //
  181. // MessageId: CODCLASS_INTERRUPT_CONNECT
  182. //
  183. // MessageText:
  184. //
  185. // Codec Minidriver unable to connect to Interrupt.
  186. //
  187. #define CODCLASS_INTERRUPT_CONNECT ((NTSTATUS)0xC006000DL)
  188. //
  189. // MessageId: CODCLASS_MINIDRIVER_HWINITIALIZE
  190. //
  191. // MessageText:
  192. //
  193. // Codec Minidriver Hardware Initialize failed.
  194. //
  195. #define CODCLASS_MINIDRIVER_HWINITIALIZE ((NTSTATUS)0xC006000EL)
  196. //
  197. // MessageId: CODCLASS_DOSNAME
  198. //
  199. // MessageText:
  200. //
  201. // Codec Class failed creating DOS name: %2.
  202. //
  203. #define CODCLASS_DOSNAME ((NTSTATUS)0xC006000FL)
  204. //
  205. // MessageId: CODCLASS_DMA_ALLOCATE
  206. //
  207. // MessageText:
  208. //
  209. // Codec Class could not Get DMA Adapter.
  210. //
  211. #define CODCLASS_DMA_ALLOCATE ((NTSTATUS)0xC0060010L)
  212. //
  213. // MessageId: CODCLASS_DMA_BUFFER_ALLOCATE
  214. //
  215. // MessageText:
  216. //
  217. // Codec Class could not allocate DMA buffer.
  218. //
  219. #define CODCLASS_DMA_BUFFER_ALLOCATE ((NTSTATUS)0xC0060011L)
  220. //
  221. // MessageId: CODCLASS_MINIDRIVER_ERROR
  222. //
  223. // MessageText:
  224. //
  225. // Codec Minidriver reported unspecified error:
  226. // (%2).
  227. //
  228. #define CODCLASS_MINIDRIVER_ERROR ((NTSTATUS)0xC0060012L)
  229. //
  230. // MessageId: CODCLASS_MINIDRIVER_REVISION_MISMATCH
  231. //
  232. // MessageText:
  233. //
  234. // Codec Minidriver reported error:
  235. // Class / Minidriver revision mismatch (%2).
  236. //
  237. #define CODCLASS_MINIDRIVER_REVISION_MISMATCH ((NTSTATUS)0xC0060013L)
  238. //
  239. // MessageId: CODCLASS_MINIDRIVER_INSUFFICIENT_RESOURCES
  240. //
  241. // MessageText:
  242. //
  243. // Codec Minidriver reported error:
  244. // Insufficient resources available (%2).
  245. //
  246. #define CODCLASS_MINIDRIVER_INSUFFICIENT_RESOURCES ((NTSTATUS)0xC0060014L)
  247. //
  248. // MessageId: CODCLASS_MINIDRIVER_INVALID_INTERRUPT
  249. //
  250. // MessageText:
  251. //
  252. // Codec Minidriver reported error:
  253. // Invalid interrupt setting (%2).
  254. //
  255. #define CODCLASS_MINIDRIVER_INVALID_INTERRUPT ((NTSTATUS)0xC0060015L)
  256. //
  257. // MessageId: CODCLASS_MINIDRIVER_INVALID_DMA
  258. //
  259. // MessageText:
  260. //
  261. // Codec Minidriver reported error:
  262. // Invalid DMA channel setting (%2).
  263. //
  264. #define CODCLASS_MINIDRIVER_INVALID_DMA ((NTSTATUS)0xC0060016L)
  265. //
  266. // MessageId: CODCLASS_MINIDRIVER_NO_DMA_BUFFER
  267. //
  268. // MessageText:
  269. //
  270. // Codec Minidriver reported error:
  271. // Insufficient resources for DMA buffer (%2).
  272. //
  273. #define CODCLASS_MINIDRIVER_NO_DMA_BUFFER ((NTSTATUS)0xC0060017L)
  274. //
  275. // MessageId: CODCLASS_MINIDRIVER_INVALID_MEMORY
  276. //
  277. // MessageText:
  278. //
  279. // Codec Minidriver reported error:
  280. // Invalid Memory address range specified (%2).
  281. //
  282. #define CODCLASS_MINIDRIVER_INVALID_MEMORY ((NTSTATUS)0xC0060018L)
  283. //
  284. // MessageId: CODCLASS_MINIDRIVER_INVALID_CLASS
  285. //
  286. // MessageText:
  287. //
  288. // Codec Minidriver reported error:
  289. // Invalid Class address range specified (%2).
  290. //
  291. #define CODCLASS_MINIDRIVER_INVALID_CLASS ((NTSTATUS)0xC0060019L)
  292. //
  293. // MessageId: CODCLASS_MINIDRIVER_HW_UNSUPCLASSED
  294. //
  295. // MessageText:
  296. //
  297. // Codec Minidriver reported error:
  298. // Revision of hardware detected is not supported (%2).
  299. //
  300. #define CODCLASS_MINIDRIVER_HW_UNSUPCLASSED ((NTSTATUS)0xC006001AL)
  301. //
  302. // MessageId: CODCLASS_NO_GLOBAL_INFO_POOL
  303. //
  304. // MessageText:
  305. //
  306. // Could not allocate MPEG info structure.
  307. //
  308. #define CODCLASS_NO_GLOBAL_INFO_POOL ((NTSTATUS)0xC006001BL)
  309. //
  310. // MessageId: CODCLASS_NO_MINIDRIVER_INFO
  311. //
  312. // MessageText:
  313. //
  314. // Could not find MPEG info structure.
  315. //
  316. #define CODCLASS_NO_MINIDRIVER_INFO ((NTSTATUS)0xC006001CL)
  317. //
  318. // MessageId: CODCLASS_NO_ACCESS_RANGE_POOL
  319. //
  320. // MessageText:
  321. //
  322. // Could not allocate access range space
  323. //
  324. #define CODCLASS_NO_ACCESS_RANGE_POOL ((NTSTATUS)0xC006001DL)
  325. //
  326. // MessageId: CODCLASS_NO_STREAM_INFO_POOL
  327. //
  328. // MessageText:
  329. //
  330. // Could not allocate stream information structure
  331. //
  332. #define CODCLASS_NO_STREAM_INFO_POOL ((NTSTATUS)0xC006001EL)
  333. //
  334. // MessageId: CODCLASS_MINIDRIVER_VIDEO_FAILED
  335. //
  336. // MessageText:
  337. //
  338. // Codec Minidriver reported error:
  339. // Video device failed (%2).
  340. //
  341. #define CODCLASS_MINIDRIVER_VIDEO_FAILED ((NTSTATUS)0xC006001FL)
  342. //
  343. // MessageId: CODCLASS_MINIDRIVER_AUDIO_FAILED
  344. //
  345. // MessageText:
  346. //
  347. // Codec Minidriver reported error:
  348. // Audio device failed (%2).
  349. //
  350. #define CODCLASS_MINIDRIVER_AUDIO_FAILED ((NTSTATUS)0xC0060020L)
  351. //
  352. // MessageId: CODCLASS_MINIDRIVER_OVERLAY_FAILED
  353. //
  354. // MessageText:
  355. //
  356. // Codec Minidriver reported error:
  357. // Overlay device failed (%2).
  358. //
  359. #define CODCLASS_MINIDRIVER_OVERLAY_FAILED ((NTSTATUS)0xC0060021L)