home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 53 / IOPROG_53.ISO / soft / c++ / xceedftp.exe / Include / ftpError.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-10-05  |  11.1 KB  |  499 lines

  1. #ifndef __FTPERROR_H__
  2. #define __FTPERROR_H__
  3.  
  4. /*
  5.  * Xceed FTP Library: Error Codes
  6.  * Copyright 2000, Xceed Software Inc.
  7.  *
  8.  * Description:
  9.  *    This file contains the error code definitions 
  10.  *    for Xceed FTP Library COM interfaces
  11.  *
  12.  * Notes:
  13.  *    - This file is generated by MC.EXE from file ftpError.mc
  14.  *
  15.  */
  16.  
  17.  
  18. //
  19. //  Values are 32 bit values layed out as follows:
  20. //
  21. //   3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
  22. //   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
  23. //  +-+-+-+-+-+---------------------+-------------------------------+
  24. //  |S|R|C|N|r|    Facility         |               Code            |
  25. //  +-+-+-+-+-+---------------------+-------------------------------+
  26. //
  27. //  where
  28. //
  29. //      S - Severity - indicates success/fail
  30. //
  31. //          0 - Success
  32. //          1 - Fail (COERROR)
  33. //
  34. //      R - reserved portion of the facility code, corresponds to NT's
  35. //              second severity bit.
  36. //
  37. //      C - reserved portion of the facility code, corresponds to NT's
  38. //              C field.
  39. //
  40. //      N - reserved portion of the facility code. Used to indicate a
  41. //              mapped NT status value.
  42. //
  43. //      r - reserved portion of the facility code. Reserved for internal
  44. //              use. Used to indicate HRESULT values that are not status
  45. //              values, but are instead message ids for display strings.
  46. //
  47. //      Facility - is the facility code
  48. //
  49. //      Code - is the facility's status code
  50. //
  51. //
  52. // Define the facility codes
  53. //
  54. #define FACILITY_ITF                     4
  55.  
  56.  
  57. //
  58. // Define the severity codes
  59. //
  60. #define SEVERITY_SUCCESS                 0
  61. #define SEVERITY_COERROR                 2
  62.  
  63.  
  64. //
  65. // MessageId: FTP_S_SUCCESS_BASE
  66. //
  67. // MessageText:
  68. //
  69. //  Base success code for Xceed FTP Library
  70. //
  71. #define FTP_S_SUCCESS_BASE               ((HRESULT)0x00042000L)
  72.  
  73. //
  74. // MessageId: FTP_S_PROCESSSTARTED
  75. //
  76. // MessageText:
  77. //
  78. //  The background process has been started successfully.
  79. //
  80. #define FTP_S_PROCESSSTARTED             ((HRESULT)0x00042001L)
  81.  
  82. //
  83. // MessageId: FTP_S_FILESSKIPPED
  84. //
  85. // MessageText:
  86. //
  87. //  Some of the files were skipped during the operation because of errors.
  88. //
  89. #define FTP_S_FILESSKIPPED               ((HRESULT)0x00042002L)
  90.  
  91. //
  92. // MessageId: FTP_E_ERROR_BASE
  93. //
  94. // MessageText:
  95. //
  96. //  Base error code for Xceed FTP Library
  97. //
  98. #define FTP_E_ERROR_BASE                 ((HRESULT)0x80042000L)
  99.  
  100. //
  101. // MessageId: FTP_E_NOTCONNECTED
  102. //
  103. // MessageText:
  104. //
  105. //  The object is not connected to a FTP server.
  106. //
  107. #define FTP_E_NOTCONNECTED               ((HRESULT)0x80042001L)
  108.  
  109. //
  110. // MessageId: FTP_E_ALREADYCONNECTED
  111. //
  112. // MessageText:
  113. //
  114. //  The object is already connected to a FTP server.
  115. //
  116. #define FTP_E_ALREADYCONNECTED           ((HRESULT)0x80042002L)
  117.  
  118. //
  119. // MessageId: FTP_E_BUSY
  120. //
  121. // MessageText:
  122. //
  123. //  The object is already performing a method call.
  124. //
  125. #define FTP_E_BUSY                       ((HRESULT)0x80042003L)
  126.  
  127. //
  128. // MessageId: FTP_E_SENDCOMMAND
  129. //
  130. // MessageText:
  131. //
  132. //  An error occured while sending a command to the FTP server.
  133. //
  134. #define FTP_E_SENDCOMMAND                ((HRESULT)0x80042004L)
  135.  
  136. //
  137. // MessageId: FTP_E_READREPLYLINE
  138. //
  139. // MessageText:
  140. //
  141. //  An error occured while receiving a reply line from the FTP server.
  142. //
  143. #define FTP_E_READREPLYLINE              ((HRESULT)0x80042005L)
  144.  
  145. //
  146. // MessageId: FTP_E_INVALIDREPLY
  147. //
  148. // MessageText:
  149. //
  150. //  The FTP server returned an invalid reply line.
  151. //
  152. #define FTP_E_INVALIDREPLY               ((HRESULT)0x80042006L)
  153.  
  154. //
  155. // MessageId: FTP_E_UNEXPECTEDREPLY
  156. //
  157. // MessageText:
  158. //
  159. //  The FTP server returned an unexpected reply to a FTP command.
  160. //
  161. #define FTP_E_UNEXPECTEDREPLY            ((HRESULT)0x80042007L)
  162.  
  163. //
  164. // MessageId: FTP_E_SERVERSHUTTINGDOWN
  165. //
  166. // MessageText:
  167. //
  168. //  The FTP server is shutting down.
  169. //
  170. #define FTP_E_SERVERSHUTTINGDOWN         ((HRESULT)0x80042008L)
  171.  
  172. //
  173. // MessageId: FTP_E_CREATETCPENDPOINT
  174. //
  175. // MessageText:
  176. //
  177. //  A TCP endpoint could not be created.
  178. //
  179. #define FTP_E_CREATETCPENDPOINT          ((HRESULT)0x80042009L)
  180.  
  181. //
  182. // MessageId: FTP_E_OPENDATACONNECTION
  183. //
  184. // MessageText:
  185. //
  186. //  The data connection could not be established.
  187. //
  188. #define FTP_E_OPENDATACONNECTION         ((HRESULT)0x8004200AL)
  189.  
  190. //
  191. // MessageId: FTP_E_TRANSFERDATA
  192. //
  193. // MessageText:
  194. //
  195. //  Data could not be transferred on the data connection.
  196. //
  197. #define FTP_E_TRANSFERDATA               ((HRESULT)0x8004200BL)
  198.  
  199. //
  200. // MessageId: FTP_E_REMOTEABORT
  201. //
  202. // MessageText:
  203. //
  204. //  The data transfer has been aborted by the FTP server.
  205. //
  206. #define FTP_E_REMOTEABORT                ((HRESULT)0x8004200CL)
  207.  
  208. //
  209. // MessageId: FTP_E_REMOTEFILENOTAVAILABLE
  210. //
  211. // MessageText:
  212. //
  213. //  The remote file is currently unavailable.
  214. //
  215. #define FTP_E_REMOTEFILENOTAVAILABLE     ((HRESULT)0x8004200DL)
  216.  
  217. //
  218. // MessageId: FTP_E_SERVEROUTOFSTORAGE
  219. //
  220. // MessageText:
  221. //
  222. //  There is not enough free space on the remote system to store the file.
  223. //
  224. #define FTP_E_SERVEROUTOFSTORAGE         ((HRESULT)0x8004200EL)
  225.  
  226. //
  227. // MessageId: FTP_E_UNEXPECTEDCOMMANDERROR
  228. //
  229. // MessageText:
  230. //
  231. //  The FTP server did not accept a FTP command for an unexpected reason.
  232. //
  233. #define FTP_E_UNEXPECTEDCOMMANDERROR     ((HRESULT)0x8004200FL)
  234.  
  235. //
  236. // MessageId: FTP_E_COMMANDNOTIMPLEMENTED
  237. //
  238. // MessageText:
  239. //
  240. //  The FTP server does not implement one or more FTP commands required for this operation.
  241. //
  242. #define FTP_E_COMMANDNOTIMPLEMENTED      ((HRESULT)0x80042010L)
  243.  
  244. //
  245. // MessageId: FTP_E_ACCOUNTREQUIRED
  246. //
  247. // MessageText:
  248. //
  249. //  An account is required for this operation.
  250. //
  251. #define FTP_E_ACCOUNTREQUIRED            ((HRESULT)0x80042011L)
  252.  
  253. //
  254. // MessageId: FTP_E_INVALIDFILENAME
  255. //
  256. // MessageText:
  257. //
  258. //  The file name is not allowed on the FTP server.
  259. //
  260. #define FTP_E_INVALIDFILENAME            ((HRESULT)0x80042012L)
  261.  
  262. //
  263. // MessageId: FTP_E_OPENREMOTEFILE
  264. //
  265. // MessageText:
  266. //
  267. //  The remote file could not be opened by the FTP server.
  268. //
  269. #define FTP_E_OPENREMOTEFILE             ((HRESULT)0x80042013L)
  270.  
  271. //
  272. // MessageId: FTP_E_INVALIDADDRESS
  273. //
  274. // MessageText:
  275. //
  276. //  The address was not recognized as a valid IP address or hostname.
  277. //
  278. #define FTP_E_INVALIDADDRESS             ((HRESULT)0x80042014L)
  279.  
  280. //
  281. // MessageId: FTP_E_CONNECTIONFAILED
  282. //
  283. // MessageText:
  284. //
  285. //  No FTP server found on the specified address.
  286. //
  287. #define FTP_E_CONNECTIONFAILED           ((HRESULT)0x80042015L)
  288.  
  289. //
  290. // MessageId: FTP_E_USERNAMEREJECTED
  291. //
  292. // MessageText:
  293. //
  294. //  The specified username was rejected by the FTP server.
  295. //
  296. #define FTP_E_USERNAMEREJECTED           ((HRESULT)0x80042016L)
  297.  
  298. //
  299. // MessageId: FTP_E_PASSWORDREJECTED
  300. //
  301. // MessageText:
  302. //
  303. //  The specified password was rejected by the FTP server.
  304. //
  305. #define FTP_E_PASSWORDREJECTED           ((HRESULT)0x80042017L)
  306.  
  307. //
  308. // MessageId: FTP_E_DISCONNECTED
  309. //
  310. // MessageText:
  311. //
  312. //  The connection to the FTP server was broken prematurely.
  313. //
  314. #define FTP_E_DISCONNECTED               ((HRESULT)0x80042018L)
  315.  
  316. //
  317. // MessageId: FTP_E_RECEIVEFILE
  318. //
  319. // MessageText:
  320. //
  321. //  The remote file could not be received from the FTP server.
  322. //
  323. #define FTP_E_RECEIVEFILE                ((HRESULT)0x80042019L)
  324.  
  325. //
  326. // MessageId: FTP_E_FILESKIPPED
  327. //
  328. // MessageText:
  329. //
  330. //  The file was manually excluded from the list of matching files.
  331. //
  332. #define FTP_E_FILESKIPPED                ((HRESULT)0x8004201AL)
  333.  
  334. //
  335. // MessageId: FTP_E_OPENFILE
  336. //
  337. // MessageText:
  338. //
  339. //  The local file could not be open.
  340. //
  341. #define FTP_E_OPENFILE                   ((HRESULT)0x8004201BL)
  342.  
  343. //
  344. // MessageId: FTP_E_SENDFILE
  345. //
  346. // MessageText:
  347. //
  348. //  The local file could not be sent to the FTP server.
  349. //
  350. #define FTP_E_SENDFILE                   ((HRESULT)0x8004201CL)
  351.  
  352. //
  353. // MessageId: FTP_E_INVALIDSTATE
  354. //
  355. // MessageText:
  356. //
  357. //  The current state prevents the method call from being performed.
  358. //
  359. #define FTP_E_INVALIDSTATE               ((HRESULT)0x8004201DL)
  360.  
  361. //
  362. // MessageId: FTP_E_OPERATIONABORTED
  363. //
  364. // MessageText:
  365. //
  366. //  The operation has been aborted.
  367. //
  368. #define FTP_E_OPERATIONABORTED           ((HRESULT)0x8004201EL)
  369.  
  370. //
  371. // MessageId: FTP_E_ACCOUNTREJECTED
  372. //
  373. // MessageText:
  374. //
  375. //  The specified account was rejected by the FTP server.
  376. //
  377. #define FTP_E_ACCOUNTREJECTED            ((HRESULT)0x8004201FL)
  378.  
  379. //
  380. // MessageId: FTP_E_INVALIDLOCALADDRESS
  381. //
  382. // MessageText:
  383. //
  384. //  The local address was not recognized as a valid IP address or hostname.
  385. //
  386. #define FTP_E_INVALIDLOCALADDRESS        ((HRESULT)0x80042020L)
  387.  
  388. //
  389. // MessageId: FTP_E_INVALIDFIREWALLADDRESS
  390. //
  391. // MessageText:
  392. //
  393. //  The firewall address was not recognized as a valid IP address or hostname.
  394. //
  395. #define FTP_E_INVALIDFIREWALLADDRESS     ((HRESULT)0x80042021L)
  396.  
  397. //
  398. // MessageId: FTP_E_SENDFIREWALLCOMMAND
  399. //
  400. // MessageText:
  401. //
  402. //  The firewall command could not be sent to the firewall server.
  403. //
  404. #define FTP_E_SENDFIREWALLCOMMAND        ((HRESULT)0x80042022L)
  405.  
  406. //
  407. // MessageId: FTP_E_RECEIVEFIREWALLREPLY
  408. //
  409. // MessageText:
  410. //
  411. //  The firewall reply could not be received from the firewall server.
  412. //
  413. #define FTP_E_RECEIVEFIREWALLREPLY       ((HRESULT)0x80042023L)
  414.  
  415. //
  416. // MessageId: FTP_E_FIREWALL_CONNECTIONREJECTED
  417. //
  418. // MessageText:
  419. //
  420. //  The firewall rejected the request for a remote connection.
  421. //
  422. #define FTP_E_FIREWALL_CONNECTIONREJECTED ((HRESULT)0x80042024L)
  423.  
  424. //
  425. // MessageId: FTP_E_OPENFIREWALLCONNECTION
  426. //
  427. // MessageText:
  428. //
  429. //  The connection could not be established with the firewall server.
  430. //
  431. #define FTP_E_OPENFIREWALLCONNECTION     ((HRESULT)0x80042025L)
  432.  
  433. //
  434. // MessageId: FTP_E_FIREWALL_INVALIDUSERNAME
  435. //
  436. // MessageText:
  437. //
  438. //  The firewall rejected the specified username or password.
  439. //
  440. #define FTP_E_FIREWALL_INVALIDUSERNAME   ((HRESULT)0x80042026L)
  441.  
  442. //
  443. // MessageId: FTP_E_UNEXPECTEDFIREWALLREPLY
  444. //
  445. // MessageText:
  446. //
  447. //  The firewall returned an unexpected reply to a firewall command.
  448. //
  449. #define FTP_E_UNEXPECTEDFIREWALLREPLY    ((HRESULT)0x80042027L)
  450.  
  451. //
  452. // MessageId: FTP_E_NOTLICENSED
  453. //
  454. // MessageText:
  455. //
  456. //  The license key required to use Xceed FTP Library was not found or is invalid.
  457. //
  458. #define FTP_E_NOTLICENSED                ((HRESULT)0x80042028L)
  459.  
  460. //
  461. // MessageId: FTP_E_FIREWALL_GENERALFAILURE
  462. //
  463. // MessageText:
  464. //
  465. //  The firewall encountered an internal error that prevented the command from succeeding.
  466. //
  467. #define FTP_E_FIREWALL_GENERALFAILURE    ((HRESULT)0x80042029L)
  468.  
  469. //
  470. // MessageId: FTP_E_FIREWALL_UNSUPPORTEDFEATURE
  471. //
  472. // MessageText:
  473. //
  474. //  The firewall does not support a feature required by the library.
  475. //
  476. #define FTP_E_FIREWALL_UNSUPPORTEDFEATURE ((HRESULT)0x8004202AL)
  477.  
  478. //
  479. // MessageId: FTP_E_UNSUPPORTEDFIREWALLREPLY
  480. //
  481. // MessageText:
  482. //
  483. //  The firewall replied with an unsupported feature.
  484. //
  485. #define FTP_E_UNSUPPORTEDFIREWALLREPLY   ((HRESULT)0x8004202BL)
  486.  
  487. //
  488. // MessageId: FTP_E_FIREWALL_OPENCONNECTION
  489. //
  490. // MessageText:
  491. //
  492. //  The firewall could not connect to the remote FTP server.
  493. //
  494. #define FTP_E_FIREWALL_OPENCONNECTION    ((HRESULT)0x8004202CL)
  495.  
  496.  
  497.  
  498. #endif // __FTPERROR_H__
  499.