home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / header45.zip / meerror.h < prev    next >
C/C++ Source or Header  |  1999-03-15  |  21KB  |  412 lines

  1. /****************************************************************************/
  2. /*                                                                          */
  3. /* Module Name: MEERROR.H                                                   */
  4. /*                                                                          */
  5. /* OS/2 2.0 Multimedia Extensions Error Return Codes                        */
  6. /*                                                                          */
  7. /* Copyright (c) International Business Machines Corporation 1991, 1992     */
  8. /*                        All Rights Reserved                               */
  9. /*                                                                          */
  10. /****************************************************************************/
  11. /* NOINC */
  12. #ifdef __cplusplus
  13.    extern "C" {
  14. #endif
  15. /* INC */
  16.  
  17.  
  18. #ifndef _MEERROR_H_
  19. #define _MEERROR_H_
  20. #endif
  21.  
  22. #ifndef NO_ERROR
  23. #define NO_ERROR                          0
  24. #endif
  25.  
  26. /*****************************************/
  27. /* MCI Device Manager Error Return codes */
  28. /*****************************************/
  29.  
  30. #define MCIERR_BASE                      5000
  31. #define MCIERR_SUCCESS                   0
  32. #define MCIERR_INVALID_DEVICE_ID         (MCIERR_BASE + 1)
  33. #define MCIERR_NO_MASTER                 (MCIERR_BASE + 2)
  34. #define MCIERR_UNRECOGNIZED_KEYWORD      (MCIERR_BASE + 3)
  35. #define MCIERR_MASTER_CONFLICT           (MCIERR_BASE + 4)
  36. #define MCIERR_UNRECOGNIZED_COMMAND      (MCIERR_BASE + 5)
  37. #define MCIERR_HARDWARE                  (MCIERR_BASE + 6)
  38. #define MCIERR_INVALID_DEVICE_NAME       (MCIERR_BASE + 7)
  39. #define MCIERR_OUT_OF_MEMORY             (MCIERR_BASE + 8)
  40. #define MCIERR_DEVICE_OPEN               (MCIERR_BASE + 9)
  41. #define MCIERR_CANNOT_LOAD_DRIVER        (MCIERR_BASE + 10)
  42. #define MCIERR_MISSING_COMMAND_STRING    (MCIERR_BASE + 11)
  43. #define MCIERR_PARAM_OVERFLOW            (MCIERR_BASE + 12)
  44. #define MCIERR_MISSING_STRING_ARGUMENT   (MCIERR_BASE + 13)
  45. #define MCIERR_BAD_INTEGER               (MCIERR_BASE + 14)
  46. #define MCIERR_PARSER_INTERNAL           (MCIERR_BASE + 15)
  47. #define MCIERR_DRIVER_INTERNAL           (MCIERR_BASE + 16)
  48. #define MCIERR_MISSING_PARAMETER         (MCIERR_BASE + 17)
  49. #define MCIERR_UNSUPPORTED_FUNCTION      (MCIERR_BASE + 18)
  50. #define MCIERR_FILE_NOT_FOUND            (MCIERR_BASE + 19)
  51. #define MCIERR_DEVICE_NOT_READY          (MCIERR_BASE + 20)
  52. #define MCIERR_INTERNAL                  (MCIERR_BASE + 21)
  53. #define MCIERR_DRIVER                    (MCIERR_BASE + 22)
  54. #define MCIERR_CANNOT_USE_ALL            (MCIERR_BASE + 23)
  55. #define MCIERR_MULTIPLE                  (MCIERR_BASE + 24)
  56. #define MCIERR_EXTENSION_NOT_FOUND       (MCIERR_BASE + 25)
  57. #define MCIERR_OUTOFRANGE                (MCIERR_BASE + 26)
  58. #define MCIERR_CANNOT_ADD_ALIAS          (MCIERR_BASE + 27)
  59. #define MCIERR_FLAGS_NOT_COMPATIBLE      (MCIERR_BASE + 28)
  60. #define MCIERR_CANNOT_USE_NOUNLOAD       (MCIERR_BASE + 29)
  61. #define MCIERR_FILE_NOT_SAVED            (MCIERR_BASE + 30)
  62. #define MCIERR_DEVICE_TYPE_REQUIRED      (MCIERR_BASE + 31)
  63. #define MCIERR_DEVICE_LOCKED             (MCIERR_BASE + 32)
  64. #define MCIERR_DUPLICATE_ALIAS           (MCIERR_BASE + 33)
  65. #define MCIERR_INSTANCE_INACTIVE         (MCIERR_BASE + 34)
  66.  
  67. #define MCIERR_COMMAND_TABLE             (MCIERR_BASE + 35)
  68. #define MCIERR_INI_FILE_LOCKED           (MCIERR_BASE + 37)
  69.  
  70. #define MCIERR_NO_AUDIO_SUPPORT          (MCIERR_BASE + 40)
  71. #define MCIERR_NOT_IN_PM_SESSION         (MCIERR_BASE + 41)
  72. #define MCIERR_DUPLICATE_KEYWORD         (MCIERR_BASE + 42)
  73. #define MCIERR_COMMAND_STRING_OVERFLOW   (MCIERR_BASE + 43)
  74. #define MCIERR_DRIVER_PROC_NOT_FOUND     (MCIERR_BASE + 44)
  75. #define MCIERR_INVALID_DEVICE_TYPE       (MCIERR_BASE + 45)
  76. #define MCIERR_INVALID_DEVICE_ORDINAL    (MCIERR_BASE + 46)
  77. #define MCIERR_HEADPHONES_NOT_SET        (MCIERR_BASE + 47)
  78. #define MCIERR_SPEAKERS_NOT_SET          (MCIERR_BASE + 48)
  79. #define MCIERR_SOUND_NOT_SET             (MCIERR_BASE + 49)
  80. #define MCIERR_INVALID_BUFFER            (MCIERR_BASE + 50)
  81. #define MCIERR_INVALID_MEDIA_TYPE        (MCIERR_BASE + 51)
  82. #define MCIERR_INVALID_CONNECTOR_INDEX   (MCIERR_BASE + 52)
  83. #define MCIERR_NO_CONNECTION             (MCIERR_BASE + 53)
  84. #define MCIERR_INVALID_FLAG              (MCIERR_BASE + 54)
  85. #define MCIERR_CANNOT_LOAD_DSP_MOD       (MCIERR_BASE + 55)
  86. #define MCIERR_ALREADY_CONNECTED         (MCIERR_BASE + 56)
  87. #define MCIERR_INVALID_CALLBACK_HANDLE   (MCIERR_BASE + 57)
  88. #define MCIERR_DRIVER_NOT_FOUND          (MCIERR_BASE + 58)
  89. #define MCIERR_DUPLICATE_DRIVER          (MCIERR_BASE + 59)
  90. #define MCIERR_INI_FILE                  (MCIERR_BASE + 60)
  91. #define MCIERR_INVALID_GROUP_ID          (MCIERR_BASE + 61)
  92. #define MCIERR_ID_ALREADY_IN_GROUP       (MCIERR_BASE + 62)
  93. #define MCIERR_MEDIA_CHANGED             (MCIERR_BASE + 63)
  94. #define MCIERR_MISSING_FLAG              (MCIERR_BASE + 64)
  95. #define MCIERR_UNSUPPORTED_FLAG          (MCIERR_BASE + 65)
  96. #define MCIERR_DRIVER_NOT_LOADED         (MCIERR_BASE + 66)
  97. #define MCIERR_INVALID_MODE              (MCIERR_BASE + 67)
  98. #define MCIERR_INVALID_ITEM_FLAG         (MCIERR_BASE + 68)
  99. #define MCIERR_INVALID_TIME_FORMAT_FLAG  (MCIERR_BASE + 69)
  100. #define MCIERR_SPEED_FORMAT_FLAG         (MCIERR_BASE + 70)
  101. #define MCIERR_INVALID_AUDIO_FLAG        (MCIERR_BASE + 71)
  102. #define MCIERR_NODEFAULT_DEVICE          (MCIERR_BASE + 72)
  103. #define MCIERR_DUPLICATE_EXTENSION       (MCIERR_BASE + 73)
  104. #define MCIERR_FILE_ATTRIBUTE            (MCIERR_BASE + 74)
  105. #define MCIERR_DUPLICATE_CUEPOINT        (MCIERR_BASE + 75)
  106. #define MCIERR_INVALID_CUEPOINT          (MCIERR_BASE + 76)
  107. #define MCIERR_CUEPOINT_LIMIT_REACHED    (MCIERR_BASE + 77)
  108. #define MCIERR_MISSING_ITEM              (MCIERR_BASE + 78)
  109. #define MCIERR_MISSING_TIME_FORMAT       (MCIERR_BASE + 79)
  110. #define MCIERR_MISSING_SPEED_FORMAT      (MCIERR_BASE + 80)
  111. #define MCIERR_INVALID_CONNECTOR_TYPE    (MCIERR_BASE + 81)
  112. #define MCIERR_TARGET_DEVICE_FULL        (MCIERR_BASE + 82)
  113. #define MCIERR_UNSUPPORTED_CONN_TYPE     (MCIERR_BASE + 83)
  114. #define MCIERR_CANNOT_MODIFY_CONNECTOR   (MCIERR_BASE + 84)
  115. #define MCIERR_RECORD_ABORTED            (MCIERR_BASE + 85)
  116. #define MCIERR_GROUP_COMMAND             (MCIERR_BASE + 86)
  117. #define MCIERR_DEVICE_NOT_FOUND          (MCIERR_BASE + 87)
  118. #define MCIERR_RESOURCE_NOT_AVAILABLE    (MCIERR_BASE + 88)
  119. #define MCIERR_INVALID_IO_PROC           (MCIERR_BASE + 89)
  120.  
  121. #define MCIERR_WAVE_OUTPUTSINUSE         (MCIERR_BASE + 90)
  122. #define MCIERR_WAVE_SETOUTPUTINUSE       (MCIERR_BASE + 91)
  123. #define MCIERR_WAVE_INPUTSINUSE          (MCIERR_BASE + 92)
  124. #define MCIERR_WAVE_SETINPUTINUSE        (MCIERR_BASE + 93)
  125. #define MCIERR_WAVE_OUTPUTUNSPECIFIED    (MCIERR_BASE + 94)
  126. #define MCIERR_WAVE_INPUTUNSPECIFIED     (MCIERR_BASE + 95)
  127. #define MCIERR_WAVE_OUTPUTSUNSUITABLE    (MCIERR_BASE + 96)
  128. #define MCIERR_WAVE_SETOUTPUTUNSUITABLE  (MCIERR_BASE + 97)
  129. #define MCIERR_WAVE_INPUTSUNSUITABLE     (MCIERR_BASE + 98)
  130. #define MCIERR_WAVE_SETINPUTUNSUITABLE   (MCIERR_BASE + 99)
  131.  
  132. #define MCIERR_SEQ_DIV_INCOMPATIBLE      (MCIERR_BASE + 100)
  133. #define MCIERR_SEQ_PORT_INUSE            (MCIERR_BASE + 101)
  134. #define MCIERR_SEQ_PORT_NONEXISTENT      (MCIERR_BASE + 102)
  135. #define MCIERR_SEQ_PORT_MAPNODEVICE      (MCIERR_BASE + 103)
  136. #define MCIERR_SEQ_PORT_MISCERROR        (MCIERR_BASE + 104)
  137. #define MCIERR_SEQ_TIMER                 (MCIERR_BASE + 105)
  138.  
  139. #define MCIERR_VDP_COMMANDCANCELLED      (MCIERR_BASE + 106)
  140. #define MCIERR_VDP_COMMANDFAILURE        (MCIERR_BASE + 107)
  141. #define MCIERR_VDP_NOTSPUNUP             (MCIERR_BASE + 108)
  142. #define MCIERR_VDP_NOCHAPTER             (MCIERR_BASE + 109)
  143. #define MCIERR_VDP_NOSIDE                (MCIERR_BASE + 110)
  144. #define MCIERR_VDP_NOSIZE                (MCIERR_BASE + 111)
  145. #define MCIERR_VDP_INVALID_TIMEFORMAT    (MCIERR_BASE + 112)
  146.  
  147. #define MCIERR_CLIPBOARD_ERROR           (MCIERR_BASE + 114)
  148. #define MCIERR_CANNOT_CONVERT            (MCIERR_BASE + 115)
  149. #define MCIERR_CANNOT_REDO               (MCIERR_BASE + 116)
  150. #define MCIERR_CANNOT_UNDO               (MCIERR_BASE + 117)
  151. #define MCIERR_CLIPBOARD_EMPTY           (MCIERR_BASE + 118)
  152.  
  153. #define MCIERR_INVALID_WORKPATH          (MCIERR_BASE + 119)
  154. #define MCIERR_INDETERMINATE_LENGTH      (MCIERR_BASE + 120)
  155. #define MCIERR_DUPLICATE_EA              (MCIERR_BASE + 121)
  156. #define MCIERR_INVALID_CONNECTION        (MCIERR_BASE + 122)
  157. #define MCIERR_CHANNEL_OFF               (MCIERR_BASE + 123)
  158. #define MCIERR_CANNOT_CHANGE_CHANNEL     (MCIERR_BASE + 124)
  159. #define MCIERR_FILE_IO                   (MCIERR_BASE + 125)
  160. #define MCIERR_SYSTEM_FILE               (MCIERR_BASE + 126)
  161. #define MCIERR_DISPLAY_RESOLUTION        (MCIERR_BASE + 127)
  162. #define MCIERR_NO_ASYNC_PLAY_ACTIVE      (MCIERR_BASE + 128)
  163.  
  164. #define MCIERR_UNSUPP_FORMAT_TAG         (MCIERR_BASE + 129)
  165. #define MCIERR_UNSUPP_SAMPLESPERSEC      (MCIERR_BASE + 130)
  166. #define MCIERR_UNSUPP_BITSPERSAMPLE      (MCIERR_BASE + 131)
  167. #define MCIERR_UNSUPP_CHANNELS           (MCIERR_BASE + 132)
  168. #define MCIERR_UNSUPP_FORMAT_MODE        (MCIERR_BASE + 133)
  169. #define MCIERR_NO_DEVICE_DRIVER          (MCIERR_BASE + 134)
  170. #define MCIERR_CODEC_NOT_SUPPORTED       (MCIERR_BASE + 135)
  171.  
  172. #define MCIERR_TUNER_NO_HW               (MCIERR_BASE + 136)
  173. #define MCIERR_TUNER_NO_AFC              (MCIERR_BASE + 137)
  174. #define MCIERR_TUNER_AFC_ON              (MCIERR_BASE + 138)
  175. #define MCIERR_TUNER_CHANNEL_SKIPPED     (MCIERR_BASE + 139)
  176. #define MCIERR_TUNER_CHANNEL_TOO_LOW     (MCIERR_BASE + 140)
  177. #define MCIERR_TUNER_CHANNEL_TOO_HIGH    (MCIERR_BASE + 141)
  178. #define MCIERR_AUD_CHANNEL_OUTOFRANGE    (MCIERR_BASE + 142)
  179. #define MCIERR_TUNER_INVALID_REGION      (MCIERR_BASE + 143)
  180. #define MCIERR_SIGNAL_INVALID            (MCIERR_BASE + 144)
  181. #define MCIERR_TUNER_MODE                (MCIERR_BASE + 145)
  182. #define MCIERR_TUNER_REGION_NOT_SET      (MCIERR_BASE + 146)
  183. #define MCIERR_TUNER_CHANNEL_NOT_SET     (MCIERR_BASE + 147)
  184. #define MCIERR_UNSUPP_CLASS              (MCIERR_BASE + 148)
  185. #define MCIERR_UNSUPPORTED_ATTRIBUTE     (MCIERR_BASE + 149)
  186.  
  187. #define MCIERR_CUSTOM_DRIVER_BASE        (MCIERR_BASE + 256)
  188.  
  189.  
  190. /******************************************/
  191. /* Sync/Stream Manager Error Return codes */
  192. /******************************************/
  193.  
  194. #define MEBASE                           (MCIERR_BASE + 500)
  195. #define ERROR_INVALID_STREAM             (MEBASE + 1)
  196. #define ERROR_INVALID_HID                (MEBASE + 2)
  197. #define ERROR_INVALID_NETWORK            (MEBASE + 3)
  198. #define ERROR_INVALID_OBJTYPE            (MEBASE + 4)
  199. #define ERROR_INVALID_FLAG               (MEBASE + 5)
  200. #define ERROR_INVALID_EVCB               (MEBASE + 6)
  201. #define ERROR_INVALID_EVENT              (MEBASE + 7)
  202. #define ERROR_INVALID_MMTIME             (MEBASE + 8)
  203. #define ERROR_INVALID_NUMSLAVES          (MEBASE + 9)
  204. #define ERROR_INVALID_REQUEST            (MEBASE + 10)
  205. #define ERROR_INVALID_SPCBKEY            (MEBASE + 11)
  206. #define ERROR_INVALID_HNDLR_NAME         (MEBASE + 12)
  207. #define ERROR_INVALID_PROTOCOL           (MEBASE + 13)
  208. #define ERROR_INVALID_BUFFER_SIZE        (MEBASE + 14)
  209. #define ERROR_INVALID_BUFFER_RETURNED    (MEBASE + 15)
  210. #define ERROR_INVALID_ACB                (MEBASE + 16)
  211. #define ERROR_INVALID_RECORD_RETURNED    (MEBASE + 17)
  212. #define ERROR_INVALID_MESSAGE            (MEBASE + 18)
  213.  
  214. #define ERROR_STREAM_NOT_OWNER           (MEBASE + 99)
  215. #define ERROR_STREAM_USED                (MEBASE + 100)
  216. #define ERROR_STREAM_CREATION            (MEBASE + 101)
  217. #define ERROR_STREAM_NOTMASTER           (MEBASE + 102)
  218. #define ERROR_STREAM_NOT_STOP            (MEBASE + 103)
  219. #define ERROR_STREAM_OPERATION           (MEBASE + 104)
  220. #define ERROR_STREAM_STOP_PENDING        (MEBASE + 105)
  221. #define ERROR_STREAM_ALREADY_STOP        (MEBASE + 106)
  222. #define ERROR_STREAM_ALREADY_PAUSE       (MEBASE + 107)
  223. #define ERROR_STREAM_NOT_STARTED         (MEBASE + 108)
  224. #define ERROR_STREAM_NOT_ACTIVE          (MEBASE + 109)
  225. #define ERROR_START_STREAM               (MEBASE + 110)
  226. #define ERROR_MASTER_USED                (MEBASE + 111)
  227. #define ERROR_SPCBKEY_MISMATCH           (MEBASE + 112)
  228. #define ERROR_INSUFF_BUFFER              (MEBASE + 113)
  229. #define ERROR_ALLOC_RESOURCES            (MEBASE + 114)
  230. #define ERROR_ACCESS_OBJECT              (MEBASE + 115)
  231. #define ERROR_HNDLR_REGISTERED           (MEBASE + 116)
  232. #define ERROR_DATA_ITEM_NOT_SPECIFIED    (MEBASE + 117)
  233. #define ERROR_INVALID_SEQUENCE           (MEBASE + 118)
  234. #define ERROR_INITIALIZATION             (MEBASE + 119)
  235. #define ERROR_READING_INI                (MEBASE + 120)
  236. #define ERROR_LOADING_HNDLR              (MEBASE + 121)
  237. #define ERROR_HNDLR_NOT_FOUND            (MEBASE + 122)
  238. #define ERROR_SPCB_NOT_FOUND             (MEBASE + 123)
  239. #define ERROR_DEVICE_NOT_FOUND           (MEBASE + 124)
  240. #define ERROR_TOO_MANY_EVENTS            (MEBASE + 125)
  241. #define ERROR_DEVICE_OVERRUN             (MEBASE + 126)
  242. #define ERROR_DEVICE_UNDERRUN            (MEBASE + 127)
  243. #define ERROR_HNDLR_NOT_IN_INI           (MEBASE + 128)
  244. #define ERROR_QUERY_STREAM_TIME          (MEBASE + 129)
  245. #define ERROR_DATA_ITEM_NOT_SEEKABLE     (MEBASE + 130)
  246. #define ERROR_NOT_SEEKABLE_BY_TIME       (MEBASE + 131)
  247. #define ERROR_NOT_SEEKABLE_BY_BYTES      (MEBASE + 132)
  248. #define ERROR_STREAM_NOT_SEEKABLE        (MEBASE + 133)
  249. #define ERROR_PLAYLIST_STACK_OVERFLOW    (MEBASE + 135)
  250. #define ERROR_PLAYLIST_STACK_UNDERFLOW   (MEBASE + 136)
  251. #define ERROR_LOCKING_BUFFER             (MEBASE + 137)
  252. #define ERROR_UNLOCKING_BUFFER           (MEBASE + 138)
  253. #define ERROR_SEEK_PAST_END              (MEBASE + 139)
  254. #define ERROR_SEEK_BACK_NOT_SUPPORTED    (MEBASE + 140)
  255. #define ERROR_INTERNAL_ERROR             (MEBASE + 141)
  256. #define ERROR_INTERNAL_CORRUPT           (MEBASE + 142)
  257. #define ERROR_INSUFF_MEM                 (MEBASE + 143)
  258. #define ERROR_LARGE_SEEK_BY_TIME         (MEBASE + 144)
  259. #define ERROR_STREAM_PREROLLING          (MEBASE + 145)
  260. #define ERROR_INI_FILE                   (MEBASE + 146)
  261. #define ERROR_SEEK_BEFORE_BEGINNING      (MEBASE + 147)
  262. #define ERROR_TOO_MANY_HANDLERS          (MEBASE + 148)
  263. #define ERROR_ALLOC_HEAP                 (MEBASE + 149)
  264. #define ERROR_END_OF_PLAYLIST            (MEBASE + 150)
  265. #define ERROR_TOO_MANY_STREAMS           (MEBASE + 151)
  266. #define ERROR_FILE_FORMAT_INCORRECT      (MEBASE + 152)
  267. #define ERROR_DESTROY_STREAM             (MEBASE + 153)
  268. #define ERROR_INVALID_NUMMASTERS         (MEBASE + 154)
  269. #define ERROR_MASTER_CONFLICT            (MEBASE + 155)
  270. #define ERROR_NO_MASTER                  (MEBASE + 156)
  271. #define ERROR_NO_SYNC                    (MEBASE + 157)
  272. #define ERROR_STREAM_ALREADY_IN_NETWORK  (MEBASE + 158)
  273. #define ERROR_NO_STREAMS_IN_NETWORK      (MEBASE + 159)
  274. #define ERROR_MISSING_EVENT_ROUTINE      (MEBASE + 160)
  275. #define ERROR_CAN_NOT_REMOVE_STREAM      (MEBASE + 161)
  276.  
  277. #define ERROR_BUFFER_NOT_AVAILABLE       (MEBASE + 400)
  278. #define ERROR_TOO_MANY_BUFFERS           (MEBASE + 401)
  279. #define ERROR_TOO_MANY_RECORDS           (MEBASE + 402)
  280.  
  281.  
  282. /*----- ERROR_INVALID_PROTOCOL ulErrorStatus defines -----*/
  283. /*----- Refer to SHC_NEGOTIATE_RESULT api.*/
  284. #define PROTOCOL_SPCBLENGTH             1
  285. #define PROTOCOL_SPCBKEY                2
  286. #define PROTOCOL_DATAFLAG               3
  287. #define PROTOCOL_NUMRECORDS             4
  288. #define PROTOCOL_BLOCKSIZE              5
  289. #define PROTOCOL_BUFFERSIZE             6
  290. #define PROTOCOL_MINNUMBUFFERS          7
  291. #define PROTOCOL_MAXNUMBUFFERS          8
  292. #define PROTOCOL_SOURCESTART            9
  293. #define PROTOCOL_TARGETSTART            10
  294. #define PROTOCOL_BUFFERFLAG             11
  295. #define PROTOCOL_HANDLERFLAG            12
  296. #define PROTOCOL_SYNCTOLERANCE          13
  297. #define PROTOCOL_SYNCINTERVAL           14
  298. #define PROTOCOL_INTERNALERROR          -1
  299.  
  300. /***********************************/
  301. /* MMIO Manager Error Return codes */
  302. /***********************************/
  303.  
  304. #define MMIOERR_BASE                    (MEBASE + 1000)
  305. #define MMIOERR_UNBUFFERED              (MMIOERR_BASE + 1L)
  306. #define MMIOERR_CANNOTWRITE             (MMIOERR_BASE + 2L)
  307. #define MMIOERR_CHUNKNOTFOUND           (MMIOERR_BASE + 3L)
  308.  
  309. #define MMIOERR_INVALID_HANDLE          (MMIOERR_BASE + 4L)
  310. #define MMIOERR_INVALID_PARAMETER       (MMIOERR_BASE + 5L)
  311. #define MMIOERR_INTERNAL_SYSTEM         (MMIOERR_BASE + 6L)
  312. #define MMIOERR_NO_CORE                 (MMIOERR_BASE + 7L)
  313.  
  314. #define MMIOERR_INI_OPEN                (MMIOERR_BASE + 8L)
  315. #define MMIOERR_INI_READ                (MMIOERR_BASE + 9L)
  316.  
  317. #define MMIOERR_INVALID_BUFFER_LENGTH   (MMIOERR_BASE + 10L)
  318. #define MMIOERR_NO_BUFFER_ALLOCATED     (MMIOERR_BASE + 11L)
  319. #define MMIOERR_NO_FLUSH_FOR_MEM_FILE   (MMIOERR_BASE + 12L)
  320. #define MMIOERR_NO_FLUSH_NEEDED         (MMIOERR_BASE + 13L)
  321. #define MMIOERR_READ_ONLY_FILE          (MMIOERR_BASE + 14L)
  322. #define MMIOERR_WRITE_ONLY_FILE         (MMIOERR_BASE + 15L)
  323. #define MMIOERR_INSTALL_PROC_FAILED     (MMIOERR_BASE + 16L)
  324. #define MMIOERR_READ_FAILED             (MMIOERR_BASE + 17L)
  325. #define MMIOERR_WRITE_FAILED            (MMIOERR_BASE + 18L)
  326. #define MMIOERR_SEEK_FAILED             (MMIOERR_BASE + 19L)
  327. #define MMIOERR_CANNOTEXPAND            (MMIOERR_BASE + 20L)
  328. #define MMIOERR_FREE_FAILED             (MMIOERR_BASE + 21L)
  329. #define MMIOERR_EOF_SEEN                (MMIOERR_BASE + 22L)
  330. #define MMIOERR_INVALID_ACCESS_FLAG     (MMIOERR_BASE + 23L)
  331. #define MMIOERR_INVALID_STRUCTURE       (MMIOERR_BASE + 24L)
  332. #define MMIOERR_INVALID_SIZE            (MMIOERR_BASE + 25L)
  333. #define MMIOERR_INVALID_FILENAME        (MMIOERR_BASE + 26L)
  334.  
  335. #define MMIOERR_CF_DUPLICATE_SEEN       (MMIOERR_BASE + 27L)
  336. #define MMIOERR_CF_ENTRY_NO_CORE        (MMIOERR_BASE + 28L)
  337. #define MMIOERR_CF_WO_UNSUPPORTED       (MMIOERR_BASE + 29L)
  338. #define MMIOERR_CF_ELEMENTS_OPEN        (MMIOERR_BASE + 30L)
  339. #define MMIOERR_CF_NON_BND_FILE         (MMIOERR_BASE + 31L)
  340. #define MMIOERR_CF_ENTRY_NOT_FOUND      (MMIOERR_BASE + 32L)
  341.  
  342. #define MMIOERR_DELETE_FAILED           (MMIOERR_BASE + 33L)
  343. #define MMIOERR_OUTOFMEMORY             (MMIOERR_BASE + 34L)
  344.  
  345. #define MMIOERR_INVALID_DLLNAME         (MMIOERR_BASE + 35L)
  346. #define MMIOERR_INVALID_PROCEDURENAME   (MMIOERR_BASE + 36L)
  347. #define MMIOERR_MATCH_NOT_FOUND         (MMIOERR_BASE + 37L)
  348.  
  349. #define MMIOERR_SEEK_BEFORE_BEGINNING   (MMIOERR_BASE + 38L)
  350. #define MMIOERR_INVALID_FILE            (MMIOERR_BASE + 39L)
  351. #define MMIOERR_QOSUNAVAILABLE          (MMIOERR_BASE + 40L)
  352. #define MMIOERR_MEDIA_NOT_FOUND         (MMIOERR_BASE + 41L)
  353.  
  354. #define MMIOERR_ERROR_IN_FRAME_DATA     (MMIOERR_BASE + 42L)
  355. #define MMIOERR_INVALID_DIM_ALIGN       (MMIOERR_BASE + 43L)
  356. #define MMIOERR_CODEC_NOT_SUPPORTED     (MMIOERR_BASE + 44L)
  357.  
  358. #define  MMIOERR_UNSUPPORTED_FUNCTION    (MMIOERR_BASE + 45L)
  359. #define  MMIOERR_CLIPBRD_ERROR           (MMIOERR_BASE + 46L)
  360. #define  MMIOERR_CLIPBRD_ACTIVE          (MMIOERR_BASE + 47L)
  361. #define  MMIOERR_CLIPBRD_EMPTY           (MMIOERR_BASE + 48L)
  362. #define  MMIOERR_NEED_NEW_FILENAME       (MMIOERR_BASE + 49L)
  363. #define  MMIOERR_INVALID_TRACK_OPERATION (MMIOERR_BASE + 50L)
  364. #define  MMIOERR_INCOMPATIBLE_DATA       (MMIOERR_BASE + 51L)
  365. #define  MMIOERR_ACCESS_DENIED           (MMIOERR_BASE + 52L)
  366. #define  MMIOERR_MISSING_FLAG            (MMIOERR_BASE + 53L)
  367. #define  MMIOERR_INVALID_ITEM_FLAG       (MMIOERR_BASE + 54L)
  368.  
  369. /*************************************/
  370. /* Real-Time MIDI Error Return Codes */
  371. /*************************************/
  372.  
  373. #define MIDIERR_BASE                      (MMIOERR_BASE + 500)
  374.  
  375. #define MIDIERR_DUPLICATE_INSTANCE_NAME   (MIDIERR_BASE + 1L)
  376. #define MIDIERR_HARDWARE_FAILED           (MIDIERR_BASE + 2L)
  377. #define MIDIERR_INTERNAL_SYSTEM           (MIDIERR_BASE + 3L)
  378. #define MIDIERR_INVALID_BUFFER_LENGTH     (MIDIERR_BASE + 4L)
  379. #define MIDIERR_INVALID_CLASS_NUMBER      (MIDIERR_BASE + 5L)
  380. #define MIDIERR_INVALID_CONFIG_DATA       (MIDIERR_BASE + 6L)
  381. #define MIDIERR_INVALID_FLAG              (MIDIERR_BASE + 7L)
  382. #define MIDIERR_INVALID_INSTANCE_NAME     (MIDIERR_BASE + 8L)
  383. #define MIDIERR_INVALID_INSTANCE_NUMBER   (MIDIERR_BASE + 9L)
  384. #define MIDIERR_INVALID_PARAMETER         (MIDIERR_BASE + 10L)
  385. #define MIDIERR_INVALID_SETUP             (MIDIERR_BASE + 11L)
  386. #define MIDIERR_NO_DRIVER                 (MIDIERR_BASE + 12L)
  387. #define MIDIERR_NO_DEFAULT_HW_NODE        (MIDIERR_BASE + 13L)
  388. #define MIDIERR_NOT_ALLOWED               (MIDIERR_BASE + 14L)
  389. #define MIDIERR_NOTIFY_MISSED             (MIDIERR_BASE + 15L)
  390. #define MIDIERR_RESOURCE_NOT_AVAILABLE    (MIDIERR_BASE + 16L)
  391. #define MIDIERR_SENDONLY                  (MIDIERR_BASE + 17L)
  392. #define MIDIERR_RECEIVEONLY               (MIDIERR_BASE + 18L)
  393.  
  394. #define TIMERERR_BASE                     (MIDIERR_BASE + 100)
  395.  
  396. #define TIMERERR_INVALID_PARAMETER        (TIMERERR_BASE + 1L)
  397. #define TIMERERR_INTERNAL_SYSTEM          (TIMERERR_BASE + 2L)
  398.  
  399.  
  400. /***********************************/
  401. /* User defined Error Return codes */
  402. /***********************************/
  403.  
  404. #define USERERR_BASE                      (MMIOERR_BASE + 1000)
  405.  
  406. /* NOINC */
  407. #ifdef __cplusplus
  408. }
  409. #endif
  410. /* INC */
  411.  
  412.