IAPI::FtpDownloadFile

property FtpDownloadFile.

Downloads a file from a FTP server.

 

HRESULT FtpDownloadFile(
  long ftpConnectionHandle,
  BSTR ftpFilename,
  BSTR localFilename,
  long *pVal
);

Parameters

ftpConnectionHandle

[in] .   Handle of FTP connection

ftpFilename

[in] .   Full qualified filename to download ( e.g "/Softlib/README.TXT" )

localFilename

[in] .   Fullpath filename where to write the file.

         If this param is a empty string (""),

         then this property returns file size in a long ( limited at 4 GB )

pVal

[out, retval] The returned value is 1 ( success ) or 0 ( failure )

Return Values

S_OK

The operation was successfull.

E_POINTER

A NULL pointer was supplied as an argument.

E_UNEXPECTED

An unexpected error occoured.

See Also

IAPI