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.

498 lines
15 KiB

  1. '******************************************************************
  2. ' Copyright (c) 1999 Microsoft Corporation
  3. '
  4. ' Module Name:
  5. ' ErrCodes.vbs
  6. '
  7. ' Abstract:
  8. ' Error handling codes
  9. '
  10. '******************************************************************
  11. '
  12. ' For example:
  13. ' 8xxxyyyy = Warning
  14. ' Cxxxyyyy = Error
  15. ' x007yyyy = Win32
  16. ' x009yyyy = Security
  17. ' x004yyyy = ITF
  18. ' x00Cyyyy = Internet
  19. ' x002yyyy = Dispatch
  20. '
  21. '
  22. ' Error return codes defined by Win32 in winerror.h
  23. '
  24. Const ERROR_INVALID_FUNCTION = &H1
  25. Const ERROR_FILE_NOT_FOUND = &H80070002
  26. Const ERROR_PATH_NOT_FOUND = &H80070003
  27. Const ERROR_TOO_MANY_OPEN_FILES = &H4
  28. Const ERROR_ACCESS_DENIED = &H5
  29. Const ERROR_INVALID_HANDLE = &H6
  30. Const ERROR_SHARING_VIOLATION = &H80070020
  31. '
  32. ' Error return codes defined by COM in winerror.h
  33. '
  34. Const NOERROR = &H0
  35. Const E_UNEXPECTED = &H8000FFFF
  36. Const E_NOTIMPL = &H80004001
  37. Const E_OUTOFMEMORY = &H8007000E
  38. Const E_INVALIDARG = &H80070057
  39. Const E_NOINTERFACE = &H80004002
  40. Const E_POINTER = &H80004003
  41. Const E_HANDLE = &H80070006
  42. Const E_ABORT = &H80004004
  43. Const E_FAIL = &H80004005
  44. Const E_ACCESSDENIED = &H80070005
  45. '
  46. ' Error return codes defined by Upload Library
  47. '
  48. Const E_UPLOADLIBRARY_NOT_AUTHENTICATED = &H80041001
  49. Const E_UPLOADLIBRARY_ACCESS_DENIED = &H80041002
  50. Const E_UPLOADLIBRARY_SERVER_QUOTA_EXCEEDED = &H80041003
  51. Const E_UPLOADLIBRARY_SERVER_BUSY = &H80041004
  52. Const E_UPLOADLIBRARY_NO_DATA = &H80041005
  53. Const E_UPLOADLIBRARY_INVALID_PARAMETERS = &H80041006
  54. Const E_UPLOADLIBRARY_CLIENT_QUOTA_EXCEEDED = &H80041007
  55. Const E_UPLOADLIBRARY_WRONG_SERVER_VERSION = &H80041008
  56. Const E_UPLOADLIBRARY_UNEXPECTED_RESPONSE = &H80041009
  57. '
  58. ' Error return codes defined by wininet in wininet.h
  59. '
  60. '
  61. ' Internet API error returns
  62. '
  63. Const ERROR_INTERNET_OUT_OF_HANDLES = &H80072EE1
  64. Const ERROR_INTERNET_TIMEOUT = &H80072EE2
  65. Const ERROR_INTERNET_EXTENDED_ERROR = &H80072EE3
  66. Const ERROR_INTERNET_INTERNAL_ERROR = &H80072EE4
  67. Const ERROR_INTERNET_INVALID_URL = &H80072EE5
  68. Const ERROR_INTERNET_UNRECOGNIZED_SCHEME = &H80072EE6
  69. Const ERROR_INTERNET_NAME_NOT_RESOLVED = &H80072EE7
  70. Const ERROR_INTERNET_PROTOCOL_NOT_FOUND = &H80072EE8
  71. Const ERROR_INTERNET_INVALID_OPTION = &H80072EE9
  72. Const ERROR_INTERNET_BAD_OPTION_LENGTH = &H80072EEA
  73. Const ERROR_INTERNET_OPTION_NOT_SETTABLE = &H80072EEB
  74. Const ERROR_INTERNET_SHUTDOWN = &H80072EEC
  75. Const ERROR_INTERNET_INCORRECT_USER_NAME = &H80072EED
  76. Const ERROR_INTERNET_INCORRECT_PASSWORD = &H80072EEE
  77. Const ERROR_INTERNET_LOGIN_FAILURE = &H80072EEF
  78. Const ERROR_INTERNET_INVALID_OPERATION = &H80072EF0
  79. Const ERROR_INTERNET_OPERATION_CANCELLED = &H80072EF1
  80. Const ERROR_INTERNET_INCORRECT_HANDLE_TYPE = &H80072EF2
  81. Const ERROR_INTERNET_INCORRECT_HANDLE_STATE = &H80072EF3
  82. Const ERROR_INTERNET_NOT_PROXY_REQUEST = &H80072EF4
  83. Const ERROR_INTERNET_REGISTRY_VALUE_NOT_FOUND = &H80072EF5
  84. Const ERROR_INTERNET_BAD_REGISTRY_PARAMETER = &H80072EF6
  85. Const ERROR_INTERNET_NO_DIRECT_ACCESS = &H80072EF7
  86. Const ERROR_INTERNET_NO_CONTEXT = &H80072EF8
  87. Const ERROR_INTERNET_NO_CALLBACK = &H80072EF9
  88. Const ERROR_INTERNET_REQUEST_PENDING = &H80072EFA
  89. Const ERROR_INTERNET_INCORRECT_FORMAT = &H80072EFB
  90. Const ERROR_INTERNET_ITEM_NOT_FOUND = &H80072EFC
  91. Const ERROR_INTERNET_CANNOT_CONNECT = &H80072EFD
  92. Const ERROR_INTERNET_CONNECTION_ABORTED = &H80072EFE
  93. Const ERROR_INTERNET_CONNECTION_RESET = &H80072EFF
  94. Const ERROR_INTERNET_FORCE_RETRY = &H80072F00
  95. Const ERROR_INTERNET_INVALID_PROXY_REQUEST = &H80072F01
  96. Const ERROR_INTERNET_NEED_UI = &H80072F02
  97. Const ERROR_INTERNET_HANDLE_EXISTS = &H80072F04
  98. Const ERROR_INTERNET_SEC_CERT_DATE_INVALID = &H80072F05
  99. Const ERROR_INTERNET_SEC_CERT_CN_INVALID = &H80072F06
  100. Const ERROR_INTERNET_HTTP_TO_HTTPS_ON_REDIR = &H80072F07
  101. Const ERROR_INTERNET_HTTPS_TO_HTTP_ON_REDIR = &H80072F08
  102. Const ERROR_INTERNET_MIXED_SECURITY = &H80072F09
  103. Const ERROR_INTERNET_CHG_POST_IS_NON_SECURE = &H80072F0A
  104. Const ERROR_INTERNET_POST_IS_NON_SECURE = &H80072F0B
  105. Const ERROR_INTERNET_CLIENT_AUTH_CERT_NEEDED = &H80072F0C
  106. Const ERROR_INTERNET_INVALID_CA = &H80072F0D
  107. Const ERROR_INTERNET_CLIENT_AUTH_NOT_SETUP = &H80072F0E
  108. Const ERROR_INTERNET_ASYNC_THREAD_FAILED = &H80072F0F
  109. Const ERROR_INTERNET_REDIRECT_SCHEME_CHANGE = &H80072F10
  110. Const ERROR_INTERNET_DIALOG_PENDING = &H80072F11
  111. Const ERROR_INTERNET_RETRY_DIALOG = &H80072F12
  112. Const ERROR_INTERNET_HTTPS_HTTP_SUBMIT_REDIR = &H80072F14
  113. Const ERROR_INTERNET_INSERT_CDROM = &H80072F15
  114. Const ERROR_INTERNET_FORTEZZA_LOGIN_NEEDED = &H80072F16
  115. Const ERROR_INTERNET_SEC_CERT_ERRORS = &H80072F17
  116. Const ERROR_INTERNET_SEC_CERT_NO_REV = &H80072F18
  117. Const ERROR_INTERNET_SEC_CERT_REV_FAILED = &H80072F19
  118. '
  119. ' HTTP API errors
  120. '
  121. Const ERROR_HTTP_HEADER_NOT_FOUND = &H80072F76
  122. Const ERROR_HTTP_DOWNLEVEL_SERVER = &H80072F77
  123. Const ERROR_HTTP_INVALID_SERVER_RESPONSE = &H80072F78
  124. Const ERROR_HTTP_INVALID_HEADER = &H80072F79
  125. Const ERROR_HTTP_INVALID_QUERY_REQUEST = &H80072F7A
  126. Const ERROR_HTTP_HEADER_ALREADY_EXISTS = &H80072F7B
  127. Const ERROR_HTTP_REDIRECT_FAILED = &H80072F7C
  128. Const ERROR_HTTP_NOT_REDIRECTED = &H80072F80
  129. Const ERROR_HTTP_COOKIE_NEEDS_CONFIRMATION = &H80072F81
  130. Const ERROR_HTTP_COOKIE_DECLINED = &H80072F82
  131. Const ERROR_HTTP_REDIRECT_NEEDS_CONFIRMATION = &H80072F88
  132. '
  133. ' additional Internet API error codes
  134. '
  135. Const ERROR_INTERNET_SECURITY_CHANNEL_ERROR = &H80072F7D
  136. Const ERROR_INTERNET_UNABLE_TO_CACHE_FILE = &H80072F7E
  137. Const ERROR_INTERNET_TCPIP_NOT_INSTALLED = &H80072F7F
  138. Const ERROR_INTERNET_DISCONNECTED = &H80072F83
  139. Const ERROR_INTERNET_SERVER_UNREACHABLE = &H80072F84
  140. Const ERROR_INTERNET_PROXY_SERVER_UNREACHABLE = &H80072F85
  141. Const ERROR_INTERNET_BAD_AUTO_PROXY_SCRIPT = &H80072F86
  142. Const ERROR_INTERNET_UNABLE_TO_DOWNLOAD_SCRIPT = &H80072F87
  143. Const ERROR_INTERNET_SEC_INVALID_CERT = &H80072F89
  144. Const ERROR_INTERNET_SEC_CERT_REVOKED = &H80072F8A
  145. '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  146. '
  147. ' Function: ERR_GetJobErrorCodeString
  148. '
  149. ' Function: Creates a string representation of the IMPCUploadJob::ErrorCode
  150. ' property. The errors come from the UploadManager.idl file, from
  151. ' winerror.h, and from wininet.h.
  152. '
  153. '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  154. Function ERR_GetJobErrorCodeString(lErrorCode)
  155. if (fDebug) then WScript.Echo "DEBUG: Function GetJobErrorCodeString"
  156. Dim szErrorCode
  157. Select Case CLng(lErrorCode)
  158. '
  159. ' Win32 Errors
  160. '
  161. case ERROR_INVALID_FUNCTION
  162. szErrorCode = "ERROR_INVALID_FUNCTION"
  163. case ERROR_FILE_NOT_FOUND
  164. szErrorCode = "ERROR_FILE_NOT_FOUND"
  165. case ERROR_PATH_NOT_FOUND
  166. szErrorCode = "ERROR_PATH_NOT_FOUND"
  167. case ERROR_TOO_MANY_OPEN_FILES
  168. szErrorCode = "ERROR_TOO_MANY_OPEN_FILES"
  169. case ERROR_ACCESS_DENIED
  170. szErrorCode = "ERROR_ACCESS_DENIED"
  171. case ERROR_INVALID_HANDLE
  172. szErrorCode = "ERROR_INVALID_HANDLE"
  173. case ERROR_SHARING_VIOLATION
  174. szErrorCode = "ERROR_SHARING_VIOLATION"
  175. '
  176. ' COM errors
  177. '
  178. case NOERROR
  179. szErrorCode = "NOERROR"
  180. case E_UNEXPECTED
  181. szErrorCode = "E_UNEXPECTED"
  182. case E_NOTIMPL
  183. szErrorCode = "E_NOTIMPL"
  184. case E_OUTOFMEMORY
  185. szErrorCode = "E_OUTOFMEMORY"
  186. case E_INVALIDARG
  187. szErrorCode = "E_INVALIDARG"
  188. case E_NOINTERFACE
  189. szErrorCode = "E_NOINTERFACE"
  190. case E_POINTER
  191. szErrorCode = "E_POINTER"
  192. case E_HANDLE
  193. szErrorCode = "E_HANDLE"
  194. case E_ABORT
  195. szErrorCode = "E_ABORT"
  196. case E_FAIL
  197. szErrorCode = "E_FAIL"
  198. case E_ACCESSDENIED
  199. szErrorCode = "E_ACCESSDENIED"
  200. '
  201. 'PCHealth Transport Library errors
  202. '
  203. case E_UPLOADLIBRARY_NOT_AUTHENTICATED
  204. szErrorCode = "E_UPLOADLIBRARY_NOT_AUTHENTICATED"
  205. case E_UPLOADLIBRARY_ACCESS_DENIED
  206. szErrorCode = "E_UPLOADLIBRARY_ACCESS_DENIED"
  207. case E_UPLOADLIBRARY_SERVER_QUOTA_EXCEEDED
  208. szErrorCode = "E_UPLOADLIBRARY_SERVER_QUOTA_EXCEEDED"
  209. case E_UPLOADLIBRARY_SERVER_BUSY
  210. szErrorCode = "E_UPLOADLIBRARY_SERVER_BUSY"
  211. case E_UPLOADLIBRARY_NO_DATA
  212. szErrorCode = "E_UPLOADLIBRARY_NO_DATA"
  213. case E_UPLOADLIBRARY_INVALID_PARAMETERS
  214. szErrorCode = "E_UPLOADLIBRARY_INVALID_PARAMETERS"
  215. case E_UPLOADLIBRARY_CLIENT_QUOTA_EXCEEDED
  216. szErrorCode = "E_UPLOADLIBRARY_CLIENT_QUOTA_EXCEEDED"
  217. case E_UPLOADLIBRARY_WRONG_SERVER_VERSION
  218. szErrorCode = "E_UPLOADLIBRARY_WRONG_SERVER_VERSION"
  219. case E_UPLOADLIBRARY_UNEXPECTED_RESPONSE
  220. szErrorCode = "E_UPLOADLIBRARY_UNEXPECTED_RESPONSE"
  221. '
  222. ' Internet API error returns
  223. '
  224. case ERROR_INTERNET_OUT_OF_HANDLES
  225. szErrorCode = "ERROR_INTERNET_OUT_OF_HANDLES"
  226. case ERROR_INTERNET_TIMEOUT
  227. szErrorCode = "ERROR_INTERNET_TIMEOUT"
  228. case ERROR_INTERNET_EXTENDED_ERROR
  229. szErrorCode = "ERROR_INTERNET_EXTENDED_ERROR"
  230. case ERROR_INTERNET_INTERNAL_ERROR
  231. szErrorCode = "ERROR_INTERNET_INTERNAL_ERROR"
  232. case ERROR_INTERNET_INVALID_URL
  233. szErrorCode = "ERROR_INTERNET_INVALID_URL"
  234. case ERROR_INTERNET_UNRECOGNIZED_SCHEME
  235. szErrorCode = "ERROR_INTERNET_UNRECOGNIZED_SCHEME"
  236. case ERROR_INTERNET_NAME_NOT_RESOLVED
  237. szErrorCode = "ERROR_INTERNET_NAME_NOT_RESOLVED"
  238. case ERROR_INTERNET_PROTOCOL_NOT_FOUND
  239. szErrorCode = "ERROR_INTERNET_PROTOCOL_NOT_FOUND"
  240. case ERROR_INTERNET_INVALID_OPTION
  241. szErrorCode = "ERROR_INTERNET_INVALID_OPTION"
  242. case ERROR_INTERNET_BAD_OPTION_LENGTH
  243. szErrorCode = "ERROR_INTERNET_BAD_OPTION_LENGTH"
  244. case ERROR_INTERNET_OPTION_NOT_SETTABLE
  245. szErrorCode = "ERROR_INTERNET_OPTION_NOT_SETTABLE"
  246. case ERROR_INTERNET_SHUTDOWN
  247. szErrorCode = "ERROR_INTERNET_SHUTDOWN"
  248. case ERROR_INTERNET_INCORRECT_USER_NAME
  249. szErrorCode = "ERROR_INTERNET_INCORRECT_USER_NAME"
  250. case ERROR_INTERNET_INCORRECT_PASSWORD
  251. szErrorCode = "ERROR_INTERNET_INCORRECT_PASSWORD"
  252. case ERROR_INTERNET_LOGIN_FAILURE
  253. szErrorCode = "ERROR_INTERNET_LOGIN_FAILURE"
  254. case ERROR_INTERNET_INVALID_OPERATION
  255. szErrorCode = "ERROR_INTERNET_INVALID_OPERATION"
  256. case ERROR_INTERNET_OPERATION_CANCELLED
  257. szErrorCode = "ERROR_INTERNET_OPERATION_CANCELLED"
  258. case ERROR_INTERNET_INCORRECT_HANDLE_TYPE
  259. szErrorCode = "ERROR_INTERNET_INCORRECT_HANDLE_TYPE"
  260. case ERROR_INTERNET_INCORRECT_HANDLE_STATE
  261. szErrorCode = "ERROR_INTERNET_INCORRECT_HANDLE_STATE"
  262. case ERROR_INTERNET_NOT_PROXY_REQUEST
  263. szErrorCode = "ERROR_INTERNET_NOT_PROXY_REQUEST"
  264. case ERROR_INTERNET_REGISTRY_VALUE_NOT_FOUND
  265. szErrorCode = "ERROR_INTERNET_REGISTRY_VALUE_NOT_FOUND"
  266. case ERROR_INTERNET_BAD_REGISTRY_PARAMETER
  267. szErrorCode = "ERROR_INTERNET_BAD_REGISTRY_PARAMETER"
  268. case ERROR_INTERNET_NO_DIRECT_ACCESS
  269. szErrorCode = "ERROR_INTERNET_NO_DIRECT_ACCESS"
  270. case ERROR_INTERNET_NO_CONTEXT
  271. szErrorCode = "ERROR_INTERNET_NO_CONTEXT"
  272. case ERROR_INTERNET_NO_CALLBACK
  273. szErrorCode = "ERROR_INTERNET_NO_CALLBACK"
  274. case ERROR_INTERNET_REQUEST_PENDING
  275. szErrorCode = "ERROR_INTERNET_REQUEST_PENDING"
  276. case ERROR_INTERNET_INCORRECT_FORMAT
  277. szErrorCode = "ERROR_INTERNET_INCORRECT_FORMAT"
  278. case ERROR_INTERNET_ITEM_NOT_FOUND
  279. szErrorCode = "ERROR_INTERNET_ITEM_NOT_FOUND"
  280. case ERROR_INTERNET_CANNOT_CONNECT
  281. szErrorCode = "ERROR_INTERNET_CANNOT_CONNECT"
  282. case ERROR_INTERNET_CONNECTION_ABORTED
  283. szErrorCode = "ERROR_INTERNET_CONNECTION_ABORTED"
  284. case ERROR_INTERNET_CONNECTION_RESET
  285. szErrorCode = "ERROR_INTERNET_CONNECTION_RESET"
  286. case ERROR_INTERNET_FORCE_RETRY
  287. szErrorCode = "ERROR_INTERNET_FORCE_RETRY"
  288. case ERROR_INTERNET_INVALID_PROXY_REQUEST
  289. szErrorCode = "ERROR_INTERNET_INVALID_PROXY_REQUEST"
  290. case ERROR_INTERNET_NEED_UI
  291. szErrorCode = "ERROR_INTERNET_NEED_UI"
  292. case ERROR_INTERNET_HANDLE_EXISTS
  293. szErrorCode = "ERROR_INTERNET_HANDLE_EXISTS"
  294. case ERROR_INTERNET_SEC_CERT_DATE_INVALID
  295. szErrorCode = "ERROR_INTERNET_SEC_CERT_DATE_INVALID"
  296. case ERROR_INTERNET_SEC_CERT_CN_INVALID
  297. szErrorCode = "ERROR_INTERNET_SEC_CERT_CN_INVALID"
  298. case ERROR_INTERNET_HTTP_TO_HTTPS_ON_REDIR
  299. szErrorCode = "ERROR_INTERNET_HTTP_TO_HTTPS_ON_REDIR"
  300. case ERROR_INTERNET_HTTPS_TO_HTTP_ON_REDIR
  301. szErrorCode = "ERROR_INTERNET_HTTPS_TO_HTTP_ON_REDIR"
  302. case ERROR_INTERNET_MIXED_SECURITY
  303. szErrorCode = "ERROR_INTERNET_MIXED_SECURITY"
  304. case ERROR_INTERNET_CHG_POST_IS_NON_SECURE
  305. szErrorCode = "ERROR_INTERNET_CHG_POST_IS_NON_SECURE"
  306. case ERROR_INTERNET_POST_IS_NON_SECURE
  307. szErrorCode = "ERROR_INTERNET_POST_IS_NON_SECURE"
  308. case ERROR_INTERNET_CLIENT_AUTH_CERT_NEEDED
  309. szErrorCode = "ERROR_INTERNET_CLIENT_AUTH_CERT_NEEDED"
  310. case ERROR_INTERNET_INVALID_CA
  311. szErrorCode = "ERROR_INTERNET_INVALID_CA"
  312. case ERROR_INTERNET_CLIENT_AUTH_NOT_SETUP
  313. szErrorCode = "ERROR_INTERNET_CLIENT_AUTH_NOT_SETUP"
  314. case ERROR_INTERNET_ASYNC_THREAD_FAILED
  315. szErrorCode = "ERROR_INTERNET_ASYNC_THREAD_FAILED"
  316. case ERROR_INTERNET_REDIRECT_SCHEME_CHANGE
  317. szErrorCode = "ERROR_INTERNET_REDIRECT_SCHEME_CHANGE"
  318. case ERROR_INTERNET_DIALOG_PENDING
  319. szErrorCode = "ERROR_INTERNET_DIALOG_PENDING"
  320. case ERROR_INTERNET_RETRY_DIALOG
  321. szErrorCode = "ERROR_INTERNET_RETRY_DIALOG"
  322. case ERROR_INTERNET_HTTPS_HTTP_SUBMIT_REDIR
  323. szErrorCode = "ERROR_INTERNET_HTTPS_HTTP_SUBMIT_REDIR"
  324. case ERROR_INTERNET_INSERT_CDROM
  325. szErrorCode = "ERROR_INTERNET_INSERT_CDROM"
  326. case ERROR_INTERNET_FORTEZZA_LOGIN_NEEDED
  327. szErrorCode = "ERROR_INTERNET_FORTEZZA_LOGIN_NEEDED"
  328. case ERROR_INTERNET_SEC_CERT_ERRORS
  329. szErrorCode = "ERROR_INTERNET_SEC_CERT_ERRORS"
  330. case ERROR_INTERNET_SEC_CERT_NO_REV
  331. szErrorCode = "ERROR_INTERNET_SEC_CERT_NO_REV"
  332. case ERROR_INTERNET_SEC_CERT_REV_FAILED
  333. szErrorCode = "ERROR_INTERNET_SEC_CERT_REV_FAILED"
  334. '
  335. ' HTTP API errors
  336. '
  337. case ERROR_HTTP_HEADER_NOT_FOUND
  338. szErrorCode = "ERROR_HTTP_HEADER_NOT_FOUND"
  339. case ERROR_HTTP_DOWNLEVEL_SERVER
  340. szErrorCode = "ERROR_HTTP_DOWNLEVEL_SERVER"
  341. case ERROR_HTTP_INVALID_SERVER_RESPONSE
  342. szErrorCode = "ERROR_HTTP_INVALID_SERVER_RESPONSE"
  343. case ERROR_HTTP_INVALID_HEADER
  344. szErrorCode = "ERROR_HTTP_INVALID_HEADER"
  345. case ERROR_HTTP_INVALID_QUERY_REQUEST
  346. szErrorCode = "ERROR_HTTP_INVALID_QUERY_REQUEST"
  347. case ERROR_HTTP_HEADER_ALREADY_EXISTS
  348. szErrorCode = "ERROR_HTTP_HEADER_ALREADY_EXISTS"
  349. case ERROR_HTTP_REDIRECT_FAILED
  350. szErrorCode = "ERROR_HTTP_REDIRECT_FAILED"
  351. case ERROR_HTTP_NOT_REDIRECTED
  352. szErrorCode = "ERROR_HTTP_NOT_REDIRECTED"
  353. case ERROR_HTTP_COOKIE_NEEDS_CONFIRMATION
  354. szErrorCode = "ERROR_HTTP_COOKIE_NEEDS_CONFIRMATION"
  355. case ERROR_HTTP_COOKIE_DECLINED
  356. szErrorCode = "ERROR_HTTP_COOKIE_DECLINED"
  357. case ERROR_HTTP_REDIRECT_NEEDS_CONFIRMATION
  358. szErrorCode = "ERROR_HTTP_REDIRECT_NEEDS_CONFIRMATION"
  359. '
  360. ' additional Internet API error codes
  361. '
  362. case ERROR_INTERNET_SECURITY_CHANNEL_ERROR
  363. szErrorCode = "ERROR_INTERNET_SECURITY_CHANNEL_ERROR"
  364. case ERROR_INTERNET_UNABLE_TO_CACHE_FILE
  365. szErrorCode = "ERROR_INTERNET_UNABLE_TO_CACHE_FILE"
  366. case ERROR_INTERNET_TCPIP_NOT_INSTALLED
  367. szErrorCode = "ERROR_INTERNET_TCPIP_NOT_INSTALLED"
  368. case ERROR_INTERNET_DISCONNECTED
  369. szErrorCode = "ERROR_INTERNET_DISCONNECTED"
  370. case ERROR_INTERNET_SERVER_UNREACHABLE
  371. szErrorCode = "ERROR_INTERNET_SERVER_UNREACHABLE"
  372. case ERROR_INTERNET_PROXY_SERVER_UNREACHABLE
  373. szErrorCode = "ERROR_INTERNET_PROXY_SERVER_UNREACHABLE"
  374. case ERROR_INTERNET_BAD_AUTO_PROXY_SCRIPT
  375. szErrorCode = "ERROR_INTERNET_BAD_AUTO_PROXY_SCRIPT"
  376. case ERROR_INTERNET_UNABLE_TO_DOWNLOAD_SCRIPT
  377. szErrorCode = "ERROR_INTERNET_UNABLE_TO_DOWNLOAD_SCRIPT"
  378. case ERROR_INTERNET_SEC_INVALID_CERT
  379. szErrorCode = "ERROR_INTERNET_SEC_INVALID_CERT"
  380. case ERROR_INTERNET_SEC_CERT_REVOKED
  381. szErrorCode = "ERROR_INTERNET_SEC_CERT_REVOKED"
  382. case else
  383. szErrorCode = "Unknown(0x" & hex(lErrorCode) & ")"
  384. End Select
  385. ERR_GetJobErrorCodeString = szErrorCode
  386. End Function