home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / famapi.zip / INCLUDE.ZIP / OS2 / ERRORS.H < prev    next >
C/C++ Source or Header  |  1993-06-13  |  21KB  |  494 lines

  1. //
  2. //    *******************************************************************
  3. //      JdeBP C++ Library Routines      General Public Licence v1.00
  4. //          Copyright (c) 1991,1992  Jonathan de Boyne Pollard
  5. //    *******************************************************************
  6. //
  7.  
  8. //
  9. // Error codes for OS/2 2.0 compatibility
  10. //
  11.  
  12. #if !defined(___STDDEF_H_INCLUDED)
  13. #include <_stddef.h>
  14. #endif
  15. #if !defined(___API_H_INCLUDED)
  16. #include <_api.h>
  17. #endif
  18.  
  19. #define NO_ERROR                        0
  20.  
  21. #define ERROR_INVALID_FUNCTION          1
  22. #define ERROR_FILE_NOT_FOUND            2
  23. #define ERROR_PATH_NOT_FOUND            3
  24. #define ERROR_TOO_MANY_OPEN_FILES       4
  25. #define ERROR_ACCESS_DENIED             5
  26. #define ERROR_INVALID_HANDLE            6
  27. #define ERROR_ARENA_TRASHED             7
  28. #define ERROR_NOT_ENOUGH_MEMORY         8
  29. #define ERROR_INVALID_BLOCK             9
  30. #define ERROR_BAD_ENVIRONMENT           10
  31. #define ERROR_BAD_FORMAT                11
  32. #define ERROR_INVALID_ACCESS            12
  33. #define ERROR_INVALID_DATA              13
  34.  
  35. #define ERROR_INVALID_DRIVE             15
  36. #define ERROR_CURRENT_DIRECTORY         16
  37. #define ERROR_NOT_SAME_DEVICE           17
  38. #define ERROR_NO_MORE_FILES             18
  39. #define ERROR_WRITE_PROTECT             19
  40. #define ERROR_BAD_UNIT                  20
  41. #define ERROR_NOT_READY                 21
  42. #define ERROR_BAD_COMMAND               22
  43. #define ERROR_CRC                       23
  44. #define ERROR_BAD_LENGTH                24
  45. #define ERROR_SEEK                      25
  46. #define ERROR_NOT_DOS_DISK              26
  47. #define ERROR_SECTOR_NOT_FOUND          27
  48. #define ERROR_OUT_OF_PAPER              28
  49. #define ERROR_WRITE_FAULT               29
  50. #define ERROR_READ_FAULT                30
  51. #define ERROR_GEN_FAILURE               31
  52. #define ERROR_SHARING_VIOLATION         32
  53. #define ERROR_LOCK_VIOLATION            33
  54. #define ERROR_WRONG_DISK                34
  55. #define ERROR_FCB_UNAVAILABLE           35
  56. #define ERROR_SHARING_BUFFER_EXCEEDED   36
  57. #define ERROR_NOT_SUPPORTED             50
  58.  
  59. #define ERROR_FILE_EXISTS               80
  60. #define ERROR_DUP_FCB                   81
  61. #define ERROR_CANNOT_MAKE               82
  62. #define ERROR_FAIL_I24                  83
  63. #define ERROR_OUT_OF_STRUCTURES         84
  64. #define ERROR_ALREADY_ASSIGNED          85
  65. #define ERROR_INVALID_PASSWORD          86
  66. #define ERROR_INVALID_PARAMETER         87
  67. #define ERROR_NET_WRITE_FAULT           88
  68. #define ERROR_NO_PROC_SLOTS             89
  69. #define ERROR_NOT_FROZEN                90
  70. #define ERR_TSTOVFL                     91
  71. #define ERR_TSTDUP                      92
  72. #define ERROR_NO_ITEMS                  93
  73. #define ERROR_INTERRUPT                 95
  74. #define ERROR_TOO_MANY_SEMAPHORES       100
  75. #define ERROR_EXCL_SEM_ALREADY_OWNED    101
  76. #define ERROR_SEM_IS_SET                102
  77. #define ERROR_TOO_MANY_SEM_REQUESTS     103
  78. #define ERROR_INVALID_AT_INTERRUPT_TIME 104
  79. #define ERROR_SEM_OWNER_DIED            105
  80. #define ERROR_SEM_USER_LIMIT            106
  81. #define ERROR_DISK_CHANGE               107
  82. #define ERROR_DRIVE_LOCKED              108
  83. #define ERROR_BROKEN_PIPE               109
  84. #define ERROR_OPEN_FAILED               110
  85. #define ERROR_BUFFER_OVERFLOW           111
  86. #define ERROR_DISK_FULL                 112
  87. #define ERROR_NO_MORE_SEARCH_HANDLES    113
  88. #define ERROR_INVALID_TARGET_HANDLE     114
  89. #define ERROR_PROTECTION_VIOLATION      115
  90. #define ERROR_VIOKBD_REQUEST            116
  91. #define ERROR_INVALID_CATEGORY          117
  92. #define ERROR_INVALID_VERIFY_SWITCH     118
  93. #define ERROR_BAD_DRIVER_LEVEL          119
  94. #define ERROR_CALL_NOT_IMPLEMENTED      120
  95. #define ERROR_SEM_TIMEOUT               121
  96. #define ERROR_INSUFFICIENT_BUFFER       122
  97. #define ERROR_INVALID_NAME              123
  98. #define ERROR_INVALID_LEVEL             124
  99. #define ERROR_NO_VOLUME_LABEL           125
  100. #define ERROR_MOD_NOT_FOUND             126
  101. #define ERROR_PROC_NOT_FOUND            127
  102. #define ERROR_WAIT_NO_CHILDREN          128
  103. #define ERROR_CHILD_NOT_COMPLETE        129
  104. #define ERROR_DIRECT_ACCESS_HANDLE      130
  105. #define ERROR_NEGATIVE_SEEK             131
  106. #define ERROR_SEEK_ON_DEVICE            132
  107. #define ERROR_IS_JOIN_TARGET            133
  108. #define ERROR_IS_JOINED                 134
  109. #define ERROR_IS_SUBSTED                135
  110. #define ERROR_NOT_JOINED                136
  111. #define ERROR_NOT_SUBSTED               137
  112. #define ERROR_JOIN_TO_JOIN              138
  113. #define ERROR_SUBST_TO_SUBST            139
  114. #define ERROR_JOIN_TO_SUBST             140
  115. #define ERROR_SUBST_TO_JOIN             141
  116. #define ERROR_BUSY_DRIVE                142
  117. #define ERROR_SAME_DRIVE                143
  118. #define ERROR_DIR_NOT_ROOT              144
  119. #define ERROR_DIR_NOT_EMPTY             145
  120. #define ERROR_IS_SUBST_PATH             146
  121. #define ERROR_IS_JOIN_PATH              147
  122. #define ERROR_PATH_BUSY                 148
  123. #define ERROR_IS_SUBST_TARGET           149
  124. #define ERROR_SYSTEM_TRACE              150
  125. #define ERROR_INVALID_EVENT_COUNT       151
  126. #define ERROR_TOO_MANY_MUXWAITERS       152
  127. #define ERROR_INVALID_LIST_FORMAT       153
  128. #define ERROR_LABEL_TOO_LONG            154
  129. #define ERROR_TOO_MANY_TCBS             155
  130. #define ERROR_SIGNAL_REFUSED            156
  131. #define ERROR_DISCARDED                 157
  132. #define ERROR_NOT_LOCKED                158
  133. #define ERROR_BAD_THREADID_ADDR         159
  134. #define ERROR_BAD_ARGUMENTS             160
  135. #define ERROR_BAD_PATHNAME              161
  136. #define ERROR_SIGNAL_PENDING            162
  137. #define ERROR_UNCERTAIN_MEDIA           163
  138. #define ERROR_MAX_THRDS_REACHED         164
  139. #define ERROR_MONITORS_NOT_SUPPORTED    165
  140.  
  141. #define ERROR_INVALID_SEGMENT_NUMBER    180
  142. #define ERROR_INVALID_CALLGATE          181
  143. #define ERROR_INVALID_ORDINAL           182
  144. #define ERROR_ALREADY_EXISTS            183
  145. #define ERROR_NO_CHILD_PROCESS          184
  146. #define ERROR_CHILD_ALIVE_NOWAIT        185
  147. #define ERROR_INVALID_FLAG_NUMBER       186
  148. #define ERROR_SEM_NOT_FOUND             187
  149. #define ERROR_INVALID_STARTING_CODESEG  188
  150. #define ERROR_INVALID_STACKSEG          189
  151. #define ERROR_INVALID_MODULETYPE        190
  152. #define ERROR_INVALID_EXE_SIGNATURE     191
  153. #define ERROR_EXE_MARKED_INVALID        192
  154. #define ERROR_BAD_EXE_FORMAT            193
  155. #define ERROR_ITERATED_DATA_EXCEEDS_64K 194
  156. #define ERROR_INVALID_MINALLOCSIZE      195
  157. #define ERROR_DYNLINK_FROM_INVALID_RING 196
  158. #define ERROR_IOPL_NOT_ENABLED          197
  159. #define ERROR_INVALID_SEGDPL            198
  160. #define ERROR_AUTODATASEG_EXCEEDS_64k   199
  161. #define ERROR_RING2SEG_MUST_BE_MOVABLE  200
  162. #define ERROR_RELOC_CHAIN_XEEDS_SEGLIM  201
  163. #define ERROR_INFLOOP_IN_RELOC_CHAIN    202
  164. #define ERROR_ENVVAR_NOT_FOUND          203
  165. #define ERROR_NOT_CURRENT_CTRY          204
  166. #define ERROR_NO_SIGNAL_SENT            205
  167. #define ERROR_FILENAME_EXCED_RANGE      206
  168. #define ERROR_RING2_STACK_IN_USE        207
  169. #define ERROR_META_EXPANSION_TOO_LONG   208
  170. #define ERROR_INVALID_SIGNAL_NUMBER     209
  171. #define ERROR_THREAD_1_INACTIVE         210
  172. #define ERROR_INFO_NOT_AVAIL            211
  173. #define ERROR_LOCKED                    212
  174. #define ERROR_BAD_DYNALINK              213
  175. #define ERROR_TOO_MANY_MODULES          214
  176. #define ERROR_NESTING_NOT_ALLOWED       215
  177.  
  178. #define ERROR_INVALID_PROCID            303
  179. #define ERROR_INVALID_PDELTA            304
  180. #define ERROR_NOT_DESCENDANT            305
  181. #define ERROR_NOT_SESSION_MANAGER       306
  182. #define ERROR_INVALID_PCLASS            307
  183. #define ERROR_INVALID_SCOPE             308
  184. #define ERROR_INVALID_THREADID          309
  185. #define ERROR_DOSSUB_SHRINK             310
  186. #define ERROR_DOSSUB_NOMEM              311
  187. #define ERROR_DOSSUB_OVERLAP            312
  188. #define ERROR_DOSSUB_BADSIZE            313
  189. #define ERROR_DOSSUB_BADFLAG            314
  190. #define ERROR_DOSSUB_BADSELECTOR        315
  191. #define ERROR_MR_MSG_TOO_LONG           316
  192. #define ERROR_MR_MID_NOT_FOUND          317
  193. #define ERROR_MR_UN_ACC_MSGF            318
  194. #define ERROR_MR_INV_MSGF_FORMAT        319
  195. #define ERROR_MR_INV_IVCOUNT            320
  196. #define ERROR_MR_UN_PERFORM             321
  197. #define ERROR_TS_WAKEUP                 322
  198. #define ERROR_TS_SEMHANDLE              323
  199. #define ERROR_TS_NOTIMER                324
  200. #define ERROR_TS_HANDLE                 326
  201. #define ERROR_TS_DATETIME               327
  202. #define ERROR_SYS_INTERNAL              328
  203. #define ERROR_QUE_CURRENT_NAME          329
  204. #define ERROR_QUE_PROC_NOT_OWNED        330
  205. #define ERROR_QUE_PROC_OWNED            331
  206. #define ERROR_QUE_DUPLICATE             332
  207. #define ERROR_QUE_ELEMENT_NOT_EXIST     333
  208. #define ERROR_QUE_NO_MEMORY             334
  209. #define ERROR_QUE_INVALID_NAME          335
  210. #define ERROR_QUE_INVALID_PRIORITY      336
  211. #define ERROR_QUE_INVALID_HANDLE        337
  212. #define ERROR_QUE_LINK_NOT_FOUND        338
  213. #define ERROR_QUE_MEMORY_ERROR          339
  214. #define ERROR_QUE_PREV_AT_END           340
  215. #define ERROR_QUE_PROC_NO_ACCESS        341
  216. #define ERROR_QUE_EMPTY                 342
  217. #define ERROR_QUE_NAME_NOT_EXIST        343
  218. #define ERROR_QUE_NOT_INITIALIZED       344
  219. #define ERROR_QUE_UNABLE_TO_ACCESS      345
  220. #define ERROR_QUE_UNABLE_TO_ADD         346
  221. #define ERROR_QUE_UNABLE_TO_INIT        347
  222. #define ERROR_VIO_INVALID_MASK          349
  223. #define ERROR_VIO_PTR                   350
  224. #define ERROR_VIO_APTR                  351
  225. #define ERROR_VIO_RPTR                  352
  226. #define ERROR_VIO_CPTR                  353
  227. #define ERROR_VIO_LPTR                  354
  228. #define ERROR_VIO_MODE                  355
  229. #define ERROR_VIO_WIDTH                 356
  230. #define ERROR_VIO_ATTR                  357
  231. #define ERROR_VIO_ROW                   358
  232. #define ERROR_VIO_COL                   359
  233. #define ERROR_VIO_TOPROW                360
  234. #define ERROR_VIO_BOTROW                361
  235. #define ERROR_VIO_RIGHTCOL              362
  236. #define ERROR_VIO_LEFTCOL               363
  237. #define ERROR_SCS_CALL                  364
  238. #define ERROR_SCS_VALUE                 365
  239. #define ERROR_VIO_WAIT_FLAG             366
  240. #define ERROR_VIO_UNLOCK                367
  241. #define ERROR_SGS_NOT_SESSION_MGR       368
  242. #define ERROR_SMG_INVALID_SGID          369
  243. #define ERROR_SMG_INVALID_SESSION_ID    369
  244. #define ERROR_SMG_NOSG                  370
  245. #define ERROR_SMG_NO_SESSIONS           370
  246. #define ERROR_SMG_GRP_NOT_FOUND         371
  247. #define ERROR_SMG_SESSION_NOT_FOUND     371
  248. #define ERROR_SMG_SET_TITLE             372
  249. #define ERROR_KBD_PARAMETER             373
  250. #define ERROR_KBD_NO_DEVICE             374
  251. #define ERROR_KBD_INVALID_IOWAIT        375
  252. #define ERROR_KBD_INVALID_LENGTH        376
  253. #define ERROR_KBD_INVALID_ECHO_MASK     377
  254. #define ERROR_KBD_INVALID_INPUT_MASK    378
  255. #define ERROR_MON_INVALID_PARMS         379
  256. #define ERROR_MON_INVALID_DEVNAME       380
  257. #define ERROR_MON_INVALID_HANDLE        381
  258. #define ERROR_MON_BUFFER_TOO_SMALL      382
  259. #define ERROR_MON_BUFFER_EMPTY          383
  260. #define ERROR_MON_DATA_TOO_LARGE        384
  261. #define ERROR_MOUSE_NO_DEVICE           385
  262. #define ERROR_MOUSE_INV_HANDLE          386
  263. #define ERROR_MOUSE_INV_PARMS           387
  264. #define ERROR_MOUSE_CANT_RESET          388
  265. #define ERROR_MOUSE_DISPLAY_PARMS       389
  266. #define ERROR_MOUSE_INV_MODULE          390
  267. #define ERROR_MOUSE_INV_ENTRY_PT        391
  268. #define ERROR_MOUSE_INV_MASK            392
  269. #define NO_ERROR_MOUSE_NO_DATA          393
  270. #define NO_ERROR_MOUSE_PTR_DRAWN        394
  271. #define ERROR_INVALID_FREQUENCY         395
  272. #define ERROR_NLS_NO_COUNTRY_FILE       396
  273. #define ERROR_NLS_OPEN_FAILED           397
  274. #define ERROR_NLS_NO_CTRY_CODE          398
  275. #define ERROR_NO_COUNTRY_OR_CODEPAGE    398
  276. #define ERROR_NLS_TABLE_TRUNCATED       399
  277. #define ERROR_NLS_BAD_TYPE              400
  278. #define ERROR_NLS_TYPE_NOT_FOUND        401
  279. #define ERROR_VIO_SMG_ONLY              402
  280. #define ERROR_VIO_INVALID_ASCIIZ        403
  281. #define ERROR_VIO_DEREGISTER            404
  282. #define ERROR_VIO_NO_POPUP              405
  283. #define ERROR_VIO_EXISTING_POPUP        406
  284. #define ERROR_KBD_SMG_ONLY              407
  285. #define ERROR_KBD_INVALID_ASCIIZ        408
  286. #define ERROR_KBD_INVALID_MASK          409
  287. #define ERROR_KBD_REGISTER              410
  288. #define ERROR_KBD_DEREGISTER            411
  289. #define ERROR_MOUSE_SMG_ONLY            412
  290. #define ERROR_MOUSE_INVALID_ASCIIZ      413
  291. #define ERROR_MOUSE_INVALID_MASK        414
  292. #define ERROR_MOUSE_REGISTER            415
  293. #define ERROR_MOUSE_DEREGISTER          416
  294. #define ERROR_SMG_BAD_ACTION            417
  295. #define ERROR_SMG_INVALID_CALL          418
  296. #define ERROR_SCS_SG_NOTFOUND           419
  297. #define ERROR_SCS_NOT_SHELL             420
  298. #define ERROR_VIO_INVALID_PARMS         421
  299. #define ERROR_VIO_FUNCTION_OWNED        422
  300. #define ERROR_VIO_RETURN                423
  301. #define ERROR_SCS_INVALID_FUNCTION      424
  302. #define ERROR_SCS_NOT_SESSION_MGR       425
  303. #define ERROR_VIO_REGISTER              426
  304. #define ERROR_VIO_NO_MODE_THREAD        427
  305. #define ERROR_VIO_NO_SAVE_RESTORE_THD   428
  306. #define ERROR_VIO_IN_BG                 429
  307. #define ERROR_VIO_ILLEGAL_DURING_POPUP  430
  308. #define ERROR_SMG_NOT_BASESHELL         431
  309. #define ERROR_SMG_BAD_STATUSREQ         432
  310. #define ERROR_QUE_INVALID_WAIT          433
  311. #define ERROR_VIO_LOCK                  434
  312. #define ERROR_MOUSE_INVALID_IOWAIT      435
  313. #define ERROR_VIO_INVALID_HANDLE        436
  314. #define ERROR_VIO_ILLEGAL_DURING_LOCK   437
  315. #define ERROR_VIO_INVALID_LENGTH        438
  316. #define ERROR_KBD_INVALID_HANDLE        439
  317. #define ERROR_KBD_NO_MORE_HANDLE        440
  318. #define ERROR_KBD_CANNOT_CREATE_KCB     441
  319. #define ERROR_KBD_CODEPAGE_LOAD_INCOMPL 442
  320. #define ERROR_KBD_INVALID_CODEPAGE_ID   443
  321. #define ERROR_KBD_NO_CODEPAGE_SUPPORT   444
  322. #define ERROR_KBD_FOCUS_REQUIRED        445
  323. #define ERROR_KBD_FOCUS_ALREADY_ACTIVE  446
  324. #define ERROR_KBD_KEYBOARD_BUSY         447
  325. #define ERROR_KBD_INVALID_CODEPAGE      448
  326. #define ERROR_KBD_UNABLE_TO_FOCUS       449
  327. #define ERROR_SMG_SESSION_NON_SELECT    450
  328. #define ERROR_SMG_SESSION_NOT_FOREGRND  451
  329. #define ERROR_SMG_SESSION_NOT_PARENT    452
  330. #define ERROR_SMG_INVALID_START_MODE    453
  331. #define ERROR_SMG_INVALID_RELATED_OPT   454
  332. #define ERROR_SMG_INVALID_BOND_OPTION   455
  333. #define ERROR_SMG_INVALID_SELECT_OPT    456
  334. #define ERROR_SMG_START_IN_BACKGROUND   457
  335. #define ERROR_SMG_INVALID_STOP_OPTION   458
  336. #define ERROR_SMG_BAD_RESERVE           459
  337. #define ERROR_SMG_PROCESS_NOT_PARENT    460
  338. #define ERROR_SMG_INVALID_DATA_LENGTH   461
  339. #define ERROR_SMG_NOT_BOUND             462
  340. #define ERROR_SMG_RETRY_SUB_ALLOC       463
  341. #define ERROR_KBD_DETACHED              464
  342. #define ERROR_VIO_DETACHED              465
  343. #define ERROR_MOU_DETACHED              466
  344. #define ERROR_VIO_FONT                  467
  345. #define ERROR_VIO_USER_FONT             468
  346. #define ERROR_VIO_BAD_CP                469
  347. #define ERROR_VIO_NO_CP                 470
  348. #define ERROR_VIO_NA_CP                 471
  349. #define ERROR_INVALID_CODE_PAGE         472
  350. #define ERROR_CPLIST_TOO_SMALL          473
  351. #define ERROR_CP_NOT_MOVED              474
  352. #define ERROR_MODE_SWITCH_INIT          475
  353. #define ERROR_CODE_PAGE_NOT_FOUND       476
  354. #define ERROR_UNEXPECTED_SLOT_RETURNED  477
  355. #define ERROR_SMG_INVALID_TRACE_OPTION  478
  356. #define ERROR_VIO_INTERNAL_RESOURCE     479
  357. #define ERROR_VIO_SHELL_INIT            480
  358. #define ERROR_SMG_NO_HARD_ERRORS        481
  359. #define ERROR_CP_SWITCH_INCOMPLETE      482
  360. #define ERROR_VIO_TRANSPARENT_POPUP     483
  361. #define ERROR_CRITSEC_OVERFLOW          484
  362. #define ERROR_CRITSEC_UNDERFLOW         485
  363. #define ERROR_VIO_BAD_RESERVE           486
  364. #define ERROR_INVALID_ADDRESS           487
  365. #define ERROR_ZERO_SELECTORS_REQUESTED  488
  366. #define ERROR_NOT_ENOUGH_SELECTORS_AVA  489
  367. #define ERROR_INVALID_SELECTOR          490
  368.  
  369. /* New Equates For OS/2 1.1 */
  370. #define ERROR_SMG_INVALID_PROGRAM_TYPE  491
  371. #define ERROR_SMG_INVALID_PGM_CONTROL   492
  372.  
  373. //
  374. // intercomponent error codes (from 8000H or 32768)
  375. //
  376. #define ERROR_SWAPPER_NOT_ACTIVE        32768
  377. #define ERROR_INVALID_SWAPID            32769
  378. #define ERROR_IOERR_SWAP_FILE           32770
  379. #define ERROR_SWAP_TABLE_FULL           32771
  380. #define ERROR_SWAP_FILE_FULL            32772
  381. #define ERROR_CANT_INIT_SWAPPER         32773
  382. #define ERROR_SWAPPER_ALREADY_INIT      32774
  383. #define ERROR_PMM_INSUFFICIENT_MEMORY   32775
  384. #define ERROR_PMM_INVALID_FLAGS         32776
  385. #define ERROR_PMM_INVALID_ADDRESS       32777
  386. #define ERROR_PMM_LOCK_FAILED           32778
  387. #define ERROR_PMM_UNLOCK_FAILED         32779
  388. #define ERROR_PMM_MOVE_INCOMPLETE       32780
  389. #define ERROR_UCOM_DRIVE_RENAMED        32781
  390. #define ERROR_UCOM_FILENAME_TRUNCATED   32782
  391. #define ERROR_UCOM_BUFFER_LENGTH        32783
  392. #define ERROR_MON_CHAIN_HANDLE          32784
  393. #define ERROR_MON_NOT_REGISTERED        32785
  394. #define ERROR_SMG_ALREADY_TOP           32786
  395. #define ERROR_PMM_ARENA_MODIFIED        32787
  396. #define ERROR_SMG_PRINTER_OPEN          32788
  397. #define ERROR_PMM_SET_FLAGS_FAILED      32789
  398. #define ERROR_INVALID_DOS_DD            32790
  399.  
  400. #define ERROR_CPSIO_CODE_PAGE_INVALID   65026
  401. #define ERROR_CPSIO_NO_SPOOLER          65027
  402. #define ERROR_CPSIO_FONT_ID_INVALID     65028
  403. #define ERROR_CPSIO_INTERNAL_ERROR      65033
  404. #define ERROR_CPSIO_INVALID_PTR_NAME    65034
  405. #define ERROR_CPSIO_NOT_ACTIVE          65037
  406. #define ERROR_CPSIO_PID_FULL            65039
  407. #define ERROR_CPSIO_PID_NOT_FOUND       65040
  408. #define ERROR_CPSIO_READ_CTL_SEQ        65043
  409. #define ERROR_CPSIO_READ_FNT_DEF        65045
  410. #define ERROR_CPSIO_WRITE_ERROR         65047
  411. #define ERROR_CPSIO_WRITE_FULL_ERROR    65048
  412. #define ERROR_CPSIO_WRITE_HANDLE_BAD    65049
  413. #define ERROR_CPSIO_SWIT_LOAD           65074
  414. #define ERROR_CPSIO_INV_COMMAND         65077
  415. #define ERROR_CPSIO_NO_FONT_SWIT        65078
  416.  
  417. #define ERROR_USER_DEFINED_BASE         0xF000
  418.  
  419. /* Values for error CLASS */
  420.  
  421. #define ERRCLASS_OUTRES                 1
  422. #define ERRCLASS_TEMPSIT                2
  423. #define ERRCLASS_AUTH                   3
  424. #define ERRCLASS_INTRN                  4
  425. #define ERRCLASS_HRDFAIL                5
  426. #define ERRCLASS_SYSFAIL                6
  427. #define ERRCLASS_APPERR                 7
  428. #define ERRCLASS_NOTFND                 8
  429. #define ERRCLASS_BADFMT                 9
  430. #define ERRCLASS_LOCKED                 10
  431. #define ERRCLASS_MEDIA                  11
  432. #define ERRCLASS_ALREADY                12
  433. #define ERRCLASS_UNK                    13
  434. #define ERRCLASS_CANT                   14
  435. #define ERRCLASS_TIME                   15
  436.  
  437. /* Values for error ACTION */
  438.  
  439. #define ERRACT_RETRY                    1
  440. #define ERRACT_DLYRET                   2
  441. #define ERRACT_USER                     3
  442. #define ERRACT_ABORT                    4
  443. #define ERRACT_PANIC                    5
  444. #define ERRACT_IGNORE                   6
  445. #define ERRACT_INTRET                   7
  446.  
  447. /* Values for error LOCUS */
  448.  
  449. #define ERRLOC_UNK                      1
  450. #define ERRLOC_DISK                     2
  451. #define ERRLOC_NET                      3
  452. #define ERRLOC_SERDEV                   4
  453. #define ERRLOC_MEM                      5
  454.  
  455. /* Abnormal termination codes */
  456.  
  457. #define TC_NORMAL                       0
  458. #define TC_HARDERR                      1
  459. #define TC_GP_TRAP                      2
  460. #define TC_SIGNAL                       3
  461.  
  462. //
  463. //  DOS compatible "INT 24h" error numbers (used in device drivers)
  464. //
  465. #define ERROR_I24_WRITE_PROTECT         0
  466. #define ERROR_I24_BAD_UNIT              1
  467. #define ERROR_I24_NOT_READY             2
  468. #define ERROR_I24_BAD_COMMAND           3
  469. #define ERROR_I24_CRC                   4
  470. #define ERROR_I24_BAD_LENGTH            5
  471. #define ERROR_I24_SEEK                  6
  472. #define ERROR_I24_NOT_DOS_DISK          7
  473. #define ERROR_I24_SECTOR_NOT_FOUND      8
  474. #define ERROR_I24_OUT_OF_PAPER          9
  475. #define ERROR_I24_WRITE_FAULT           10
  476. #define ERROR_I24_READ_FAULT            11
  477. #define ERROR_I24_GEN_FAILURE           12
  478. #define ERROR_I24_DISK_CHANGE           13
  479. #define ERROR_I24_WRONG_DISK            14
  480. #define ERROR_I24_UNCERTAIN_MEDIA       15
  481. #define ERROR_I24_CHAR_CALL_INTERRUPTED 16
  482. #define ERROR_I24_NO_MONITOR_SUPPORT    17
  483. #define ERROR_I24_INVALID_PARAMETER     18
  484.  
  485. #define ALLOWED_FAIL                    0x0001
  486. #define ALLOWED_ABORT                   0x0002
  487. #define ALLOWED_RETRY                   0x0004
  488. #define ALLOWED_IGNORE                  0x0008
  489.  
  490. #define I24_OPERATION                   0x01
  491. #define I24_AREA                        0x06
  492. #define I24_CLASS                       0x80
  493.  
  494.