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.

276 lines
12 KiB

  1. IFNDEF _WINERROR_
  2. _WINERROR_ EQU 1
  3. ;* DOS and OS/2 Compatible Error Code definitions returned by the Win32 Base
  4. ;* API functions.
  5. ; ** Error codes
  6. NO_ERROR EQU 0
  7. ERROR_INVALID_FUNCTION EQU 1
  8. ERROR_FILE_NOT_FOUND EQU 2
  9. ERROR_PATH_NOT_FOUND EQU 3
  10. ERROR_TOO_MANY_OPEN_FILES EQU 4
  11. ERROR_ACCESS_DENIED EQU 5
  12. ERROR_INVALID_HANDLE EQU 6
  13. ERROR_ARENA_TRASHED EQU 7
  14. ERROR_NOT_ENOUGH_MEMORY EQU 8
  15. ERROR_INVALID_BLOCK EQU 9
  16. ERROR_BAD_ENVIRONMENT EQU 10
  17. ERROR_BAD_FORMAT EQU 11
  18. ERROR_INVALID_ACCESS EQU 12
  19. ERROR_INVALID_DATA EQU 13
  20. ERROR_INVALID_DRIVE EQU 15
  21. ERROR_CURRENT_DIRECTORY EQU 16
  22. ERROR_NOT_SAME_DEVICE EQU 17
  23. ERROR_NO_MORE_FILES EQU 18
  24. ; These are the universal int 24 mappings for the old INT 24 set of errors
  25. ERROR_WRITE_PROTECT EQU 19
  26. ERROR_BAD_UNIT EQU 20
  27. ERROR_NOT_READY EQU 21
  28. ERROR_BAD_COMMAND EQU 22
  29. ERROR_CRC EQU 23
  30. ERROR_BAD_LENGTH EQU 24
  31. ERROR_SEEK EQU 25
  32. ERROR_NOT_DOS_DISK EQU 26
  33. ERROR_SECTOR_NOT_FOUND EQU 27
  34. ERROR_OUT_OF_PAPER EQU 28
  35. ERROR_WRITE_FAULT EQU 29
  36. ERROR_READ_FAULT EQU 30
  37. ERROR_GEN_FAILURE EQU 31
  38. ; These are the new 3.0 error codes reported through INT 24
  39. ERROR_SHARING_VIOLATION EQU 32
  40. ERROR_LOCK_VIOLATION EQU 33
  41. ERROR_WRONG_DISK EQU 34
  42. ; ERROR_FCB_UNAVAILABLE EQU 35
  43. ; ERROR_SHARING_BUFFER_EXCEEDED EQU 36
  44. ; End of INT 24 reportable errors
  45. ERROR_HANDLE_EOF EQU 38
  46. ERROR_HANDLE_DISK_FULL EQU 39
  47. ; Network related errors
  48. ERROR_NOT_SUPPORTED EQU 50 ; Network request not supported
  49. ERROR_REM_NOT_LIST EQU 51 ; Remote computer not listening
  50. ERROR_DUP_NAME EQU 52 ; Duplicate name on network
  51. ERROR_BAD_NETPATH EQU 53 ; Network path not found
  52. ERROR_NETWORK_BUSY EQU 54 ; Network busy
  53. ERROR_DEV_NOT_EXIST EQU 55 ; Network device no longer exists
  54. ERROR_TOO_MANY_CMDS EQU 56 ; Net BIOS command limit exceeded
  55. ERROR_ADAP_HDW_ERR EQU 57 ; Network adapter hardware error
  56. ERROR_BAD_NET_RESP EQU 58 ; Incorrect response from network
  57. ERROR_UNEXP_NET_ERR EQU 59 ; Unexpected network error
  58. ERROR_BAD_REM_ADAP EQU 60 ; Incompatible remote adapter
  59. ERROR_PRINTQ_FULL EQU 61 ; Print queue full
  60. ERROR_NO_SPOOL_SPACE EQU 62 ; Not enough space for print file
  61. ERROR_PRINT_CANCELLED EQU 63 ; Print file was cancelled
  62. ERROR_NETNAME_DELETED EQU 64 ; Network name was deleted
  63. ERROR_NETWORK_ACCESS_DENIED EQU 65 ; Access denied
  64. ERROR_BAD_DEV_TYPE EQU 66 ; Network device type incorrect
  65. ERROR_BAD_NET_NAME EQU 67 ; Network name not found
  66. ERROR_TOO_MANY_NAMES EQU 68 ; Network name limit exceeded
  67. ERROR_TOO_MANY_SESS EQU 69 ; Net BIOS session limit exceeded
  68. ERROR_SHARING_PAUSED EQU 70 ; Sharing temporarily paused
  69. ERROR_REQ_NOT_ACCEP EQU 71 ; Network request not accepted
  70. ERROR_REDIR_PAUSED EQU 72 ; Print|disk redirection is paused
  71. ERROR_FILE_EXISTS EQU 80
  72. ; ERROR_DUP_FCB EQU 81
  73. ERROR_CANNOT_MAKE EQU 82
  74. ERROR_FAIL_I24 EQU 83
  75. ; New 3.0 network related error codes
  76. ERROR_OUT_OF_STRUCTURES EQU 84
  77. ERROR_ALREADY_ASSIGNED EQU 85
  78. ERROR_INVALID_PASSWORD EQU 86
  79. ERROR_INVALID_PARAMETER EQU 87
  80. ERROR_NET_WRITE_FAULT EQU 88
  81. ; New error codes for 4.0
  82. ERROR_NO_PROC_SLOTS EQU 89 ; no process slots available
  83. ; ERROR_NOT_FROZEN EQU 90
  84. ; ERR_TSTOVFL EQU 91 ; timer service table overflow
  85. ; ERR_TSTDUP EQU 92 ; timer service table duplicate
  86. ; ERROR_NO_ITEMS EQU 93 ; no items to operate upon
  87. ; ERROR_INTERRUPT EQU 95 ; interrupted system call
  88. ; ERROR_DEVICE_IN_USE EQU 99 ; Device in use by another thread
  89. ERROR_TOO_MANY_SEMAPHORES EQU 100
  90. ERROR_EXCL_SEM_ALREADY_OWNED EQU 101
  91. ERROR_SEM_IS_SET EQU 102
  92. ERROR_TOO_MANY_SEM_REQUESTS EQU 103
  93. ERROR_INVALID_AT_INTERRUPT_TIME EQU 104
  94. ERROR_SEM_OWNER_DIED EQU 105 ; waitsem found owner died
  95. ERROR_SEM_USER_LIMIT EQU 106 ; too many procs have this sem
  96. ERROR_DISK_CHANGE EQU 107 ; insert disk b into drive a
  97. ERROR_DRIVE_LOCKED EQU 108 ; drive locked by another process
  98. ERROR_BROKEN_PIPE EQU 109 ; write on pipe with no reader
  99. ; New error codes for OS/2 */
  100. ERROR_OPEN_FAILED EQU 110 ; open/created failed due to
  101. ; explicit fail command
  102. ERROR_BUFFER_OVERFLOW EQU 111 ; buffer passed to system call
  103. ; is too small to hold return
  104. ; data.
  105. ERROR_DISK_FULL EQU 112 ; not enough space on the disk
  106. ; (DOSNEWSIZE/w_NewSize)
  107. ERROR_NO_MORE_SEARCH_HANDLES EQU 113 ; can't allocate another search
  108. ; structure and handle.
  109. ; (DOSFINDFIRST/w_FindFirst)
  110. ERROR_INVALID_TARGET_HANDLE EQU 114 ; Target handle in DOSDUPHANDLE
  111. ; is invalid
  112. ; ERROR_PROTECTION_VIOLATION EQU 115 ; Bad user virtual address
  113. ; ERROR_VIOKBD_REQUEST EQU 116
  114. ERROR_INVALID_CATEGORY EQU 117 ; Category for DEVIOCTL in not
  115. ; defined
  116. ERROR_INVALID_VERIFY_SWITCH EQU 118 ; invalid value passed for
  117. ; verify flag
  118. ERROR_BAD_DRIVER_LEVEL EQU 119 ; DosDevIOCTL looks for a level
  119. ; four driver. If the driver
  120. ; is not level four we return
  121. ; this code
  122. ERROR_CALL_NOT_IMPLEMENTED EQU 120 ; returned from stub api calls.
  123. ; This call will disappear when
  124. ; all the api's are implemented.
  125. ERROR_SEM_TIMEOUT EQU 121 ; Time out happened from the
  126. ; semaphore api functions.
  127. ERROR_INSUFFICIENT_BUFFER EQU 122 ; Some calls require the
  128. ; application to pass in a buffer
  129. ; filled with data. This error is
  130. ; returned if the data buffer is too
  131. ; small. For example: DosSetFileInfo
  132. ; requires 4 bytes of data. If a
  133. ; two byte buffer is passed in then
  134. ; this error is returned.
  135. ; error_buffer_overflow is used when
  136. ; the output buffer in not big enough.
  137. ERROR_INVALID_NAME EQU 123 ; illegal character or malformed
  138. ; file system name
  139. ERROR_INVALID_LEVEL EQU 124 ; unimplemented level for info
  140. ; retrieval or setting
  141. ERROR_NO_VOLUME_LABEL EQU 125 ; no volume label found with
  142. ; DosQFSInfo command
  143. ERROR_MOD_NOT_FOUND EQU 126 ; w_getprocaddr,w_getmodhandle
  144. ERROR_PROC_NOT_FOUND EQU 127 ; w_getprocaddr
  145. ; ERROR_WAIT_NO_CHILDREN EQU 128 ; CWait finds to children
  146. ERROR_CHILD_NOT_COMPLETE EQU 129 ; CWait children not dead yet
  147. ERROR_DIRECT_ACCESS_HANDLE EQU 130 ; handle operation is invalid
  148. ; for direct disk access
  149. ; handles
  150. ERROR_NEGATIVE_SEEK EQU 131 ; application tried to seek
  151. ; with negitive offset
  152. ERROR_SEEK_ON_DEVICE EQU 132 ; application tried to seek
  153. ; on device or pipe
  154. ; The following are errors generated by the join and subst workers
  155. ERROR_IS_JOIN_TARGET EQU 133
  156. ERROR_IS_JOINED EQU 134
  157. ERROR_IS_SUBSTED EQU 135
  158. ERROR_NOT_JOINED EQU 136
  159. ERROR_NOT_SUBSTED EQU 137
  160. ERROR_JOIN_TO_JOIN EQU 138
  161. ERROR_SUBST_TO_SUBST EQU 139
  162. ERROR_JOIN_TO_SUBST EQU 140
  163. ERROR_SUBST_TO_JOIN EQU 141
  164. ERROR_BUSY_DRIVE EQU 142
  165. ERROR_SAME_DRIVE EQU 143
  166. ERROR_DIR_NOT_ROOT EQU 144
  167. ERROR_DIR_NOT_EMPTY EQU 145
  168. ERROR_IS_SUBST_PATH EQU 146
  169. ERROR_IS_JOIN_PATH EQU 147
  170. ERROR_PATH_BUSY EQU 148
  171. ERROR_IS_SUBST_TARGET EQU 149
  172. ERROR_SYSTEM_TRACE EQU 150 ; system trace error
  173. ERROR_INVALID_EVENT_COUNT EQU 151 ; DosMuxSemWait errors
  174. ERROR_TOO_MANY_MUXWAITERS EQU 152
  175. ERROR_INVALID_LIST_FORMAT EQU 153
  176. ERROR_LABEL_TOO_LONG EQU 154
  177. ERROR_TOO_MANY_TCBS EQU 155
  178. ERROR_SIGNAL_REFUSED EQU 156
  179. ERROR_DISCARDED EQU 157
  180. ERROR_NOT_LOCKED EQU 158
  181. ERROR_BAD_THREADID_ADDR EQU 159
  182. ERROR_BAD_ARGUMENTS EQU 160
  183. ERROR_BAD_PATHNAME EQU 161
  184. ERROR_SIGNAL_PENDING EQU 162
  185. ; ERROR_UNCERTAIN_MEDIA EQU 163
  186. ERROR_MAX_THRDS_REACHED EQU 164
  187. ; ERROR_MONITORS_NOT_SUPPORTED EQU 165
  188. ERROR_LOCK_FAILED EQU 167
  189. ERROR_BUSY EQU 170
  190. ERROR_INVALID_SEGMENT_NUMBER EQU 180
  191. ; ERROR_INVALID_CALLGATE EQU 181
  192. ERROR_INVALID_ORDINAL EQU 182
  193. ERROR_ALREADY_EXISTS EQU 183
  194. ; ERROR_NO_CHILD_PROCESS EQU 184
  195. ; ERROR_CHILD_ALIVE_NOWAIT EQU 185
  196. ERROR_INVALID_FLAG_NUMBER EQU 186
  197. ERROR_SEM_NOT_FOUND EQU 187
  198. ; following error codes have added to make the loader error
  199. ; messages distinct
  200. ERROR_INVALID_STARTING_CODESEG EQU 188
  201. ERROR_INVALID_STACKSEG EQU 189
  202. ERROR_INVALID_MODULETYPE EQU 190
  203. ERROR_INVALID_EXE_SIGNATURE EQU 191
  204. ERROR_EXE_MARKED_INVALID EQU 192
  205. ERROR_BAD_EXE_FORMAT EQU 193
  206. ERROR_ITERATED_DATA_EXCEEDS_64k EQU 194
  207. ERROR_INVALID_MINALLOCSIZE EQU 195
  208. ERROR_DYNLINK_FROM_INVALID_RING EQU 196
  209. ERROR_IOPL_NOT_ENABLED EQU 197
  210. ERROR_INVALID_SEGDPL EQU 198
  211. ERROR_AUTODATASEG_EXCEEDS_64k EQU 199
  212. ERROR_RING2SEG_MUST_BE_MOVABLE EQU 200
  213. ERROR_RELOC_CHAIN_XEEDS_SEGLIM EQU 201
  214. ERROR_INFLOOP_IN_RELOC_CHAIN EQU 202
  215. ERROR_ENVVAR_NOT_FOUND EQU 203
  216. ERROR_NOT_CURRENT_CTRY EQU 204
  217. ERROR_NO_SIGNAL_SENT EQU 205
  218. ERROR_FILENAME_EXCED_RANGE EQU 206 ; if filename > 8.3
  219. ERROR_RING2_STACK_IN_USE EQU 207 ; for FAPI
  220. ERROR_META_EXPANSION_TOO_LONG EQU 208 ; if "*a" > 8.3
  221. ERROR_INVALID_SIGNAL_NUMBER EQU 209
  222. ERROR_THREAD_1_INACTIVE EQU 210
  223. ; ERROR_INFO_NOT_AVAIL EQU 211 ; PTM 5550
  224. ERROR_LOCKED EQU 212
  225. ; ERROR_BAD_DYNALINK EQU 213 ; PTM 5760
  226. ERROR_TOO_MANY_MODULES EQU 214
  227. ; ERROR_NESTING_NOT_ALLOWED EQU 215
  228. ; Error codes 230 - 249 are reserved for MS Networks
  229. ERROR_BAD_PIPE EQU 230
  230. ERROR_PIPE_BUSY EQU 231
  231. ERROR_NO_DATA EQU 232
  232. ERROR_PIPE_NOT_CONNECTED EQU 233
  233. ERROR_MORE_DATA EQU 234
  234. ERROR_VC_DISCONNECTED EQU 240
  235. ERROR_INVALID_EA_NAME EQU 254
  236. ERROR_NO_MORE_ITEMS EQU 259
  237. ERROR_DIRECTORY EQU 267
  238. ERROR_EAS_DIDNT_FIT EQU 275
  239. ERROR_EAS_NOT_SUPPORTED EQU 282
  240. ERROR_NOT_OWNER EQU 288
  241. ERROR_TOO_MANY_POSTS EQU 298
  242. ERROR_MR_MID_NOT_FOUND EQU 317
  243. ERROR_INVALID_ADDRESS EQU 487
  244. ERROR_ARITHMETIC_OVERFLOW EQU 534
  245. ERROR_IO_INCOMPLETE EQU 996
  246. ERROR_IO_PENDING EQU 997
  247. ERROR_NOACCESS EQU 998
  248. ERROR_SWAPERROR EQU 999
  249. ; Errors added for DOS Extender
  250. ERROR_SYS_INTERNAL EQU 328
  251. ENDIF ; _WINERROR_