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.

223 lines
8.1 KiB

  1. /*
  2. * REVISIONS:
  3. * pcy07Dec92: Added ErrINVALID_VALUE
  4. * pcy21Dec92: Added ErrTEST_IN_PROGRESS
  5. * rct29Jan93: Added CfgMgr & file access error codes
  6. * pcy18Feb93: Added ErrUPS_STATE_SET
  7. * rct21Apr93: Added Process Control errors
  8. * tje20Feb93: Added NO_TIMER error
  9. * cad10Jun93: Added mups not attached error code
  10. * cad02Jul93: Added error for unavailable lights test
  11. * pcy16Jul93: Added errors for thread creation and mailslots
  12. * pcy09Sep93: Added NOT_LOGGED_IN and renumbered to fix duplicates
  13. * cad10Sep93: Added code for standalone network
  14. * rct16Nov93: Added SPX and single thread errors
  15. * cad11Jan94: added generally useful codes
  16. * ntf28Dec95: had to add ErrNO_PROCESSORS to this version of err.h
  17. * someone used this is utils.cxx at some stage but it
  18. * seems to have been merged out of err.h at some stage.
  19. * djs22Feb96: Added increment error codes
  20. * djs17May96: Added DarkStar codes
  21. * ash17Jun96: Added RPC codes
  22. * pav19Jun96: Added sockets codes
  23. * tjg18Sep96: Added server connection codes
  24. * tjg03Dec97: Added ErrNOT_INSTALLED for IM and RIM error conditions
  25. * clk12Jan98: Added ErrWINDOW_CLOSE_FAILED to close all windows
  26. * jk19Aug98: Added smart schedule events overflow error codes
  27. */
  28. #ifndef __ERR_H
  29. #define __ERR_H
  30. #define ErrNO_ERROR 0
  31. #define ErrMEMORY 1
  32. #define ErrREAD_ONLY 2
  33. #define ErrSAME_VALUE 3
  34. #define ErrNO_VALUE 4
  35. #define ErrINVALID_CODE 5
  36. #define ErrCONTINUE 6
  37. #define ErrOPEN_FAILED 7
  38. #define ErrUNSUPPORTED 8
  39. #define ErrNOT_POLLABLE 9
  40. #define ErrWRITE_FAILED 10
  41. #define ErrREAD_FAILED 11
  42. #define ErrTIMED_OUT 12
  43. #define ErrTYPE_COMBINATION 13
  44. #define ErrSMART_MODE_FAILED 14
  45. #define ErrLIGHTSTEST_REQUEST_FAILED 15
  46. // see ErrLIGHTSTEST_NOT_AVAIL below
  47. #define ErrTURNOFFAFTERDELAY_NOT_AVAIL 16
  48. #define ErrSHUTDOWN_NOT_AVAIL 17
  49. #define ErrSIMULATEPOWERFAILURE_NOT_AVAIL 18
  50. #define ErrBATTERYTEST_NOT_AVAIL 19
  51. #define ErrBATTERYCALIBRATION_CAP_TOO_LOW 20
  52. #define ErrBATTERYCALIBRATION_NOT_AVAIL 21
  53. #define ErrBYPASSTEST_ERROR 22
  54. #define ErrBATTERYTEST_BAD_BATTERY 23
  55. #define ErrBATTERYTEST_NO_RECENT_TEST 24
  56. #define ErrBATTERYTEST_INVALID_TEST 25
  57. #define ErrCOPYRIGHT_RESP_ERROR 26
  58. #define ErrEEPROM_RESP_ERROR 27
  59. #define ErrDECREMENT_NOT_AVAIL 28
  60. #define ErrDECREMENT_NOT_ALLOWED 29
  61. #define ErrSET_VALUE_NOT_FOUND 30
  62. #define ErrSET_FAILED 31
  63. #define ErrBUILD_FAILED 32
  64. #define ErrBAD_RESPONSE_VALUE 33
  65. #define ErrCOMMUNICATION_LOST 34
  66. #define ErrINVALID_VALUE 35
  67. #define ErrNO_STATE_CHANGE 36
  68. #define ErrDELETE_FAILED 37
  69. #define ErrRENAME_FAILED 38
  70. #define ErrTEST_IN_PROGRESS 39
  71. #define ErrSCHEDULE_CONFLICT 40
  72. #define ErrUSE_MASTER 41
  73. #define ErrINVALID_ITEM_CODE 42
  74. #define ErrITEM_NOT_CACHED 43
  75. #define ErrDEFAULT_VALUE_USED 44
  76. #define ErrFILE_NOT_FOUND 45
  77. #define ErrACCESS_DENIED 46
  78. #define ErrBUF_TOO_SMALL 47
  79. #define ErrCOMPONENT_NOT_FOUND 48
  80. #define ErrITEM_NOT_FOUND 49
  81. #define ErrINVALID_ITEM 50
  82. #define ErrUNKNOWN_FAILURE 51
  83. #define ErrRETRYING_COMM 52
  84. #define ErrUPS_STATE_SET 53
  85. #define ErrSEM_BLOCK_NG 54
  86. #define ErrSEM_TIMED_OUT 55
  87. #define ErrSEM_RELEASE_ERROR 56
  88. #define ErrSEM_CREATE_FAILED 57
  89. #define ErrSEM_GENERAL_ERROR 58
  90. #define ErrSEM_CLOSING_FLAG_SET 59
  91. #define ErrLIST_EMPTY 60
  92. #define ErrPOSITION_NOT_FOUND 61
  93. #define ErrCLOSING 62
  94. #define ErrBLOCK 63
  95. #define ErrNO_BLOCK 64
  96. #define ErrBAD_HANDLE 65
  97. #define ErrNO_TIMER 66
  98. #define ErrALREADY_REGISTERED 67
  99. #define ErrNO_MEASURE_UPS 68
  100. #define ErrOUT_OF_RANGE 69
  101. #define ErrNETWORK_DOWN 70
  102. #define ErrINVALID_PASSWORD 71
  103. #define ErrLIGHTSTEST_NOT_AVAIL 72
  104. #define ErrTHREAD_CREATE_FAILED 73
  105. #define ErrFAILED_TOGETMAILINFO 74
  106. #define ErrFAILED_TOWRITEMAIL 75
  107. #define ErrFAILED_TOCREATEMAILFILE 76
  108. #define ErrFAILED_MAILSLOTCREATION 77
  109. #define ErrFAILED_TOREADMAILBOX 78
  110. #define ErrFAILED_TOCLOSEMAILSLOT 79
  111. #define ErrTRIP_SET 80
  112. #define ErrTRIP1_SET 81
  113. #define ErrSTATE_SET 82
  114. #define ErrNOT_LOGGED_ON 83
  115. #define ErrSTANDALONE_SYSTEM 84
  116. #define ErrINVALID_CONNECTION 85
  117. #define ErrCONNECTION_OPEN 86
  118. #define ErrCONNECTION_FAILED 87
  119. #define ErrNO_MESSAGE 88
  120. #define ErrBUFFER_NULL 89
  121. #define ErrECB_NOT_READY 90
  122. #define ErrNOT_CANCELLABLE 91
  123. #define ErrEVENT_NOT_TRIGGERED 92
  124. #define ErrNO_PROCESS 93
  125. #define ErrNO_CLIENTS_WAITING 94
  126. #define ErrNO_SERVERS_WAITING 95
  127. #define ErrCOMPONENT 96
  128. #define ErrINVALID_ARGUMENT 100
  129. #define ErrINVALID_TYPE 101
  130. #define ErrNOT_INITIALIZED 102
  131. #define ErrINTERFACE_NOT_INITIALIZED 103
  132. #define ErrMAPI_LOGIN_FAILED 104
  133. #define ErrMAPI_LOGOFF_FAILED 105
  134. #define ErrMAPI_SEND_MAIL_FAILED 106
  135. #define ErrMAPI_NO_ADDRESS_SPECIFIED 107
  136. #define ErrSERVER_NOT_IN_LIST 108
  137. #define ErrDDECONNECT_FAILED 109
  138. #define ErrDDEWAIT_ACK_FAILED 110
  139. #define ErrDDESEND_FAILED 111
  140. #define ErrINVALID_DATE 112
  141. #define ErrPAST_DATE 113
  142. #define ErrDELETED 114
  143. #define ErrNO_PROCESSORS 115
  144. #define ErrINCREMENT_NOT_AVAIL 116
  145. #define ErrINCREMENT_NOT_ALLOWED 117
  146. #define ErrNT_SECURITY_FAILED 116
  147. #define ErrSOCK_CREATION 117
  148. #define ErrSOCK_SERVER_NAME 118
  149. #define ErrSOCK_EXISTS 119
  150. #define ErrSOCK_INVALID 120
  151. #define ErrSOCK_OPT_INVALID 121
  152. #define ErrSOCK_WRITE 122
  153. #define ErrSOCK_READ 123
  154. #define ErrSOCK_STARTUP 124
  155. #define ErrSOCK_CLEANUP 125
  156. #define ErrINVALID_IP_ADDRESS 126
  157. #define ErrSOCK_BIND 127
  158. #define ErrSOCK_CONNECT 128
  159. #define ErrSOCK_LISTEN 129
  160. #define ErrSOCK_ACCEPT 130
  161. #define ErrSOCK_CLOSED 131
  162. #define ErrSOCK_HOSTENT 132
  163. #define ErrSOCK_NOT_STARTED 133
  164. #define ErrSOCK_BUFFER_TOO_SMALL 134
  165. #define ErrPROT_NOTAVAIL 135
  166. #define ErrABNORMAL_CONDITION_SET 136
  167. #define ErrMODULE_COUNTS_SET 137
  168. #define ErrVOLTAGE_FREQUENCY_SET 138
  169. #define ErrVOLTAGE_CURRENTS_SET 139
  170. #define ErrRPC_INVALID_BINDING 140
  171. #define ErrRPC_NO_CONNECTED_CLIENT 141
  172. #define ErrREGISTER_FAILED 142
  173. #define ErrUNREGISTER_FAILED 143
  174. #define ErrINVALID_SERVER 144
  175. #define ErrNO_DNS 145
  176. #define ErrFOREIGN_DOMAIN 146
  177. #define ErrWEBAGENT_NOT_RUNNING 147
  178. #define ErrNOT_INSTALLED 148
  179. #define ErrWINDOW_CLOSE_FAILED 149
  180. #define ErrOVER_SHUTDOWN_EVT 150
  181. #define ErrOVER_CALIBRATION_EVT 151
  182. #define ErrOVER_TEST_EVT 152
  183. #define ErrNO_FRONT_END 153
  184. #endif