home *** CD-ROM | disk | FTP | other *** search
- #ifndef __FTPERROR_H__
- #define __FTPERROR_H__
-
- /*
- * Xceed FTP Library: Error Codes
- * Copyright 2000, Xceed Software Inc.
- *
- * Description:
- * This file contains the error code definitions
- * for Xceed FTP Library COM interfaces
- *
- * Notes:
- * - This file is generated by MC.EXE from file ftpError.mc
- *
- */
-
-
- //
- // Values are 32 bit values layed out as follows:
- //
- // 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
- // 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
- // +-+-+-+-+-+---------------------+-------------------------------+
- // |S|R|C|N|r| Facility | Code |
- // +-+-+-+-+-+---------------------+-------------------------------+
- //
- // where
- //
- // S - Severity - indicates success/fail
- //
- // 0 - Success
- // 1 - Fail (COERROR)
- //
- // R - reserved portion of the facility code, corresponds to NT's
- // second severity bit.
- //
- // C - reserved portion of the facility code, corresponds to NT's
- // C field.
- //
- // N - reserved portion of the facility code. Used to indicate a
- // mapped NT status value.
- //
- // r - reserved portion of the facility code. Reserved for internal
- // use. Used to indicate HRESULT values that are not status
- // values, but are instead message ids for display strings.
- //
- // Facility - is the facility code
- //
- // Code - is the facility's status code
- //
- //
- // Define the facility codes
- //
- #define FACILITY_ITF 4
-
-
- //
- // Define the severity codes
- //
- #define SEVERITY_SUCCESS 0
- #define SEVERITY_COERROR 2
-
-
- //
- // MessageId: FTP_S_SUCCESS_BASE
- //
- // MessageText:
- //
- // Base success code for Xceed FTP Library
- //
- #define FTP_S_SUCCESS_BASE ((HRESULT)0x00042000L)
-
- //
- // MessageId: FTP_S_PROCESSSTARTED
- //
- // MessageText:
- //
- // The background process has been started successfully.
- //
- #define FTP_S_PROCESSSTARTED ((HRESULT)0x00042001L)
-
- //
- // MessageId: FTP_S_FILESSKIPPED
- //
- // MessageText:
- //
- // Some of the files were skipped during the operation because of errors.
- //
- #define FTP_S_FILESSKIPPED ((HRESULT)0x00042002L)
-
- //
- // MessageId: FTP_E_ERROR_BASE
- //
- // MessageText:
- //
- // Base error code for Xceed FTP Library
- //
- #define FTP_E_ERROR_BASE ((HRESULT)0x80042000L)
-
- //
- // MessageId: FTP_E_NOTCONNECTED
- //
- // MessageText:
- //
- // The object is not connected to a FTP server.
- //
- #define FTP_E_NOTCONNECTED ((HRESULT)0x80042001L)
-
- //
- // MessageId: FTP_E_ALREADYCONNECTED
- //
- // MessageText:
- //
- // The object is already connected to a FTP server.
- //
- #define FTP_E_ALREADYCONNECTED ((HRESULT)0x80042002L)
-
- //
- // MessageId: FTP_E_BUSY
- //
- // MessageText:
- //
- // The object is already performing a method call.
- //
- #define FTP_E_BUSY ((HRESULT)0x80042003L)
-
- //
- // MessageId: FTP_E_SENDCOMMAND
- //
- // MessageText:
- //
- // An error occured while sending a command to the FTP server.
- //
- #define FTP_E_SENDCOMMAND ((HRESULT)0x80042004L)
-
- //
- // MessageId: FTP_E_READREPLYLINE
- //
- // MessageText:
- //
- // An error occured while receiving a reply line from the FTP server.
- //
- #define FTP_E_READREPLYLINE ((HRESULT)0x80042005L)
-
- //
- // MessageId: FTP_E_INVALIDREPLY
- //
- // MessageText:
- //
- // The FTP server returned an invalid reply line.
- //
- #define FTP_E_INVALIDREPLY ((HRESULT)0x80042006L)
-
- //
- // MessageId: FTP_E_UNEXPECTEDREPLY
- //
- // MessageText:
- //
- // The FTP server returned an unexpected reply to a FTP command.
- //
- #define FTP_E_UNEXPECTEDREPLY ((HRESULT)0x80042007L)
-
- //
- // MessageId: FTP_E_SERVERSHUTTINGDOWN
- //
- // MessageText:
- //
- // The FTP server is shutting down.
- //
- #define FTP_E_SERVERSHUTTINGDOWN ((HRESULT)0x80042008L)
-
- //
- // MessageId: FTP_E_CREATETCPENDPOINT
- //
- // MessageText:
- //
- // A TCP endpoint could not be created.
- //
- #define FTP_E_CREATETCPENDPOINT ((HRESULT)0x80042009L)
-
- //
- // MessageId: FTP_E_OPENDATACONNECTION
- //
- // MessageText:
- //
- // The data connection could not be established.
- //
- #define FTP_E_OPENDATACONNECTION ((HRESULT)0x8004200AL)
-
- //
- // MessageId: FTP_E_TRANSFERDATA
- //
- // MessageText:
- //
- // Data could not be transferred on the data connection.
- //
- #define FTP_E_TRANSFERDATA ((HRESULT)0x8004200BL)
-
- //
- // MessageId: FTP_E_REMOTEABORT
- //
- // MessageText:
- //
- // The data transfer has been aborted by the FTP server.
- //
- #define FTP_E_REMOTEABORT ((HRESULT)0x8004200CL)
-
- //
- // MessageId: FTP_E_REMOTEFILENOTAVAILABLE
- //
- // MessageText:
- //
- // The remote file is currently unavailable.
- //
- #define FTP_E_REMOTEFILENOTAVAILABLE ((HRESULT)0x8004200DL)
-
- //
- // MessageId: FTP_E_SERVEROUTOFSTORAGE
- //
- // MessageText:
- //
- // There is not enough free space on the remote system to store the file.
- //
- #define FTP_E_SERVEROUTOFSTORAGE ((HRESULT)0x8004200EL)
-
- //
- // MessageId: FTP_E_UNEXPECTEDCOMMANDERROR
- //
- // MessageText:
- //
- // The FTP server did not accept a FTP command for an unexpected reason.
- //
- #define FTP_E_UNEXPECTEDCOMMANDERROR ((HRESULT)0x8004200FL)
-
- //
- // MessageId: FTP_E_COMMANDNOTIMPLEMENTED
- //
- // MessageText:
- //
- // The FTP server does not implement one or more FTP commands required for this operation.
- //
- #define FTP_E_COMMANDNOTIMPLEMENTED ((HRESULT)0x80042010L)
-
- //
- // MessageId: FTP_E_ACCOUNTREQUIRED
- //
- // MessageText:
- //
- // An account is required for this operation.
- //
- #define FTP_E_ACCOUNTREQUIRED ((HRESULT)0x80042011L)
-
- //
- // MessageId: FTP_E_INVALIDFILENAME
- //
- // MessageText:
- //
- // The file name is not allowed on the FTP server.
- //
- #define FTP_E_INVALIDFILENAME ((HRESULT)0x80042012L)
-
- //
- // MessageId: FTP_E_OPENREMOTEFILE
- //
- // MessageText:
- //
- // The remote file could not be opened by the FTP server.
- //
- #define FTP_E_OPENREMOTEFILE ((HRESULT)0x80042013L)
-
- //
- // MessageId: FTP_E_INVALIDADDRESS
- //
- // MessageText:
- //
- // The address was not recognized as a valid IP address or hostname.
- //
- #define FTP_E_INVALIDADDRESS ((HRESULT)0x80042014L)
-
- //
- // MessageId: FTP_E_CONNECTIONFAILED
- //
- // MessageText:
- //
- // No FTP server found on the specified address.
- //
- #define FTP_E_CONNECTIONFAILED ((HRESULT)0x80042015L)
-
- //
- // MessageId: FTP_E_USERNAMEREJECTED
- //
- // MessageText:
- //
- // The specified username was rejected by the FTP server.
- //
- #define FTP_E_USERNAMEREJECTED ((HRESULT)0x80042016L)
-
- //
- // MessageId: FTP_E_PASSWORDREJECTED
- //
- // MessageText:
- //
- // The specified password was rejected by the FTP server.
- //
- #define FTP_E_PASSWORDREJECTED ((HRESULT)0x80042017L)
-
- //
- // MessageId: FTP_E_DISCONNECTED
- //
- // MessageText:
- //
- // The connection to the FTP server was broken prematurely.
- //
- #define FTP_E_DISCONNECTED ((HRESULT)0x80042018L)
-
- //
- // MessageId: FTP_E_RECEIVEFILE
- //
- // MessageText:
- //
- // The remote file could not be received from the FTP server.
- //
- #define FTP_E_RECEIVEFILE ((HRESULT)0x80042019L)
-
- //
- // MessageId: FTP_E_FILESKIPPED
- //
- // MessageText:
- //
- // The file was manually excluded from the list of matching files.
- //
- #define FTP_E_FILESKIPPED ((HRESULT)0x8004201AL)
-
- //
- // MessageId: FTP_E_OPENFILE
- //
- // MessageText:
- //
- // The local file could not be open.
- //
- #define FTP_E_OPENFILE ((HRESULT)0x8004201BL)
-
- //
- // MessageId: FTP_E_SENDFILE
- //
- // MessageText:
- //
- // The local file could not be sent to the FTP server.
- //
- #define FTP_E_SENDFILE ((HRESULT)0x8004201CL)
-
- //
- // MessageId: FTP_E_INVALIDSTATE
- //
- // MessageText:
- //
- // The current state prevents the method call from being performed.
- //
- #define FTP_E_INVALIDSTATE ((HRESULT)0x8004201DL)
-
- //
- // MessageId: FTP_E_OPERATIONABORTED
- //
- // MessageText:
- //
- // The operation has been aborted.
- //
- #define FTP_E_OPERATIONABORTED ((HRESULT)0x8004201EL)
-
- //
- // MessageId: FTP_E_ACCOUNTREJECTED
- //
- // MessageText:
- //
- // The specified account was rejected by the FTP server.
- //
- #define FTP_E_ACCOUNTREJECTED ((HRESULT)0x8004201FL)
-
- //
- // MessageId: FTP_E_INVALIDLOCALADDRESS
- //
- // MessageText:
- //
- // The local address was not recognized as a valid IP address or hostname.
- //
- #define FTP_E_INVALIDLOCALADDRESS ((HRESULT)0x80042020L)
-
- //
- // MessageId: FTP_E_INVALIDFIREWALLADDRESS
- //
- // MessageText:
- //
- // The firewall address was not recognized as a valid IP address or hostname.
- //
- #define FTP_E_INVALIDFIREWALLADDRESS ((HRESULT)0x80042021L)
-
- //
- // MessageId: FTP_E_SENDFIREWALLCOMMAND
- //
- // MessageText:
- //
- // The firewall command could not be sent to the firewall server.
- //
- #define FTP_E_SENDFIREWALLCOMMAND ((HRESULT)0x80042022L)
-
- //
- // MessageId: FTP_E_RECEIVEFIREWALLREPLY
- //
- // MessageText:
- //
- // The firewall reply could not be received from the firewall server.
- //
- #define FTP_E_RECEIVEFIREWALLREPLY ((HRESULT)0x80042023L)
-
- //
- // MessageId: FTP_E_FIREWALL_CONNECTIONREJECTED
- //
- // MessageText:
- //
- // The firewall rejected the request for a remote connection.
- //
- #define FTP_E_FIREWALL_CONNECTIONREJECTED ((HRESULT)0x80042024L)
-
- //
- // MessageId: FTP_E_OPENFIREWALLCONNECTION
- //
- // MessageText:
- //
- // The connection could not be established with the firewall server.
- //
- #define FTP_E_OPENFIREWALLCONNECTION ((HRESULT)0x80042025L)
-
- //
- // MessageId: FTP_E_FIREWALL_INVALIDUSERNAME
- //
- // MessageText:
- //
- // The firewall rejected the specified username or password.
- //
- #define FTP_E_FIREWALL_INVALIDUSERNAME ((HRESULT)0x80042026L)
-
- //
- // MessageId: FTP_E_UNEXPECTEDFIREWALLREPLY
- //
- // MessageText:
- //
- // The firewall returned an unexpected reply to a firewall command.
- //
- #define FTP_E_UNEXPECTEDFIREWALLREPLY ((HRESULT)0x80042027L)
-
- //
- // MessageId: FTP_E_NOTLICENSED
- //
- // MessageText:
- //
- // The license key required to use Xceed FTP Library was not found or is invalid.
- //
- #define FTP_E_NOTLICENSED ((HRESULT)0x80042028L)
-
- //
- // MessageId: FTP_E_FIREWALL_GENERALFAILURE
- //
- // MessageText:
- //
- // The firewall encountered an internal error that prevented the command from succeeding.
- //
- #define FTP_E_FIREWALL_GENERALFAILURE ((HRESULT)0x80042029L)
-
- //
- // MessageId: FTP_E_FIREWALL_UNSUPPORTEDFEATURE
- //
- // MessageText:
- //
- // The firewall does not support a feature required by the library.
- //
- #define FTP_E_FIREWALL_UNSUPPORTEDFEATURE ((HRESULT)0x8004202AL)
-
- //
- // MessageId: FTP_E_UNSUPPORTEDFIREWALLREPLY
- //
- // MessageText:
- //
- // The firewall replied with an unsupported feature.
- //
- #define FTP_E_UNSUPPORTEDFIREWALLREPLY ((HRESULT)0x8004202BL)
-
- //
- // MessageId: FTP_E_FIREWALL_OPENCONNECTION
- //
- // MessageText:
- //
- // The firewall could not connect to the remote FTP server.
- //
- #define FTP_E_FIREWALL_OPENCONNECTION ((HRESULT)0x8004202CL)
-
-
-
- #endif // __FTPERROR_H__
-