1
0

ASFErr.h 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. //=========================================================================
  2. //
  3. // THIS SOFTWARE HAS BEEN LICENSED FROM MICROSOFT CORPORATION PURSUANT
  4. // TO THE TERMS OF AN END USER LICENSE AGREEMENT ("EULA").
  5. // PLEASE REFER TO THE TEXT OF THE EULA TO DETERMINE THE RIGHTS TO USE THE SOFTWARE.
  6. //
  7. // Copyright (C) Microsoft Corporation, 1996 - 1998 All Rights Reserved.
  8. //
  9. //=========================================================================
  10. ///////////////////////////////////////////////////////////////////////////
  11. //
  12. // ASFErr.h - definition of ASF HRESULT codes
  13. //
  14. // Copyright (C) Microsoft Corporation, 1997 - 1998
  15. //
  16. // This file is generated by the MC tool from ASFErr.mc
  17. //
  18. #ifndef _ASFERR_H
  19. #define _ASFERR_H
  20. #define STATUS_SEVERITY(hr) (((hr) >> 30) & 0x3)
  21. ///////////////////////////////////////////////////////////////////////////
  22. //
  23. // Advanced Streaming Format (ASF) Errors (2000 - 2999)
  24. //
  25. //
  26. // Values are 32 bit values layed out as follows:
  27. //
  28. // 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
  29. // 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
  30. // +---+-+-+-----------------------+-------------------------------+
  31. // |Sev|C|R| Facility | Code |
  32. // +---+-+-+-----------------------+-------------------------------+
  33. //
  34. // where
  35. //
  36. // Sev - is the severity code
  37. //
  38. // 00 - Success
  39. // 01 - Informational
  40. // 10 - Warning
  41. // 11 - Error
  42. //
  43. // C - is the Customer code flag
  44. //
  45. // R - is a reserved bit
  46. //
  47. // Facility - is the facility code
  48. //
  49. // Code - is the facility's status code
  50. //
  51. //
  52. // Define the facility codes
  53. //
  54. #define FACILITY_NS 0xD
  55. //
  56. // Define the severity codes
  57. //
  58. #define STATUS_SEVERITY_WARNING 0x2
  59. #define STATUS_SEVERITY_SUCCESS 0x0
  60. #define STATUS_SEVERITY_INFORMATIONAL 0x1
  61. #define STATUS_SEVERITY_ERROR 0x3
  62. //
  63. // MessageId: ASF_E_BUFFEROVERRUN
  64. //
  65. // MessageText:
  66. //
  67. // An attempt was made to seek or position past the end of a buffer.%0
  68. //
  69. #define ASF_E_BUFFEROVERRUN 0xC00D07D0L
  70. //
  71. // MessageId: ASF_E_BUFFERTOOSMALL
  72. //
  73. // MessageText:
  74. //
  75. // The supplied input or output buffer was too small.%0
  76. //
  77. #define ASF_E_BUFFERTOOSMALL 0xC00D07D1L
  78. //
  79. // MessageId: ASF_E_BADLANGUAGEID
  80. //
  81. // MessageText:
  82. //
  83. // The language ID was not found.%0
  84. //
  85. #define ASF_E_BADLANGUAGEID 0xC00D07D2L
  86. //
  87. // MessageId: ASF_E_NOPAYLOADLENGTH
  88. //
  89. // MessageText:
  90. //
  91. // The multiple payload packet is missing the payload length.%0
  92. //
  93. #define ASF_E_NOPAYLOADLENGTH 0xC00D07DBL
  94. //
  95. // MessageId: ASF_E_TOOMANYPAYLOADS
  96. //
  97. // MessageText:
  98. //
  99. // The packet contains too many payloads.%0
  100. //
  101. #define ASF_E_TOOMANYPAYLOADS 0xC00D07DCL
  102. //
  103. // MessageId: ASF_E_PACKETCONTENTTOOLARGE
  104. //
  105. // MessageText:
  106. //
  107. // ASF_E_PACKETCONTENTTOOLARGE
  108. //
  109. #define ASF_E_PACKETCONTENTTOOLARGE 0xC00D07DEL
  110. //
  111. // MessageId: ASF_E_UNKNOWNPACKETSIZE
  112. //
  113. // MessageText:
  114. //
  115. // Expecting a fixed packet size but min. and max. are not equal.%0
  116. //
  117. #define ASF_E_UNKNOWNPACKETSIZE 0xC00D07E0L
  118. //
  119. // MessageId: ASF_E_INVALIDHEADER
  120. //
  121. // MessageText:
  122. //
  123. // ASF_E_INVALIDHEADER
  124. //
  125. #define ASF_E_INVALIDHEADER 0xC00D07E2L
  126. //
  127. // MessageId: ASF_E_NOCLOCKOBJECT
  128. //
  129. // MessageText:
  130. //
  131. // The object does not have a valid clock object.%0
  132. //
  133. #define ASF_E_NOCLOCKOBJECT 0xC00D07E6L
  134. //
  135. // MessageId: ASF_E_UNKNOWNCLOCKTYPE
  136. //
  137. // MessageText:
  138. //
  139. // ASF_E_UNKNOWNCLOCKTYPE
  140. //
  141. #define ASF_E_UNKNOWNCLOCKTYPE 0xC00D07EBL
  142. //
  143. // MessageId: ASF_E_OPAQUEPACKET
  144. //
  145. // MessageText:
  146. //
  147. // An attempt was made to restore or access an opaque packet.%0
  148. //
  149. #define ASF_E_OPAQUEPACKET 0xC00D07EDL
  150. //
  151. // MessageId: ASF_E_WRONGVERSION
  152. //
  153. // MessageText:
  154. //
  155. // ASF_E_WRONGVERSION
  156. //
  157. #define ASF_E_WRONGVERSION 0xC00D07EEL
  158. //
  159. // MessageId: ASF_E_OVERFLOW
  160. //
  161. // MessageText:
  162. //
  163. // An attempt was made to store a value which was larger than then destination's maximum value.%0
  164. //
  165. #define ASF_E_OVERFLOW 0xC00D07EFL
  166. //
  167. // MessageId: ASF_E_NOTFOUND
  168. //
  169. // MessageText:
  170. //
  171. // The object was not found.%0
  172. //
  173. #define ASF_E_NOTFOUND 0xC00D07F0L
  174. //
  175. // MessageId: ASF_E_OBJECTTOOBIG
  176. //
  177. // MessageText:
  178. //
  179. // The object is too large to be processed in the requested manner.%0
  180. //
  181. #define ASF_E_OBJECTTOOBIG 0xC00D07F1L
  182. //
  183. // MessageId: ASF_E_UNEXPECTEDVALUE
  184. //
  185. // MessageText:
  186. //
  187. // A value was not set as expected.%0
  188. //
  189. #define ASF_E_UNEXPECTEDVALUE 0xC00D07F2L
  190. //
  191. // MessageId: ASF_E_INVALIDSTATE
  192. //
  193. // MessageText:
  194. //
  195. // The request is not valid in the object's current state.%0
  196. //
  197. #define ASF_E_INVALIDSTATE 0xC00D07F3L
  198. //
  199. // MessageId: ASF_E_NOLIBRARY
  200. //
  201. // MessageText:
  202. //
  203. // This object does not have a valid library pointer; it has not been Init()'ed or it has been Shutdown().%0
  204. //
  205. #define ASF_E_NOLIBRARY 0xC00D07F4L
  206. ///////////////////////////////////////////////////////////////////////////
  207. //
  208. // Advanced Streaming Format (ASF) Success Codes (2000 - 2999)
  209. //
  210. //
  211. // MessageId: ASF_S_OPAQUEPACKET
  212. //
  213. // MessageText:
  214. //
  215. // ASF_S_OPAQUEPACKET
  216. //
  217. #define ASF_S_OPAQUEPACKET 0x000D07F0L
  218. ///////////////////////////////////////////////////////////////////////////
  219. //
  220. // Advanced Streaming Format (ASF) Warnings (2000 - 2999)
  221. //
  222. #endif // _ASFERR_H