Source code of Windows XP (NT5)
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.

617 lines
25 KiB

  1. /****************************** Module Header ******************************\
  2. *
  3. * Module Name: BSEERR.H
  4. *
  5. * Copy of the Lanman BSEERR.H used for their base error codes.
  6. * Not used by anyone else.
  7. *
  8. \***************************************************************************/
  9. #ifndef BSEERR_INCLUDED
  10. #define BSEERR_INCLUDED
  11. #define NO_ERROR 0
  12. #define ERROR_INVALID_FUNCTION 1
  13. #define ERROR_FILE_NOT_FOUND 2
  14. #define ERROR_PATH_NOT_FOUND 3
  15. #define ERROR_TOO_MANY_OPEN_FILES 4
  16. #define ERROR_ACCESS_DENIED 5
  17. #define ERROR_INVALID_HANDLE 6
  18. #define ERROR_ARENA_TRASHED 7
  19. #define ERROR_NOT_ENOUGH_MEMORY 8
  20. #define ERROR_INVALID_BLOCK 9
  21. #define ERROR_BAD_ENVIRONMENT 10
  22. #define ERROR_BAD_FORMAT 11
  23. #define ERROR_INVALID_ACCESS 12
  24. #define ERROR_INVALID_DATA 13
  25. /* 14 is reserved */
  26. #define ERROR_INVALID_DRIVE 15
  27. #define ERROR_CURRENT_DIRECTORY 16
  28. #define ERROR_NOT_SAME_DEVICE 17
  29. #define ERROR_NO_MORE_FILES 18
  30. #define ERROR_WRITE_PROTECT 19
  31. #define ERROR_BAD_UNIT 20
  32. #define ERROR_NOT_READY 21
  33. #define ERROR_BAD_COMMAND 22
  34. #define ERROR_CRC 23
  35. #define ERROR_BAD_LENGTH 24
  36. #define ERROR_SEEK 25
  37. #define ERROR_NOT_DOS_DISK 26
  38. #define ERROR_SECTOR_NOT_FOUND 27
  39. #define ERROR_OUT_OF_PAPER 28
  40. #define ERROR_WRITE_FAULT 29
  41. #define ERROR_READ_FAULT 30
  42. #define ERROR_GEN_FAILURE 31
  43. #define ERROR_SHARING_VIOLATION 32
  44. #define ERROR_LOCK_VIOLATION 33
  45. #define ERROR_WRONG_DISK 34
  46. #define ERROR_FCB_UNAVAILABLE 35
  47. #define ERROR_SHARING_BUFFER_EXCEEDED 36
  48. #define ERROR_NOT_SUPPORTED 50
  49. #define ERROR_REM_NOT_LIST 51 /* Remote computer not listening */
  50. #define ERROR_DUP_NAME 52 /* Duplicate name on network */
  51. #define ERROR_BAD_NETPATH 53 /* Network path not found */
  52. #define ERROR_NETWORK_BUSY 54 /* Network busy */
  53. #define ERROR_DEV_NOT_EXIST 55 /* Network device no longer exists */
  54. #define ERROR_TOO_MANY_CMDS 56 /* Net BIOS command limit exceeded */
  55. #define ERROR_ADAP_HDW_ERR 57 /* Network adapter hardware error */
  56. #define ERROR_BAD_NET_RESP 58 /* Incorrect response from network */
  57. #define ERROR_UNEXP_NET_ERR 59 /* Unexpected network error */
  58. #define ERROR_BAD_REM_ADAP 60 /* Incompatible remote adapter */
  59. #define ERROR_PRINTQ_FULL 61 /* Print queue full */
  60. #define ERROR_NO_SPOOL_SPACE 62 /* Not enough space for print file */
  61. #define ERROR_PRINT_CANCELLED 63 /* Print file was cancelled */
  62. #define ERROR_NETNAME_DELETED 64 /* Network name was deleted */
  63. #define ERROR_NETWORK_ACCESS_DENIED 65 /* Access denied */
  64. #define ERROR_BAD_DEV_TYPE 66 /* Network device type incorrect */
  65. #define ERROR_BAD_NET_NAME 67 /* Network name not found */
  66. #define ERROR_TOO_MANY_NAMES 68 /* Network name limit exceeded */
  67. #define ERROR_TOO_MANY_SESS 69 /* Net BIOS session limit exceeded */
  68. #define ERROR_SHARING_PAUSED 70 /* Sharing temporarily paused */
  69. #define ERROR_REQ_NOT_ACCEP 71 /* Network request not accepted */
  70. #define ERROR_REDIR_PAUSED 72 /* Print|disk redirection is paused*/
  71. #define ERROR_FILE_EXISTS 80
  72. #define ERROR_DUP_FCB 81
  73. #define ERROR_CANNOT_MAKE 82
  74. #define ERROR_FAIL_I24 83
  75. #define ERROR_OUT_OF_STRUCTURES 84
  76. #define ERROR_ALREADY_ASSIGNED 85
  77. #define ERROR_INVALID_PASSWORD 86
  78. #define ERROR_INVALID_PARAMETER 87
  79. #define ERROR_NET_WRITE_FAULT 88
  80. #define ERROR_NO_PROC_SLOTS 89 /* no process slots available */
  81. #define ERROR_NOT_FROZEN 90
  82. #define ERR_TSTOVFL 91 /* timer service table overflow */
  83. #define ERR_TSTDUP 92 /* timer service table duplicate */
  84. #define ERROR_NO_ITEMS 93 /* no items to operate upon */
  85. #define ERROR_INTERRUPT 95 /* interrupted system call */
  86. #define ERROR_DEVICE_IN_USE 99 /* Device in use by another thread */
  87. #define ERROR_TOO_MANY_SEMAPHORES 100
  88. #define ERROR_EXCL_SEM_ALREADY_OWNED 101
  89. #define ERROR_SEM_IS_SET 102
  90. #define ERROR_TOO_MANY_SEM_REQUESTS 103
  91. #define ERROR_INVALID_AT_INTERRUPT_TIME 104
  92. #define ERROR_SEM_OWNER_DIED 105 /* waitsem found owner died */
  93. #define ERROR_SEM_USER_LIMIT 106 /* too many procs have this sem */
  94. #define ERROR_DISK_CHANGE 107
  95. #define ERROR_DRIVE_LOCKED 108 /* drive locked by another process*/
  96. #define ERROR_BROKEN_PIPE 109 /* write on pipe with no reader */
  97. #define ERROR_OPEN_FAILED 110 /* open/created failed due to */
  98. /* explicit fail command */
  99. #define ERROR_BUFFER_OVERFLOW 111 /* buffer passed to system call */
  100. /* is too small to hold return */
  101. /* data. */
  102. #define ERROR_DISK_FULL 112 /* not enough space on the disk */
  103. /* (DOSNEWSIZE/w_NewSize) */
  104. #define ERROR_NO_MORE_SEARCH_HANDLES 113 /* can't allocate another search */
  105. /* structure and handle. */
  106. /* (DOSFINDFIRST/w_FindFirst) */
  107. #define ERROR_INVALID_TARGET_HANDLE 114 /* Target handle in DOSDUPHANDLE */
  108. /* is invalid */
  109. #define ERROR_PROTECTION_VIOLATION 115 /* Bad user virtual address */
  110. #define ERROR_VIOKBD_REQUEST 116
  111. #define ERROR_INVALID_CATEGORY 117 /* Category for DEVIOCTL in not */
  112. /* defined */
  113. #define ERROR_INVALID_VERIFY_SWITCH 118 /* invalid value passed for */
  114. /* verify flag */
  115. #define ERROR_BAD_DRIVER_LEVEL 119 /* DosDevIOCTL looks for a level */
  116. /* four driver. If the driver */
  117. /* is not level four we return */
  118. /* this code */
  119. #define ERROR_CALL_NOT_IMPLEMENTED 120 /* returned from stub api calls. */
  120. /* This call will disappear when */
  121. /* all the api's are implemented. */
  122. #define ERROR_SEM_TIMEOUT 121 /* Time out happened from the */
  123. /* semaphore api functions. */
  124. #define ERROR_INSUFFICIENT_BUFFER 122 /* Some calls require the */
  125. /* application to pass in a buffer */
  126. /* filled with data. This error is */
  127. /* returned if the data buffer is too */
  128. /* small. For example: DosSetFileInfo */
  129. /* requires 4 bytes of data. If a */
  130. /* two byte buffer is passed in then */
  131. /* this error is returned. */
  132. /* error_buffer_overflow is used when */
  133. /* the output buffer in not big enough.*/
  134. #define ERROR_INVALID_NAME 123 /* illegal character or malformed */
  135. /* file system name */
  136. #define ERROR_INVALID_LEVEL 124 /* unimplemented level for info */
  137. /* retrieval or setting */
  138. #define ERROR_NO_VOLUME_LABEL 125 /* no volume label found with */
  139. /* DosQFSInfo command */
  140. #define ERROR_MOD_NOT_FOUND 126 /* w_getprocaddr,w_getmodhandle */
  141. #define ERROR_PROC_NOT_FOUND 127 /* w_getprocaddr */
  142. #define ERROR_WAIT_NO_CHILDREN 128 /* CWait finds to children */
  143. #define ERROR_CHILD_NOT_COMPLETE 129 /* CWait children not dead yet */
  144. #define ERROR_DIRECT_ACCESS_HANDLE 130 /* handle operation is invalid */
  145. /* for direct disk access */
  146. /* handles */
  147. #define ERROR_NEGATIVE_SEEK 131 /* application tried to seek */
  148. /* with negitive offset */
  149. #define ERROR_SEEK_ON_DEVICE 132 /* application tried to seek */
  150. /* on device or pipe */
  151. #define ERROR_IS_JOIN_TARGET 133
  152. #define ERROR_IS_JOINED 134
  153. #define ERROR_IS_SUBSTED 135
  154. #define ERROR_NOT_JOINED 136
  155. #define ERROR_NOT_SUBSTED 137
  156. #define ERROR_JOIN_TO_JOIN 138
  157. #define ERROR_SUBST_TO_SUBST 139
  158. #define ERROR_JOIN_TO_SUBST 140
  159. #define ERROR_SUBST_TO_JOIN 141
  160. #define ERROR_BUSY_DRIVE 142
  161. #define ERROR_SAME_DRIVE 143
  162. #define ERROR_DIR_NOT_ROOT 144
  163. #define ERROR_DIR_NOT_EMPTY 145
  164. #define ERROR_IS_SUBST_PATH 146
  165. #define ERROR_IS_JOIN_PATH 147
  166. #define ERROR_PATH_BUSY 148
  167. #define ERROR_IS_SUBST_TARGET 149
  168. #define ERROR_SYSTEM_TRACE 150 /* system trace error */
  169. #define ERROR_INVALID_EVENT_COUNT 151 /* DosMuxSemWait errors */
  170. #define ERROR_TOO_MANY_MUXWAITERS 152
  171. #define ERROR_INVALID_LIST_FORMAT 153
  172. #define ERROR_LABEL_TOO_LONG 154
  173. #define ERROR_TOO_MANY_TCBS 155
  174. #define ERROR_SIGNAL_REFUSED 156
  175. #define ERROR_DISCARDED 157
  176. #define ERROR_NOT_LOCKED 158
  177. #define ERROR_BAD_THREADID_ADDR 159
  178. #define ERROR_BAD_ARGUMENTS 160
  179. #define ERROR_BAD_PATHNAME 161
  180. #define ERROR_SIGNAL_PENDING 162
  181. #define ERROR_UNCERTAIN_MEDIA 163
  182. #define ERROR_MAX_THRDS_REACHED 164
  183. #define ERROR_MONITORS_NOT_SUPPORTED 165
  184. #define ERROR_UNC_DRIVER_NOT_INSTALLED 166
  185. /* The following error codes refer to demand loading segments */
  186. #define ERROR_LOCK_FAILED 167
  187. #define ERROR_SWAPIO_FAILED 168
  188. #define ERROR_SWAPIN_FAILED 169
  189. #define ERROR_BUSY 170
  190. #define ERROR_INVALID_SEGMENT_NUMBER 180
  191. #define ERROR_INVALID_CALLGATE 181
  192. #define ERROR_INVALID_ORDINAL 182
  193. #define ERROR_ALREADY_EXISTS 183
  194. #define ERROR_NO_CHILD_PROCESS 184
  195. #define ERROR_CHILD_ALIVE_NOWAIT 185
  196. #define ERROR_INVALID_FLAG_NUMBER 186
  197. #define ERROR_SEM_NOT_FOUND 187
  198. /* following error codes make loader error messages distinct */
  199. #define ERROR_INVALID_STARTING_CODESEG 188
  200. #define ERROR_INVALID_STACKSEG 189
  201. #define ERROR_INVALID_MODULETYPE 190
  202. #define ERROR_INVALID_EXE_SIGNATURE 191
  203. #define ERROR_EXE_MARKED_INVALID 192
  204. #define ERROR_BAD_EXE_FORMAT 193
  205. #define ERROR_ITERATED_DATA_EXCEEDS_64K 194
  206. #define ERROR_INVALID_MINALLOCSIZE 195
  207. #define ERROR_DYNLINK_FROM_INVALID_RING 196
  208. #define ERROR_IOPL_NOT_ENABLED 197
  209. #define ERROR_INVALID_SEGDPL 198
  210. #define ERROR_AUTODATASEG_EXCEEDS_64k 199
  211. #define ERROR_RING2SEG_MUST_BE_MOVABLE 200
  212. #define ERROR_RELOC_CHAIN_XEEDS_SEGLIM 201
  213. #define ERROR_INFLOOP_IN_RELOC_CHAIN 202
  214. #define ERROR_ENVVAR_NOT_FOUND 203
  215. #define ERROR_NOT_CURRENT_CTRY 204
  216. #define ERROR_NO_SIGNAL_SENT 205
  217. #define ERROR_FILENAME_EXCED_RANGE 206 /* if filename > 8.3 */
  218. #define ERROR_RING2_STACK_IN_USE 207 /* for FAPI */
  219. #define ERROR_META_EXPANSION_TOO_LONG 208 /* if "*a" > 8.3 */
  220. #define ERROR_INVALID_SIGNAL_NUMBER 209
  221. #define ERROR_THREAD_1_INACTIVE 210
  222. #define ERROR_INFO_NOT_AVAIL 211
  223. #define ERROR_LOCKED 212
  224. #define ERROR_BAD_DYNALINK 213
  225. #define ERROR_TOO_MANY_MODULES 214
  226. #define ERROR_NESTING_NOT_ALLOWED 215
  227. #define ERROR_CANNOT_SHRINK 216 /* attempt to shrink ring 2 stack */
  228. #define ERROR_ZOMBIE_PROCESS 217
  229. #define ERROR_STACK_IN_HIGH_MEMORY 218
  230. #define ERROR_INVALID_EXITROUTINE_RING 219
  231. #define ERROR_GETBUF_FAILED 220
  232. #define ERROR_FLUSHBUF_FAILED 221
  233. #define ERROR_TRANSFER_TOO_LONG 222
  234. #define ERROR_NO_CHILDREN 228
  235. #define ERROR_INVALID_SCREEN_GROUP 229
  236. /*
  237. * Error codes 230 - 249 are reserved
  238. */
  239. #define ERROR_BAD_PIPE 230 /* Non-existant pipe or bad operation */
  240. #define ERROR_PIPE_BUSY 231 /* Pipe is busy */
  241. #define ERROR_NO_DATA 232 /* No data on non-blocking read */
  242. #define ERROR_PIPE_NOT_CONNECTED 233 /* Pipe was disconnected by server*/
  243. #define ERROR_MORE_DATA 234 /* More data is available */
  244. #define ERROR_VC_DISCONNECTED 240
  245. #define ERROR_CIRCULARITY_REQUESTED 250 /* When renaming a dir which */
  246. /* would cause a circularity */
  247. #define ERROR_DIRECTORY_IN_CDS 251 /* When renaming a dir */
  248. /* which is "in use" */
  249. #define ERROR_INVALID_FSD_NAME 252 /* when trying to access */
  250. /* nonexistent FSD */
  251. #define ERROR_INVALID_PATH 253 /* bad pseudo device */
  252. #define ERROR_INVALID_EA_NAME 254 /* Illegal chars in name */
  253. #define ERROR_EA_LIST_INCONSISTENT 255 /* Size or some field bad */
  254. #define ERROR_EA_LIST_TOO_LONG 256 /* FEAlist > 64K-1 bytes */
  255. #define ERROR_NO_META_MATCH 257 /* string doesn't match expression*/
  256. #define ERROR_FINDNOTIFY_TIMEOUT 258 /* FindNotify request timeout */
  257. #define ERROR_NO_MORE_ITEMS 259 /* QFSAttach ordinal query */
  258. #define ERROR_SEARCH_STRUC_REUSED 260 /* 3xbox findfirst/next
  259. search structure reused */
  260. #define ERROR_CHAR_NOT_FOUND 261 /* can not find character */
  261. #define ERROR_TOO_MUCH_STACK 262 /* Stack request exceeds sys limit*/
  262. #define ERROR_INVALID_ATTR 263 /* invalid FS_ATTRIBUTE */
  263. #define ERROR_INVALID_STARTING_RING 264
  264. #define ERROR_INVALID_DLL_INIT_RING 265
  265. #define ERROR_CANNOT_COPY 266 /* doscopy */
  266. #define ERROR_DIRECTORY 267 /* doscopy */
  267. #define ERROR_OPLOCKED_FILE 268
  268. #define ERROR_OPLOCK_THREAD_EXISTS 269
  269. /* error codes for DosFindNotify */
  270. #define ERROR_VOLUME_CHANGED 270
  271. #define ERROR_FINDNOTIFY_HANDLE_IN_USE 271
  272. #define ERROR_FINDNOTIFY_HANDLE_CLOSED 272
  273. #define ERROR_NOTIFY_OBJECT_REMOVED 273
  274. /* Error to indicate that ShutDown already done */
  275. #define ERROR_ALREADY_SHUTDOWN 274
  276. /* error code for DOSFINDFIRST2/NEXT */
  277. #define ERROR_EAS_DIDNT_FIT 275
  278. /* error codes for EA file format change */
  279. #define ERROR_EA_FILE_CORRUPT 276
  280. #define ERROR_EA_TABLE_FULL 277
  281. #define ERROR_INVALID_EA_HANDLE 278
  282. #define ERROR_NO_CLUSTER 279
  283. #define ERROR_CREATE_EA_FILE 280
  284. #define ERROR_CANNOT_OPEN_EA_FILE 281
  285. #define ERROR_INVALID_PROCID 303
  286. #define ERROR_INVALID_PDELTA 304
  287. #define ERROR_NOT_DESCENDANT 305
  288. #define ERROR_NOT_SESSION_MANAGER 306
  289. #define ERROR_INVALID_PCLASS 307
  290. #define ERROR_INVALID_SCOPE 308
  291. #define ERROR_INVALID_THREADID 309
  292. #define ERROR_DOSSUB_SHRINK 310
  293. #define ERROR_DOSSUB_NOMEM 311
  294. #define ERROR_DOSSUB_OVERLAP 312
  295. #define ERROR_DOSSUB_BADSIZE 313
  296. #define ERROR_DOSSUB_BADFLAG 314
  297. #define ERROR_DOSSUB_BADSELECTOR 315
  298. #define ERROR_MR_MSG_TOO_LONG 316
  299. #define ERROR_MR_MID_NOT_FOUND 317
  300. #define ERROR_MR_UN_ACC_MSGF 318
  301. #define ERROR_MR_INV_MSGF_FORMAT 319
  302. #define ERROR_MR_INV_IVCOUNT 320
  303. #define ERROR_MR_UN_PERFORM 321
  304. #define ERROR_TS_WAKEUP 322
  305. #define ERROR_TS_SEMHANDLE 323
  306. #define ERROR_TS_NOTIMER 324
  307. #define ERROR_TS_HANDLE 326
  308. #define ERROR_TS_DATETIME 327
  309. #define ERROR_SYS_INTERNAL 328
  310. #define ERROR_QUE_CURRENT_NAME 329
  311. #define ERROR_QUE_PROC_NOT_OWNED 330
  312. #define ERROR_QUE_PROC_OWNED 331
  313. #define ERROR_QUE_DUPLICATE 332
  314. #define ERROR_QUE_ELEMENT_NOT_EXIST 333
  315. #define ERROR_QUE_NO_MEMORY 334
  316. #define ERROR_QUE_INVALID_NAME 335
  317. #define ERROR_QUE_INVALID_PRIORITY 336
  318. #define ERROR_QUE_INVALID_HANDLE 337
  319. #define ERROR_QUE_LINK_NOT_FOUND 338
  320. #define ERROR_QUE_MEMORY_ERROR 339
  321. #define ERROR_QUE_PREV_AT_END 340
  322. #define ERROR_QUE_PROC_NO_ACCESS 341
  323. #define ERROR_QUE_EMPTY 342
  324. #define ERROR_QUE_NAME_NOT_EXIST 343
  325. #define ERROR_QUE_NOT_INITIALIZED 344
  326. #define ERROR_QUE_UNABLE_TO_ACCESS 345
  327. #define ERROR_QUE_UNABLE_TO_ADD 346
  328. #define ERROR_QUE_UNABLE_TO_INIT 347
  329. #define ERROR_VIO_INVALID_MASK 349
  330. #define ERROR_VIO_PTR 350
  331. #define ERROR_VIO_APTR 351
  332. #define ERROR_VIO_RPTR 352
  333. #define ERROR_VIO_CPTR 353
  334. #define ERROR_VIO_LPTR 354
  335. #define ERROR_VIO_MODE 355
  336. #define ERROR_VIO_WIDTH 356
  337. #define ERROR_VIO_ATTR 357
  338. #define ERROR_VIO_ROW 358
  339. #define ERROR_VIO_COL 359
  340. #define ERROR_VIO_TOPROW 360
  341. #define ERROR_VIO_BOTROW 361
  342. #define ERROR_VIO_RIGHTCOL 362
  343. #define ERROR_VIO_LEFTCOL 363
  344. #define ERROR_SCS_CALL 364
  345. #define ERROR_SCS_VALUE 365
  346. #define ERROR_VIO_WAIT_FLAG 366
  347. #define ERROR_VIO_UNLOCK 367
  348. #define ERROR_SGS_NOT_SESSION_MGR 368
  349. #define ERROR_SMG_INVALID_SGID 369
  350. #define ERROR_SMG_INVALID_SESSION_ID 369
  351. #define ERROR_SMG_NOSG 370
  352. #define ERROR_SMG_NO_SESSIONS 370
  353. #define ERROR_SMG_GRP_NOT_FOUND 371
  354. #define ERROR_SMG_SESSION_NOT_FOUND 371
  355. #define ERROR_SMG_SET_TITLE 372
  356. #define ERROR_KBD_PARAMETER 373
  357. #define ERROR_KBD_NO_DEVICE 374
  358. #define ERROR_KBD_INVALID_IOWAIT 375
  359. #define ERROR_KBD_INVALID_LENGTH 376
  360. #define ERROR_KBD_INVALID_ECHO_MASK 377
  361. #define ERROR_KBD_INVALID_INPUT_MASK 378
  362. #define ERROR_MON_INVALID_PARMS 379
  363. #define ERROR_MON_INVALID_DEVNAME 380
  364. #define ERROR_MON_INVALID_HANDLE 381
  365. #define ERROR_MON_BUFFER_TOO_SMALL 382
  366. #define ERROR_MON_BUFFER_EMPTY 383
  367. #define ERROR_MON_DATA_TOO_LARGE 384
  368. #define ERROR_MOUSE_NO_DEVICE 385
  369. #define ERROR_MOUSE_INV_HANDLE 386
  370. #define ERROR_MOUSE_INV_PARMS 387
  371. #define ERROR_MOUSE_CANT_RESET 388
  372. #define ERROR_MOUSE_DISPLAY_PARMS 389
  373. #define ERROR_MOUSE_INV_MODULE 390
  374. #define ERROR_MOUSE_INV_ENTRY_PT 391
  375. #define ERROR_MOUSE_INV_MASK 392
  376. #define NO_ERROR_MOUSE_NO_DATA 393
  377. #define NO_ERROR_MOUSE_PTR_DRAWN 394
  378. #define ERROR_INVALID_FREQUENCY 395
  379. #define ERROR_NLS_NO_COUNTRY_FILE 396
  380. #define ERROR_NLS_OPEN_FAILED 397
  381. #define ERROR_NLS_NO_CTRY_CODE 398
  382. #define ERROR_NO_COUNTRY_OR_CODEPAGE 398
  383. #define ERROR_NLS_TABLE_TRUNCATED 399
  384. #define ERROR_NLS_BAD_TYPE 400
  385. #define ERROR_NLS_TYPE_NOT_FOUND 401
  386. #define ERROR_VIO_SMG_ONLY 402
  387. #define ERROR_VIO_INVALID_ASCIIZ 403
  388. #define ERROR_VIO_DEREGISTER 404
  389. #define ERROR_VIO_NO_POPUP 405
  390. #define ERROR_VIO_EXISTING_POPUP 406
  391. #define ERROR_KBD_SMG_ONLY 407
  392. #define ERROR_KBD_INVALID_ASCIIZ 408
  393. #define ERROR_KBD_INVALID_MASK 409
  394. #define ERROR_KBD_REGISTER 410
  395. #define ERROR_KBD_DEREGISTER 411
  396. #define ERROR_MOUSE_SMG_ONLY 412
  397. #define ERROR_MOUSE_INVALID_ASCIIZ 413
  398. #define ERROR_MOUSE_INVALID_MASK 414
  399. #define ERROR_MOUSE_REGISTER 415
  400. #define ERROR_MOUSE_DEREGISTER 416
  401. #define ERROR_SMG_BAD_ACTION 417
  402. #define ERROR_SMG_INVALID_CALL 418
  403. #define ERROR_SCS_SG_NOTFOUND 419
  404. #define ERROR_SCS_NOT_SHELL 420
  405. #define ERROR_VIO_INVALID_PARMS 421
  406. #define ERROR_VIO_FUNCTION_OWNED 422
  407. #define ERROR_VIO_RETURN 423
  408. #define ERROR_SCS_INVALID_FUNCTION 424
  409. #define ERROR_SCS_NOT_SESSION_MGR 425
  410. #define ERROR_VIO_REGISTER 426
  411. #define ERROR_VIO_NO_MODE_THREAD 427
  412. #define ERROR_VIO_NO_SAVE_RESTORE_THD 428
  413. #define ERROR_VIO_IN_BG 429
  414. #define ERROR_VIO_ILLEGAL_DURING_POPUP 430
  415. #define ERROR_SMG_NOT_BASESHELL 431
  416. #define ERROR_SMG_BAD_STATUSREQ 432
  417. #define ERROR_QUE_INVALID_WAIT 433
  418. #define ERROR_VIO_LOCK 434
  419. #define ERROR_MOUSE_INVALID_IOWAIT 435
  420. #define ERROR_VIO_INVALID_HANDLE 436
  421. #define ERROR_VIO_ILLEGAL_DURING_LOCK 437
  422. #define ERROR_VIO_INVALID_LENGTH 438
  423. #define ERROR_KBD_INVALID_HANDLE 439
  424. #define ERROR_KBD_NO_MORE_HANDLE 440
  425. #define ERROR_KBD_CANNOT_CREATE_KCB 441
  426. #define ERROR_KBD_CODEPAGE_LOAD_INCOMPL 442
  427. #define ERROR_KBD_INVALID_CODEPAGE_ID 443
  428. #define ERROR_KBD_NO_CODEPAGE_SUPPORT 444
  429. #define ERROR_KBD_FOCUS_REQUIRED 445
  430. #define ERROR_KBD_FOCUS_ALREADY_ACTIVE 446
  431. #define ERROR_KBD_KEYBOARD_BUSY 447
  432. #define ERROR_KBD_INVALID_CODEPAGE 448
  433. #define ERROR_KBD_UNABLE_TO_FOCUS 449
  434. #define ERROR_SMG_SESSION_NON_SELECT 450
  435. #define ERROR_SMG_SESSION_NOT_FOREGRND 451
  436. #define ERROR_SMG_SESSION_NOT_PARENT 452
  437. #define ERROR_SMG_INVALID_START_MODE 453
  438. #define ERROR_SMG_INVALID_RELATED_OPT 454
  439. #define ERROR_SMG_INVALID_BOND_OPTION 455
  440. #define ERROR_SMG_INVALID_SELECT_OPT 456
  441. #define ERROR_SMG_START_IN_BACKGROUND 457
  442. #define ERROR_SMG_INVALID_STOP_OPTION 458
  443. #define ERROR_SMG_BAD_RESERVE 459
  444. #define ERROR_SMG_PROCESS_NOT_PARENT 460
  445. #define ERROR_SMG_INVALID_DATA_LENGTH 461
  446. #define ERROR_SMG_NOT_BOUND 462
  447. #define ERROR_SMG_RETRY_SUB_ALLOC 463
  448. #define ERROR_KBD_DETACHED 464
  449. #define ERROR_VIO_DETACHED 465
  450. #define ERROR_MOU_DETACHED 466
  451. #define ERROR_VIO_FONT 467
  452. #define ERROR_VIO_USER_FONT 468
  453. #define ERROR_VIO_BAD_CP 469
  454. #define ERROR_VIO_NO_CP 470
  455. #define ERROR_VIO_NA_CP 471
  456. #define ERROR_INVALID_CODE_PAGE 472
  457. #define ERROR_CPLIST_TOO_SMALL 473
  458. #define ERROR_CP_NOT_MOVED 474
  459. #define ERROR_MODE_SWITCH_INIT 475
  460. #define ERROR_CODE_PAGE_NOT_FOUND 476
  461. #define ERROR_UNEXPECTED_SLOT_RETURNED 477
  462. #define ERROR_SMG_INVALID_TRACE_OPTION 478
  463. #define ERROR_VIO_INTERNAL_RESOURCE 479
  464. #define ERROR_VIO_SHELL_INIT 480
  465. #define ERROR_SMG_NO_HARD_ERRORS 481
  466. #define ERROR_CP_SWITCH_INCOMPLETE 482
  467. #define ERROR_VIO_TRANSPARENT_POPUP 483
  468. #define ERROR_CRITSEC_OVERFLOW 484
  469. #define ERROR_CRITSEC_UNDERFLOW 485
  470. #define ERROR_VIO_BAD_RESERVE 486
  471. #define ERROR_INVALID_ADDRESS 487
  472. #define ERROR_ZERO_SELECTORS_REQUESTED 488
  473. #define ERROR_NOT_ENOUGH_SELECTORS_AVA 489
  474. #define ERROR_INVALID_SELECTOR 490
  475. #define ERROR_SMG_INVALID_PROGRAM_TYPE 491
  476. #define ERROR_SMG_INVALID_PGM_CONTROL 492
  477. #define ERROR_SMG_INVALID_INHERIT_OPT 493
  478. #define ERROR_VIO_EXTENDED_SG 494
  479. #define ERROR_VIO_NOT_PRES_MGR_SG 495
  480. #define ERROR_VIO_SHIELD_OWNED 496
  481. #define ERROR_VIO_NO_MORE_HANDLES 497
  482. #define ERROR_VIO_SEE_ERROR_LOG 498
  483. #define ERROR_VIO_ASSOCIATED_DC 499
  484. #define ERROR_KBD_NO_CONSOLE 500
  485. #define ERROR_MOUSE_NO_CONSOLE 501
  486. #define ERROR_MOUSE_INVALID_HANDLE 502
  487. #define ERROR_SMG_INVALID_DEBUG_PARMS 503
  488. #define ERROR_KBD_EXTENDED_SG 504
  489. #define ERROR_MOU_EXTENDED_SG 505
  490. #define ERROR_SMG_INVALID_ICON_FILE 506
  491. #define ERROR_USER_DEFINED_BASE 0xFF00
  492. #define ERROR_I24_WRITE_PROTECT 0
  493. #define ERROR_I24_BAD_UNIT 1
  494. #define ERROR_I24_NOT_READY 2
  495. #define ERROR_I24_BAD_COMMAND 3
  496. #define ERROR_I24_CRC 4
  497. #define ERROR_I24_BAD_LENGTH 5
  498. #define ERROR_I24_SEEK 6
  499. #define ERROR_I24_NOT_DOS_DISK 7
  500. #define ERROR_I24_SECTOR_NOT_FOUND 8
  501. #define ERROR_I24_OUT_OF_PAPER 9
  502. #define ERROR_I24_WRITE_FAULT 10
  503. #define ERROR_I24_READ_FAULT 11
  504. #define ERROR_I24_GEN_FAILURE 12
  505. #define ERROR_I24_DISK_CHANGE 13
  506. #define ERROR_I24_WRONG_DISK 15
  507. #define ERROR_I24_UNCERTAIN_MEDIA 16
  508. #define ERROR_I24_CHAR_CALL_INTERRUPTED 17
  509. #define ERROR_I24_NO_MONITOR_SUPPORT 18
  510. #define ERROR_I24_INVALID_PARAMETER 19
  511. #define ERROR_I24_DEVICE_IN_USE 20
  512. #define ALLOWED_FAIL 0x0001
  513. #define ALLOWED_ABORT 0x0002
  514. #define ALLOWED_RETRY 0x0004
  515. #define ALLOWED_IGNORE 0x0008
  516. #define ALLOWED_ACKNOWLEDGE 0x0010
  517. #define ALLOWED_DISPATCH 0x8000
  518. #define I24_OPERATION 0x01
  519. #define I24_AREA 0x06
  520. #define I24_CLASS 0x80
  521. /* Values for error CLASS */
  522. #define ERRCLASS_OUTRES 1 /* Out of Resource */
  523. #define ERRCLASS_TEMPSIT 2 /* Temporary Situation */
  524. #define ERRCLASS_AUTH 3 /* Permission problem */
  525. #define ERRCLASS_INTRN 4 /* Internal System Error */
  526. #define ERRCLASS_HRDFAIL 5 /* Hardware Failure */
  527. #define ERRCLASS_SYSFAIL 6 /* System Failure */
  528. #define ERRCLASS_APPERR 7 /* Application Error */
  529. #define ERRCLASS_NOTFND 8 /* Not Found */
  530. #define ERRCLASS_BADFMT 9 /* Bad Format */
  531. #define ERRCLASS_LOCKED 10 /* Locked */
  532. #define ERRCLASS_MEDIA 11 /* Media Failure */
  533. #define ERRCLASS_ALREADY 12 /* Collision with Existing Item */
  534. #define ERRCLASS_UNK 13 /* Unknown/other */
  535. #define ERRCLASS_CANT 14
  536. #define ERRCLASS_TIME 15
  537. /* Values for error ACTION */
  538. #define ERRACT_RETRY 1 /* Retry */
  539. #define ERRACT_DLYRET 2 /* Delay Retry, retry after pause */
  540. #define ERRACT_USER 3 /* Ask user to regive information */
  541. #define ERRACT_ABORT 4 /* abort with clean up */
  542. #define ERRACT_PANIC 5 /* abort immediately */
  543. #define ERRACT_IGNORE 6 /* ignore */
  544. #define ERRACT_INTRET 7 /* Retry after User Intervention */
  545. /* Values for error LOCUS */
  546. #define ERRLOC_UNK 1 /* No appropriate value */
  547. #define ERRLOC_DISK 2 /* Random Access Mass Storage */
  548. #define ERRLOC_NET 3 /* Network */
  549. #define ERRLOC_SERDEV 4 /* Serial Device */
  550. #define ERRLOC_MEM 5 /* Memory */
  551. /* Abnormal termination codes */
  552. #define TC_NORMAL 0
  553. #define TC_HARDERR 1
  554. #define TC_GP_TRAP 2
  555. #define TC_SIGNAL 3
  556. #define ERROR_SWAPPER_NOT_ACTIVE 32768
  557. #define ERROR_INVALID_SWAPID 32769
  558. #define ERROR_IOERR_SWAP_FILE 32770
  559. #define ERROR_SWAP_TABLE_FULL 32771
  560. #define ERROR_SWAP_FILE_FULL 32772
  561. #define ERROR_CANT_INIT_SWAPPER 32773
  562. #define ERROR_SWAPPER_ALREADY_INIT 32774
  563. #define ERROR_PMM_INSUFFICIENT_MEMORY 32775
  564. #define ERROR_PMM_INVALID_FLAGS 32776
  565. #define ERROR_PMM_INVALID_ADDRESS 32777
  566. #define ERROR_PMM_LOCK_FAILED 32778
  567. #define ERROR_PMM_UNLOCK_FAILED 32779
  568. #define ERROR_PMM_MOVE_INCOMPLETE 32780
  569. #define ERROR_UCOM_DRIVE_RENAMED 32781
  570. #define ERROR_UCOM_FILENAME_TRUNCATED 32782
  571. #define ERROR_UCOM_BUFFER_LENGTH 32783
  572. #define ERROR_MON_CHAIN_HANDLE 32784
  573. #define ERROR_MON_NOT_REGISTERED 32785
  574. #define ERROR_SMG_ALREADY_TOP 32786
  575. #define ERROR_PMM_ARENA_MODIFIED 32787
  576. #define ERROR_SMG_PRINTER_OPEN 32788
  577. #define ERROR_PMM_SET_FLAGS_FAILED 32789
  578. #define ERROR_INVALID_DOS_DD 32790
  579. #define ERROR_CPSIO_CODE_PAGE_INVALID 65026
  580. #define ERROR_CPSIO_NO_SPOOLER 65027
  581. #define ERROR_CPSIO_FONT_ID_INVALID 65028
  582. #define ERROR_CPSIO_INTERNAL_ERROR 65033
  583. #define ERROR_CPSIO_INVALID_PTR_NAME 65034
  584. #define ERROR_CPSIO_NOT_ACTIVE 65037
  585. #define ERROR_CPSIO_PID_FULL 65039
  586. #define ERROR_CPSIO_PID_NOT_FOUND 65040
  587. #define ERROR_CPSIO_READ_CTL_SEQ 65043
  588. #define ERROR_CPSIO_READ_FNT_DEF 65045
  589. #define ERROR_CPSIO_WRITE_ERROR 65047
  590. #define ERROR_CPSIO_WRITE_FULL_ERROR 65048
  591. #define ERROR_CPSIO_WRITE_HANDLE_BAD 65049
  592. #define ERROR_CPSIO_SWIT_LOAD 65074
  593. #define ERROR_CPSIO_INV_COMMAND 65077
  594. #define ERROR_CPSIO_NO_FONT_SWIT 65078
  595. #endif