asferr.h 11 KB

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