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.

470 lines
9.8 KiB

  1. ///////////////////////////////////////////////////////////////////////////
  2. //
  3. // ASFErr.h - definition of ASF HRESULT codes
  4. //
  5. // Microsoft Windows Media Technology
  6. // Copyright (C) Microsoft Corporation, 1999 - 2001. All Rights Reserved.
  7. //
  8. // This file is generated by the MC tool from ASFErr.mc
  9. //
  10. #ifndef _ASFERR_H
  11. #define _ASFERR_H
  12. #define STATUS_SEVERITY(hr) (((hr) >> 30) & 0x3)
  13. ///////////////////////////////////////////////////////////////////////////
  14. //
  15. // Advanced Streaming Format (ASF) Errors (2000 - 2999)
  16. //
  17. //
  18. // Values are 32 bit values layed out as follows:
  19. //
  20. // 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
  21. // 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
  22. // +---+-+-+-----------------------+-------------------------------+
  23. // |Sev|C|R| Facility | Code |
  24. // +---+-+-+-----------------------+-------------------------------+
  25. //
  26. // where
  27. //
  28. // Sev - is the severity code
  29. //
  30. // 00 - Success
  31. // 01 - Informational
  32. // 10 - Warning
  33. // 11 - Error
  34. //
  35. // C - is the Customer code flag
  36. //
  37. // R - is a reserved bit
  38. //
  39. // Facility - is the facility code
  40. //
  41. // Code - is the facility's status code
  42. //
  43. //
  44. // Define the facility codes
  45. //
  46. #define FACILITY_NS 0xD
  47. //
  48. // Define the severity codes
  49. //
  50. #define STATUS_SEVERITY_WARNING 0x2
  51. #define STATUS_SEVERITY_SUCCESS 0x0
  52. #define STATUS_SEVERITY_INFORMATIONAL 0x1
  53. #define STATUS_SEVERITY_ERROR 0x3
  54. //
  55. // MessageId: ASF_E_BUFFEROVERRUN
  56. //
  57. // MessageText:
  58. //
  59. // An attempt was made to seek or position past the end of a buffer.%0
  60. //
  61. #define ASF_E_BUFFEROVERRUN 0xC00D07D0L
  62. //
  63. // MessageId: ASF_E_BUFFERTOOSMALL
  64. //
  65. // MessageText:
  66. //
  67. // The supplied input or output buffer was too small.%0
  68. //
  69. #define ASF_E_BUFFERTOOSMALL 0xC00D07D1L
  70. //
  71. // MessageId: ASF_E_BADLANGUAGEID
  72. //
  73. // MessageText:
  74. //
  75. // The language ID was not found.%0
  76. //
  77. #define ASF_E_BADLANGUAGEID 0xC00D07D2L
  78. //
  79. // MessageId: ASF_E_NOPAYLOADLENGTH
  80. //
  81. // MessageText:
  82. //
  83. // The multiple payload packet is missing the payload length.%0
  84. //
  85. #define ASF_E_NOPAYLOADLENGTH 0xC00D07DBL
  86. //
  87. // MessageId: ASF_E_TOOMANYPAYLOADS
  88. //
  89. // MessageText:
  90. //
  91. // The packet contains too many payloads.%0
  92. //
  93. #define ASF_E_TOOMANYPAYLOADS 0xC00D07DCL
  94. //
  95. // MessageId: ASF_E_PACKETCONTENTTOOLARGE
  96. //
  97. // MessageText:
  98. //
  99. // ASF_E_PACKETCONTENTTOOLARGE
  100. //
  101. #define ASF_E_PACKETCONTENTTOOLARGE 0xC00D07DEL
  102. //
  103. // MessageId: ASF_E_UNKNOWNPACKETSIZE
  104. //
  105. // MessageText:
  106. //
  107. // Expecting a fixed packet size but min. and max. are not equal.%0
  108. //
  109. #define ASF_E_UNKNOWNPACKETSIZE 0xC00D07E0L
  110. //
  111. // MessageId: ASF_E_INVALIDHEADER
  112. //
  113. // MessageText:
  114. //
  115. // ASF_E_INVALIDHEADER
  116. //
  117. #define ASF_E_INVALIDHEADER 0xC00D07E2L
  118. //
  119. // MessageId: ASF_E_NOCLOCKOBJECT
  120. //
  121. // MessageText:
  122. //
  123. // The object does not have a valid clock object.%0
  124. //
  125. #define ASF_E_NOCLOCKOBJECT 0xC00D07E6L
  126. //
  127. // MessageId: ASF_E_UNKNOWNCLOCKTYPE
  128. //
  129. // MessageText:
  130. //
  131. // ASF_E_UNKNOWNCLOCKTYPE
  132. //
  133. #define ASF_E_UNKNOWNCLOCKTYPE 0xC00D07EBL
  134. //
  135. // MessageId: ASF_E_OPAQUEPACKET
  136. //
  137. // MessageText:
  138. //
  139. // An attempt was made to restore or access an opaque packet.%0
  140. //
  141. #define ASF_E_OPAQUEPACKET 0xC00D07EDL
  142. //
  143. // MessageId: ASF_E_WRONGVERSION
  144. //
  145. // MessageText:
  146. //
  147. // ASF_E_WRONGVERSION
  148. //
  149. #define ASF_E_WRONGVERSION 0xC00D07EEL
  150. //
  151. // MessageId: ASF_E_OVERFLOW
  152. //
  153. // MessageText:
  154. //
  155. // An attempt was made to store a value which was larger than then destination's maximum value.%0
  156. //
  157. #define ASF_E_OVERFLOW 0xC00D07EFL
  158. //
  159. // MessageId: ASF_E_NOTFOUND
  160. //
  161. // MessageText:
  162. //
  163. // The object was not found.%0
  164. //
  165. #define ASF_E_NOTFOUND 0xC00D07F0L
  166. //
  167. // Someone else is using MessageIds 2033 & 2034, so we skip them
  168. //
  169. // 2033 = NS_E_NOTHING_TO_DO
  170. // 2034 = NS_E_NO_MULTICAST
  171. //
  172. // MessageId: ASF_E_OBJECTTOOBIG
  173. //
  174. // MessageText:
  175. //
  176. // The object is too large to be processed in the requested manner.%0
  177. //
  178. #define ASF_E_OBJECTTOOBIG 0xC00D07F3L
  179. //
  180. // MessageId: ASF_E_UNEXPECTEDVALUE
  181. //
  182. // MessageText:
  183. //
  184. // A value was not set as expected.%0
  185. //
  186. #define ASF_E_UNEXPECTEDVALUE 0xC00D07F4L
  187. //
  188. // MessageId: ASF_E_INVALIDSTATE
  189. //
  190. // MessageText:
  191. //
  192. // The request is not valid in the object's current state.%0
  193. //
  194. #define ASF_E_INVALIDSTATE 0xC00D07F5L
  195. //
  196. // MessageId: ASF_E_NOLIBRARY
  197. //
  198. // MessageText:
  199. //
  200. // This object does not have a valid library pointer; it was not properly created or it has been Shutdown().%0
  201. //
  202. #define ASF_E_NOLIBRARY 0xC00D07F6L
  203. //
  204. // MessageId: ASF_E_ALREADYINITIALIZED
  205. //
  206. // MessageText:
  207. //
  208. // This object has already been initialized; the setting cannot be changed.%0
  209. //
  210. #define ASF_E_ALREADYINITIALIZED 0xC00D07F7L
  211. //
  212. // MessageId: ASF_E_INVALIDINIT
  213. //
  214. // MessageText:
  215. //
  216. // This object has not been initialized properly; that operation cannot be performed.%0
  217. //
  218. #define ASF_E_INVALIDINIT 0xC00D07F8L
  219. //
  220. // MessageId: ASF_E_NOHEADEROBJECT
  221. //
  222. // MessageText:
  223. //
  224. // The ASF Header object could not be found.%0
  225. //
  226. #define ASF_E_NOHEADEROBJECT 0xC00D07F9L
  227. //
  228. // MessageId: ASF_E_NODATAOBJECT
  229. //
  230. // MessageText:
  231. //
  232. // The ASF Data object could not be found.%0
  233. //
  234. #define ASF_E_NODATAOBJECT 0xC00D07FAL
  235. //
  236. // MessageId: ASF_E_NOINDEXOBJECT
  237. //
  238. // MessageText:
  239. //
  240. // The ASF Index object could not be found.%0
  241. //
  242. #define ASF_E_NOINDEXOBJECT 0xC00D07FBL
  243. //
  244. // MessageId: ASF_E_NOSTREAMPROPS
  245. //
  246. // MessageText:
  247. //
  248. // A Stream Properties object with the correct stream number could not be found.%0
  249. //
  250. #define ASF_E_NOSTREAMPROPS 0xC00D07FCL
  251. //
  252. // MessageId: ASF_E_NOFILEPROPS
  253. //
  254. // MessageText:
  255. //
  256. // The File Properties object could not be found.%0
  257. //
  258. #define ASF_E_NOFILEPROPS 0xC00D07FDL
  259. //
  260. // MessageId: ASF_E_NOLANGUAGELIST
  261. //
  262. // MessageText:
  263. //
  264. // The Language List object could not be found.%0
  265. //
  266. #define ASF_E_NOLANGUAGELIST 0xC00D07FEL
  267. //
  268. // MessageId: ASF_E_NOINDEXPARAMETERS
  269. //
  270. // MessageText:
  271. //
  272. // The Index Parameters object could not be found.%0
  273. //
  274. #define ASF_E_NOINDEXPARAMETERS 0xC00D07FFL
  275. //
  276. // MessageId: ASF_E_UNSUPPORTEDERRORCONCEALMENT
  277. //
  278. // MessageText:
  279. //
  280. // The requested error concealment strategy is not supported by this component.%0
  281. //
  282. #define ASF_E_UNSUPPORTEDERRORCONCEALMENT 0xC00D0800L
  283. //
  284. // MessageId: ASF_E_INVALIDFLAGS
  285. //
  286. // MessageText:
  287. //
  288. // The flags for this object or set of objects are not properly set.%0
  289. //
  290. #define ASF_E_INVALIDFLAGS 0xC00D0801L
  291. //
  292. // MessageId: ASF_E_BADDATADESCRIPTOR
  293. //
  294. // MessageText:
  295. //
  296. // One or more data descriptors is not properly set.%0
  297. //
  298. #define ASF_E_BADDATADESCRIPTOR 0xC00D0802L
  299. //
  300. // MessageId: ASF_E_BADINDEXTIMEINTERVAL
  301. //
  302. // MessageText:
  303. //
  304. // The index has an invalid time interval (probably zero).%0
  305. //
  306. #define ASF_E_BADINDEXTIMEINTERVAL 0xC00D0803L
  307. //
  308. // MessageId: ASF_E_INVALIDTIME
  309. //
  310. // MessageText:
  311. //
  312. // The given time value is not valid.%0
  313. //
  314. #define ASF_E_INVALIDTIME 0xC00D0804L
  315. //
  316. // MessageId: ASF_E_INVALIDINDEX
  317. //
  318. // MessageText:
  319. //
  320. // The given index value is not valid.%0
  321. //
  322. #define ASF_E_INVALIDINDEX 0xC00D0805L
  323. //
  324. // MessageId: ASF_E_STREAMNUMBERINUSE
  325. //
  326. // MessageText:
  327. //
  328. // The specified stream number is already in use.%0
  329. //
  330. #define ASF_E_STREAMNUMBERINUSE 0xC00D0806L
  331. //
  332. // MessageId: ASF_E_BADMEDIATYPE
  333. //
  334. // MessageText:
  335. //
  336. // The specified media type does not work with this component.%0
  337. //
  338. #define ASF_E_BADMEDIATYPE 0xC00D0807L
  339. //
  340. // MessageId: ASF_E_WRITEFAILED
  341. //
  342. // MessageText:
  343. //
  344. // The object could not be written as specified.%0
  345. //
  346. #define ASF_E_WRITEFAILED 0xC00D0808L
  347. //
  348. // MessageId: ASF_E_NOTENOUGHDESCRIPTORS
  349. //
  350. // MessageText:
  351. //
  352. // The given data unit requires a larger number of descriptors to be fully parsed.%0
  353. //
  354. #define ASF_E_NOTENOUGHDESCRIPTORS 0xC00D0809L
  355. //
  356. // MessageId: ASF_E_INDEXBLOCKUNLOADED
  357. //
  358. // MessageText:
  359. //
  360. // The index entries for the specified index block have been unloaded from memory and are not available.%0
  361. //
  362. #define ASF_E_INDEXBLOCKUNLOADED 0xC00D080AL
  363. //
  364. // MessageId: ASF_E_NOTENOUGHBANDWIDTH
  365. //
  366. // MessageText:
  367. //
  368. // The specified bandwidth is not large enough.%0
  369. //
  370. #define ASF_E_NOTENOUGHBANDWIDTH 0xC00D080BL
  371. //
  372. // MessageId: ASF_E_EXCEEDEDMAXIMUMOBJECTSIZE
  373. //
  374. // MessageText:
  375. //
  376. // The object has exceeded its maximum size.%0
  377. //
  378. #define ASF_E_EXCEEDEDMAXIMUMOBJECTSIZE 0xC00D080CL
  379. //
  380. // MessageId: ASF_E_BADDATAUNIT
  381. //
  382. // MessageText:
  383. //
  384. // The given data unit is corrupted, badly formatted, or otherwise not valid.%0
  385. //
  386. #define ASF_E_BADDATAUNIT 0xC00D080DL
  387. //
  388. // MessageId: ASF_E_HEADERSIZE
  389. //
  390. // MessageText:
  391. //
  392. // The ASF header has exceeded the specified maximum size.%0
  393. //
  394. #define ASF_E_HEADERSIZE 0xC00D080EL
  395. ///////////////////////////////////////////////////////////////////////////
  396. //
  397. // Advanced Streaming Format (ASF) Success Codes (2000 - 2999)
  398. //
  399. //
  400. // MessageId: ASF_S_OPAQUEPACKET
  401. //
  402. // MessageText:
  403. //
  404. // ASF_S_OPAQUEPACKET
  405. //
  406. #define ASF_S_OPAQUEPACKET 0x000D07F0L
  407. ///////////////////////////////////////////////////////////////////////////
  408. //
  409. // Advanced Streaming Format (ASF) Warnings (2000 - 2999)
  410. //
  411. #endif // _ASFERR_H