mirror of https://github.com/tongzx/nt5src
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
498 lines
15 KiB
'******************************************************************
|
|
' Copyright (c) 1999 Microsoft Corporation
|
|
'
|
|
' Module Name:
|
|
' ErrCodes.vbs
|
|
'
|
|
' Abstract:
|
|
' Error handling codes
|
|
'
|
|
'******************************************************************
|
|
'
|
|
' For example:
|
|
' 8xxxyyyy = Warning
|
|
' Cxxxyyyy = Error
|
|
' x007yyyy = Win32
|
|
' x009yyyy = Security
|
|
' x004yyyy = ITF
|
|
' x00Cyyyy = Internet
|
|
' x002yyyy = Dispatch
|
|
'
|
|
'
|
|
' Error return codes defined by Win32 in winerror.h
|
|
'
|
|
Const ERROR_INVALID_FUNCTION = &H1
|
|
Const ERROR_FILE_NOT_FOUND = &H80070002
|
|
Const ERROR_PATH_NOT_FOUND = &H80070003
|
|
Const ERROR_TOO_MANY_OPEN_FILES = &H4
|
|
Const ERROR_ACCESS_DENIED = &H5
|
|
Const ERROR_INVALID_HANDLE = &H6
|
|
Const ERROR_SHARING_VIOLATION = &H80070020
|
|
'
|
|
' Error return codes defined by COM in winerror.h
|
|
'
|
|
Const NOERROR = &H0
|
|
Const E_UNEXPECTED = &H8000FFFF
|
|
Const E_NOTIMPL = &H80004001
|
|
Const E_OUTOFMEMORY = &H8007000E
|
|
Const E_INVALIDARG = &H80070057
|
|
Const E_NOINTERFACE = &H80004002
|
|
Const E_POINTER = &H80004003
|
|
Const E_HANDLE = &H80070006
|
|
Const E_ABORT = &H80004004
|
|
Const E_FAIL = &H80004005
|
|
Const E_ACCESSDENIED = &H80070005
|
|
|
|
|
|
'
|
|
' Error return codes defined by Upload Library
|
|
'
|
|
Const E_UPLOADLIBRARY_NOT_AUTHENTICATED = &H80041001
|
|
Const E_UPLOADLIBRARY_ACCESS_DENIED = &H80041002
|
|
Const E_UPLOADLIBRARY_SERVER_QUOTA_EXCEEDED = &H80041003
|
|
Const E_UPLOADLIBRARY_SERVER_BUSY = &H80041004
|
|
Const E_UPLOADLIBRARY_NO_DATA = &H80041005
|
|
Const E_UPLOADLIBRARY_INVALID_PARAMETERS = &H80041006
|
|
Const E_UPLOADLIBRARY_CLIENT_QUOTA_EXCEEDED = &H80041007
|
|
Const E_UPLOADLIBRARY_WRONG_SERVER_VERSION = &H80041008
|
|
Const E_UPLOADLIBRARY_UNEXPECTED_RESPONSE = &H80041009
|
|
'
|
|
' Error return codes defined by wininet in wininet.h
|
|
'
|
|
|
|
'
|
|
' Internet API error returns
|
|
'
|
|
Const ERROR_INTERNET_OUT_OF_HANDLES = &H80072EE1
|
|
Const ERROR_INTERNET_TIMEOUT = &H80072EE2
|
|
Const ERROR_INTERNET_EXTENDED_ERROR = &H80072EE3
|
|
Const ERROR_INTERNET_INTERNAL_ERROR = &H80072EE4
|
|
Const ERROR_INTERNET_INVALID_URL = &H80072EE5
|
|
Const ERROR_INTERNET_UNRECOGNIZED_SCHEME = &H80072EE6
|
|
Const ERROR_INTERNET_NAME_NOT_RESOLVED = &H80072EE7
|
|
Const ERROR_INTERNET_PROTOCOL_NOT_FOUND = &H80072EE8
|
|
Const ERROR_INTERNET_INVALID_OPTION = &H80072EE9
|
|
Const ERROR_INTERNET_BAD_OPTION_LENGTH = &H80072EEA
|
|
Const ERROR_INTERNET_OPTION_NOT_SETTABLE = &H80072EEB
|
|
Const ERROR_INTERNET_SHUTDOWN = &H80072EEC
|
|
Const ERROR_INTERNET_INCORRECT_USER_NAME = &H80072EED
|
|
Const ERROR_INTERNET_INCORRECT_PASSWORD = &H80072EEE
|
|
Const ERROR_INTERNET_LOGIN_FAILURE = &H80072EEF
|
|
Const ERROR_INTERNET_INVALID_OPERATION = &H80072EF0
|
|
Const ERROR_INTERNET_OPERATION_CANCELLED = &H80072EF1
|
|
Const ERROR_INTERNET_INCORRECT_HANDLE_TYPE = &H80072EF2
|
|
Const ERROR_INTERNET_INCORRECT_HANDLE_STATE = &H80072EF3
|
|
Const ERROR_INTERNET_NOT_PROXY_REQUEST = &H80072EF4
|
|
Const ERROR_INTERNET_REGISTRY_VALUE_NOT_FOUND = &H80072EF5
|
|
Const ERROR_INTERNET_BAD_REGISTRY_PARAMETER = &H80072EF6
|
|
Const ERROR_INTERNET_NO_DIRECT_ACCESS = &H80072EF7
|
|
Const ERROR_INTERNET_NO_CONTEXT = &H80072EF8
|
|
Const ERROR_INTERNET_NO_CALLBACK = &H80072EF9
|
|
Const ERROR_INTERNET_REQUEST_PENDING = &H80072EFA
|
|
Const ERROR_INTERNET_INCORRECT_FORMAT = &H80072EFB
|
|
Const ERROR_INTERNET_ITEM_NOT_FOUND = &H80072EFC
|
|
Const ERROR_INTERNET_CANNOT_CONNECT = &H80072EFD
|
|
Const ERROR_INTERNET_CONNECTION_ABORTED = &H80072EFE
|
|
Const ERROR_INTERNET_CONNECTION_RESET = &H80072EFF
|
|
Const ERROR_INTERNET_FORCE_RETRY = &H80072F00
|
|
Const ERROR_INTERNET_INVALID_PROXY_REQUEST = &H80072F01
|
|
Const ERROR_INTERNET_NEED_UI = &H80072F02
|
|
|
|
Const ERROR_INTERNET_HANDLE_EXISTS = &H80072F04
|
|
Const ERROR_INTERNET_SEC_CERT_DATE_INVALID = &H80072F05
|
|
Const ERROR_INTERNET_SEC_CERT_CN_INVALID = &H80072F06
|
|
Const ERROR_INTERNET_HTTP_TO_HTTPS_ON_REDIR = &H80072F07
|
|
Const ERROR_INTERNET_HTTPS_TO_HTTP_ON_REDIR = &H80072F08
|
|
Const ERROR_INTERNET_MIXED_SECURITY = &H80072F09
|
|
Const ERROR_INTERNET_CHG_POST_IS_NON_SECURE = &H80072F0A
|
|
Const ERROR_INTERNET_POST_IS_NON_SECURE = &H80072F0B
|
|
Const ERROR_INTERNET_CLIENT_AUTH_CERT_NEEDED = &H80072F0C
|
|
Const ERROR_INTERNET_INVALID_CA = &H80072F0D
|
|
Const ERROR_INTERNET_CLIENT_AUTH_NOT_SETUP = &H80072F0E
|
|
Const ERROR_INTERNET_ASYNC_THREAD_FAILED = &H80072F0F
|
|
Const ERROR_INTERNET_REDIRECT_SCHEME_CHANGE = &H80072F10
|
|
Const ERROR_INTERNET_DIALOG_PENDING = &H80072F11
|
|
Const ERROR_INTERNET_RETRY_DIALOG = &H80072F12
|
|
Const ERROR_INTERNET_HTTPS_HTTP_SUBMIT_REDIR = &H80072F14
|
|
Const ERROR_INTERNET_INSERT_CDROM = &H80072F15
|
|
Const ERROR_INTERNET_FORTEZZA_LOGIN_NEEDED = &H80072F16
|
|
Const ERROR_INTERNET_SEC_CERT_ERRORS = &H80072F17
|
|
Const ERROR_INTERNET_SEC_CERT_NO_REV = &H80072F18
|
|
Const ERROR_INTERNET_SEC_CERT_REV_FAILED = &H80072F19
|
|
'
|
|
' HTTP API errors
|
|
'
|
|
Const ERROR_HTTP_HEADER_NOT_FOUND = &H80072F76
|
|
Const ERROR_HTTP_DOWNLEVEL_SERVER = &H80072F77
|
|
Const ERROR_HTTP_INVALID_SERVER_RESPONSE = &H80072F78
|
|
Const ERROR_HTTP_INVALID_HEADER = &H80072F79
|
|
Const ERROR_HTTP_INVALID_QUERY_REQUEST = &H80072F7A
|
|
Const ERROR_HTTP_HEADER_ALREADY_EXISTS = &H80072F7B
|
|
Const ERROR_HTTP_REDIRECT_FAILED = &H80072F7C
|
|
Const ERROR_HTTP_NOT_REDIRECTED = &H80072F80
|
|
Const ERROR_HTTP_COOKIE_NEEDS_CONFIRMATION = &H80072F81
|
|
Const ERROR_HTTP_COOKIE_DECLINED = &H80072F82
|
|
Const ERROR_HTTP_REDIRECT_NEEDS_CONFIRMATION = &H80072F88
|
|
'
|
|
' additional Internet API error codes
|
|
'
|
|
|
|
Const ERROR_INTERNET_SECURITY_CHANNEL_ERROR = &H80072F7D
|
|
Const ERROR_INTERNET_UNABLE_TO_CACHE_FILE = &H80072F7E
|
|
Const ERROR_INTERNET_TCPIP_NOT_INSTALLED = &H80072F7F
|
|
Const ERROR_INTERNET_DISCONNECTED = &H80072F83
|
|
Const ERROR_INTERNET_SERVER_UNREACHABLE = &H80072F84
|
|
Const ERROR_INTERNET_PROXY_SERVER_UNREACHABLE = &H80072F85
|
|
|
|
Const ERROR_INTERNET_BAD_AUTO_PROXY_SCRIPT = &H80072F86
|
|
Const ERROR_INTERNET_UNABLE_TO_DOWNLOAD_SCRIPT = &H80072F87
|
|
Const ERROR_INTERNET_SEC_INVALID_CERT = &H80072F89
|
|
Const ERROR_INTERNET_SEC_CERT_REVOKED = &H80072F8A
|
|
|
|
|
|
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
|
|
'
|
|
' Function: ERR_GetJobErrorCodeString
|
|
'
|
|
' Function: Creates a string representation of the IMPCUploadJob::ErrorCode
|
|
' property. The errors come from the UploadManager.idl file, from
|
|
' winerror.h, and from wininet.h.
|
|
'
|
|
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
|
|
Function ERR_GetJobErrorCodeString(lErrorCode)
|
|
if (fDebug) then WScript.Echo "DEBUG: Function GetJobErrorCodeString"
|
|
|
|
Dim szErrorCode
|
|
|
|
Select Case CLng(lErrorCode)
|
|
'
|
|
' Win32 Errors
|
|
'
|
|
case ERROR_INVALID_FUNCTION
|
|
szErrorCode = "ERROR_INVALID_FUNCTION"
|
|
|
|
case ERROR_FILE_NOT_FOUND
|
|
szErrorCode = "ERROR_FILE_NOT_FOUND"
|
|
|
|
case ERROR_PATH_NOT_FOUND
|
|
szErrorCode = "ERROR_PATH_NOT_FOUND"
|
|
|
|
case ERROR_TOO_MANY_OPEN_FILES
|
|
szErrorCode = "ERROR_TOO_MANY_OPEN_FILES"
|
|
|
|
case ERROR_ACCESS_DENIED
|
|
szErrorCode = "ERROR_ACCESS_DENIED"
|
|
|
|
case ERROR_INVALID_HANDLE
|
|
szErrorCode = "ERROR_INVALID_HANDLE"
|
|
|
|
case ERROR_SHARING_VIOLATION
|
|
szErrorCode = "ERROR_SHARING_VIOLATION"
|
|
|
|
'
|
|
' COM errors
|
|
'
|
|
case NOERROR
|
|
szErrorCode = "NOERROR"
|
|
|
|
case E_UNEXPECTED
|
|
szErrorCode = "E_UNEXPECTED"
|
|
|
|
case E_NOTIMPL
|
|
szErrorCode = "E_NOTIMPL"
|
|
|
|
case E_OUTOFMEMORY
|
|
szErrorCode = "E_OUTOFMEMORY"
|
|
|
|
case E_INVALIDARG
|
|
szErrorCode = "E_INVALIDARG"
|
|
|
|
case E_NOINTERFACE
|
|
szErrorCode = "E_NOINTERFACE"
|
|
|
|
case E_POINTER
|
|
szErrorCode = "E_POINTER"
|
|
|
|
case E_HANDLE
|
|
szErrorCode = "E_HANDLE"
|
|
|
|
case E_ABORT
|
|
szErrorCode = "E_ABORT"
|
|
|
|
case E_FAIL
|
|
szErrorCode = "E_FAIL"
|
|
|
|
case E_ACCESSDENIED
|
|
szErrorCode = "E_ACCESSDENIED"
|
|
'
|
|
'PCHealth Transport Library errors
|
|
'
|
|
case E_UPLOADLIBRARY_NOT_AUTHENTICATED
|
|
szErrorCode = "E_UPLOADLIBRARY_NOT_AUTHENTICATED"
|
|
|
|
case E_UPLOADLIBRARY_ACCESS_DENIED
|
|
szErrorCode = "E_UPLOADLIBRARY_ACCESS_DENIED"
|
|
|
|
case E_UPLOADLIBRARY_SERVER_QUOTA_EXCEEDED
|
|
szErrorCode = "E_UPLOADLIBRARY_SERVER_QUOTA_EXCEEDED"
|
|
|
|
case E_UPLOADLIBRARY_SERVER_BUSY
|
|
szErrorCode = "E_UPLOADLIBRARY_SERVER_BUSY"
|
|
|
|
case E_UPLOADLIBRARY_NO_DATA
|
|
szErrorCode = "E_UPLOADLIBRARY_NO_DATA"
|
|
|
|
case E_UPLOADLIBRARY_INVALID_PARAMETERS
|
|
szErrorCode = "E_UPLOADLIBRARY_INVALID_PARAMETERS"
|
|
|
|
case E_UPLOADLIBRARY_CLIENT_QUOTA_EXCEEDED
|
|
szErrorCode = "E_UPLOADLIBRARY_CLIENT_QUOTA_EXCEEDED"
|
|
|
|
case E_UPLOADLIBRARY_WRONG_SERVER_VERSION
|
|
szErrorCode = "E_UPLOADLIBRARY_WRONG_SERVER_VERSION"
|
|
|
|
case E_UPLOADLIBRARY_UNEXPECTED_RESPONSE
|
|
szErrorCode = "E_UPLOADLIBRARY_UNEXPECTED_RESPONSE"
|
|
'
|
|
' Internet API error returns
|
|
'
|
|
case ERROR_INTERNET_OUT_OF_HANDLES
|
|
szErrorCode = "ERROR_INTERNET_OUT_OF_HANDLES"
|
|
|
|
case ERROR_INTERNET_TIMEOUT
|
|
szErrorCode = "ERROR_INTERNET_TIMEOUT"
|
|
|
|
case ERROR_INTERNET_EXTENDED_ERROR
|
|
szErrorCode = "ERROR_INTERNET_EXTENDED_ERROR"
|
|
|
|
case ERROR_INTERNET_INTERNAL_ERROR
|
|
szErrorCode = "ERROR_INTERNET_INTERNAL_ERROR"
|
|
|
|
case ERROR_INTERNET_INVALID_URL
|
|
szErrorCode = "ERROR_INTERNET_INVALID_URL"
|
|
|
|
case ERROR_INTERNET_UNRECOGNIZED_SCHEME
|
|
szErrorCode = "ERROR_INTERNET_UNRECOGNIZED_SCHEME"
|
|
|
|
case ERROR_INTERNET_NAME_NOT_RESOLVED
|
|
szErrorCode = "ERROR_INTERNET_NAME_NOT_RESOLVED"
|
|
|
|
case ERROR_INTERNET_PROTOCOL_NOT_FOUND
|
|
szErrorCode = "ERROR_INTERNET_PROTOCOL_NOT_FOUND"
|
|
|
|
case ERROR_INTERNET_INVALID_OPTION
|
|
szErrorCode = "ERROR_INTERNET_INVALID_OPTION"
|
|
|
|
case ERROR_INTERNET_BAD_OPTION_LENGTH
|
|
szErrorCode = "ERROR_INTERNET_BAD_OPTION_LENGTH"
|
|
|
|
case ERROR_INTERNET_OPTION_NOT_SETTABLE
|
|
szErrorCode = "ERROR_INTERNET_OPTION_NOT_SETTABLE"
|
|
|
|
case ERROR_INTERNET_SHUTDOWN
|
|
szErrorCode = "ERROR_INTERNET_SHUTDOWN"
|
|
|
|
case ERROR_INTERNET_INCORRECT_USER_NAME
|
|
szErrorCode = "ERROR_INTERNET_INCORRECT_USER_NAME"
|
|
|
|
case ERROR_INTERNET_INCORRECT_PASSWORD
|
|
szErrorCode = "ERROR_INTERNET_INCORRECT_PASSWORD"
|
|
|
|
case ERROR_INTERNET_LOGIN_FAILURE
|
|
szErrorCode = "ERROR_INTERNET_LOGIN_FAILURE"
|
|
|
|
case ERROR_INTERNET_INVALID_OPERATION
|
|
szErrorCode = "ERROR_INTERNET_INVALID_OPERATION"
|
|
|
|
case ERROR_INTERNET_OPERATION_CANCELLED
|
|
szErrorCode = "ERROR_INTERNET_OPERATION_CANCELLED"
|
|
|
|
case ERROR_INTERNET_INCORRECT_HANDLE_TYPE
|
|
szErrorCode = "ERROR_INTERNET_INCORRECT_HANDLE_TYPE"
|
|
|
|
case ERROR_INTERNET_INCORRECT_HANDLE_STATE
|
|
szErrorCode = "ERROR_INTERNET_INCORRECT_HANDLE_STATE"
|
|
|
|
case ERROR_INTERNET_NOT_PROXY_REQUEST
|
|
szErrorCode = "ERROR_INTERNET_NOT_PROXY_REQUEST"
|
|
|
|
case ERROR_INTERNET_REGISTRY_VALUE_NOT_FOUND
|
|
szErrorCode = "ERROR_INTERNET_REGISTRY_VALUE_NOT_FOUND"
|
|
|
|
case ERROR_INTERNET_BAD_REGISTRY_PARAMETER
|
|
szErrorCode = "ERROR_INTERNET_BAD_REGISTRY_PARAMETER"
|
|
|
|
case ERROR_INTERNET_NO_DIRECT_ACCESS
|
|
szErrorCode = "ERROR_INTERNET_NO_DIRECT_ACCESS"
|
|
|
|
case ERROR_INTERNET_NO_CONTEXT
|
|
szErrorCode = "ERROR_INTERNET_NO_CONTEXT"
|
|
|
|
case ERROR_INTERNET_NO_CALLBACK
|
|
szErrorCode = "ERROR_INTERNET_NO_CALLBACK"
|
|
|
|
case ERROR_INTERNET_REQUEST_PENDING
|
|
szErrorCode = "ERROR_INTERNET_REQUEST_PENDING"
|
|
|
|
case ERROR_INTERNET_INCORRECT_FORMAT
|
|
szErrorCode = "ERROR_INTERNET_INCORRECT_FORMAT"
|
|
|
|
case ERROR_INTERNET_ITEM_NOT_FOUND
|
|
szErrorCode = "ERROR_INTERNET_ITEM_NOT_FOUND"
|
|
|
|
case ERROR_INTERNET_CANNOT_CONNECT
|
|
szErrorCode = "ERROR_INTERNET_CANNOT_CONNECT"
|
|
|
|
case ERROR_INTERNET_CONNECTION_ABORTED
|
|
szErrorCode = "ERROR_INTERNET_CONNECTION_ABORTED"
|
|
|
|
case ERROR_INTERNET_CONNECTION_RESET
|
|
szErrorCode = "ERROR_INTERNET_CONNECTION_RESET"
|
|
|
|
case ERROR_INTERNET_FORCE_RETRY
|
|
szErrorCode = "ERROR_INTERNET_FORCE_RETRY"
|
|
|
|
case ERROR_INTERNET_INVALID_PROXY_REQUEST
|
|
szErrorCode = "ERROR_INTERNET_INVALID_PROXY_REQUEST"
|
|
|
|
case ERROR_INTERNET_NEED_UI
|
|
szErrorCode = "ERROR_INTERNET_NEED_UI"
|
|
|
|
case ERROR_INTERNET_HANDLE_EXISTS
|
|
szErrorCode = "ERROR_INTERNET_HANDLE_EXISTS"
|
|
|
|
case ERROR_INTERNET_SEC_CERT_DATE_INVALID
|
|
szErrorCode = "ERROR_INTERNET_SEC_CERT_DATE_INVALID"
|
|
|
|
case ERROR_INTERNET_SEC_CERT_CN_INVALID
|
|
szErrorCode = "ERROR_INTERNET_SEC_CERT_CN_INVALID"
|
|
|
|
case ERROR_INTERNET_HTTP_TO_HTTPS_ON_REDIR
|
|
szErrorCode = "ERROR_INTERNET_HTTP_TO_HTTPS_ON_REDIR"
|
|
|
|
case ERROR_INTERNET_HTTPS_TO_HTTP_ON_REDIR
|
|
szErrorCode = "ERROR_INTERNET_HTTPS_TO_HTTP_ON_REDIR"
|
|
|
|
case ERROR_INTERNET_MIXED_SECURITY
|
|
szErrorCode = "ERROR_INTERNET_MIXED_SECURITY"
|
|
|
|
case ERROR_INTERNET_CHG_POST_IS_NON_SECURE
|
|
szErrorCode = "ERROR_INTERNET_CHG_POST_IS_NON_SECURE"
|
|
|
|
case ERROR_INTERNET_POST_IS_NON_SECURE
|
|
szErrorCode = "ERROR_INTERNET_POST_IS_NON_SECURE"
|
|
|
|
case ERROR_INTERNET_CLIENT_AUTH_CERT_NEEDED
|
|
szErrorCode = "ERROR_INTERNET_CLIENT_AUTH_CERT_NEEDED"
|
|
|
|
case ERROR_INTERNET_INVALID_CA
|
|
szErrorCode = "ERROR_INTERNET_INVALID_CA"
|
|
|
|
case ERROR_INTERNET_CLIENT_AUTH_NOT_SETUP
|
|
szErrorCode = "ERROR_INTERNET_CLIENT_AUTH_NOT_SETUP"
|
|
|
|
case ERROR_INTERNET_ASYNC_THREAD_FAILED
|
|
szErrorCode = "ERROR_INTERNET_ASYNC_THREAD_FAILED"
|
|
|
|
case ERROR_INTERNET_REDIRECT_SCHEME_CHANGE
|
|
szErrorCode = "ERROR_INTERNET_REDIRECT_SCHEME_CHANGE"
|
|
|
|
case ERROR_INTERNET_DIALOG_PENDING
|
|
szErrorCode = "ERROR_INTERNET_DIALOG_PENDING"
|
|
|
|
case ERROR_INTERNET_RETRY_DIALOG
|
|
szErrorCode = "ERROR_INTERNET_RETRY_DIALOG"
|
|
|
|
case ERROR_INTERNET_HTTPS_HTTP_SUBMIT_REDIR
|
|
szErrorCode = "ERROR_INTERNET_HTTPS_HTTP_SUBMIT_REDIR"
|
|
|
|
case ERROR_INTERNET_INSERT_CDROM
|
|
szErrorCode = "ERROR_INTERNET_INSERT_CDROM"
|
|
|
|
case ERROR_INTERNET_FORTEZZA_LOGIN_NEEDED
|
|
szErrorCode = "ERROR_INTERNET_FORTEZZA_LOGIN_NEEDED"
|
|
|
|
case ERROR_INTERNET_SEC_CERT_ERRORS
|
|
szErrorCode = "ERROR_INTERNET_SEC_CERT_ERRORS"
|
|
|
|
case ERROR_INTERNET_SEC_CERT_NO_REV
|
|
szErrorCode = "ERROR_INTERNET_SEC_CERT_NO_REV"
|
|
|
|
case ERROR_INTERNET_SEC_CERT_REV_FAILED
|
|
szErrorCode = "ERROR_INTERNET_SEC_CERT_REV_FAILED"
|
|
'
|
|
' HTTP API errors
|
|
'
|
|
case ERROR_HTTP_HEADER_NOT_FOUND
|
|
szErrorCode = "ERROR_HTTP_HEADER_NOT_FOUND"
|
|
|
|
case ERROR_HTTP_DOWNLEVEL_SERVER
|
|
szErrorCode = "ERROR_HTTP_DOWNLEVEL_SERVER"
|
|
|
|
case ERROR_HTTP_INVALID_SERVER_RESPONSE
|
|
szErrorCode = "ERROR_HTTP_INVALID_SERVER_RESPONSE"
|
|
|
|
case ERROR_HTTP_INVALID_HEADER
|
|
szErrorCode = "ERROR_HTTP_INVALID_HEADER"
|
|
|
|
case ERROR_HTTP_INVALID_QUERY_REQUEST
|
|
szErrorCode = "ERROR_HTTP_INVALID_QUERY_REQUEST"
|
|
|
|
case ERROR_HTTP_HEADER_ALREADY_EXISTS
|
|
szErrorCode = "ERROR_HTTP_HEADER_ALREADY_EXISTS"
|
|
|
|
case ERROR_HTTP_REDIRECT_FAILED
|
|
szErrorCode = "ERROR_HTTP_REDIRECT_FAILED"
|
|
|
|
case ERROR_HTTP_NOT_REDIRECTED
|
|
szErrorCode = "ERROR_HTTP_NOT_REDIRECTED"
|
|
|
|
case ERROR_HTTP_COOKIE_NEEDS_CONFIRMATION
|
|
szErrorCode = "ERROR_HTTP_COOKIE_NEEDS_CONFIRMATION"
|
|
|
|
case ERROR_HTTP_COOKIE_DECLINED
|
|
szErrorCode = "ERROR_HTTP_COOKIE_DECLINED"
|
|
|
|
case ERROR_HTTP_REDIRECT_NEEDS_CONFIRMATION
|
|
szErrorCode = "ERROR_HTTP_REDIRECT_NEEDS_CONFIRMATION"
|
|
'
|
|
' additional Internet API error codes
|
|
'
|
|
case ERROR_INTERNET_SECURITY_CHANNEL_ERROR
|
|
szErrorCode = "ERROR_INTERNET_SECURITY_CHANNEL_ERROR"
|
|
|
|
case ERROR_INTERNET_UNABLE_TO_CACHE_FILE
|
|
szErrorCode = "ERROR_INTERNET_UNABLE_TO_CACHE_FILE"
|
|
|
|
case ERROR_INTERNET_TCPIP_NOT_INSTALLED
|
|
szErrorCode = "ERROR_INTERNET_TCPIP_NOT_INSTALLED"
|
|
|
|
case ERROR_INTERNET_DISCONNECTED
|
|
szErrorCode = "ERROR_INTERNET_DISCONNECTED"
|
|
|
|
case ERROR_INTERNET_SERVER_UNREACHABLE
|
|
szErrorCode = "ERROR_INTERNET_SERVER_UNREACHABLE"
|
|
|
|
case ERROR_INTERNET_PROXY_SERVER_UNREACHABLE
|
|
szErrorCode = "ERROR_INTERNET_PROXY_SERVER_UNREACHABLE"
|
|
|
|
case ERROR_INTERNET_BAD_AUTO_PROXY_SCRIPT
|
|
szErrorCode = "ERROR_INTERNET_BAD_AUTO_PROXY_SCRIPT"
|
|
|
|
case ERROR_INTERNET_UNABLE_TO_DOWNLOAD_SCRIPT
|
|
szErrorCode = "ERROR_INTERNET_UNABLE_TO_DOWNLOAD_SCRIPT"
|
|
|
|
case ERROR_INTERNET_SEC_INVALID_CERT
|
|
szErrorCode = "ERROR_INTERNET_SEC_INVALID_CERT"
|
|
|
|
case ERROR_INTERNET_SEC_CERT_REVOKED
|
|
szErrorCode = "ERROR_INTERNET_SEC_CERT_REVOKED"
|
|
|
|
case else
|
|
szErrorCode = "Unknown(0x" & hex(lErrorCode) & ")"
|
|
|
|
End Select
|
|
|
|
ERR_GetJobErrorCodeString = szErrorCode
|
|
|
|
End Function
|