IAPI::FtpFileSize

property FtpFileSize.

Get file size from a FTP server.

 

HRESULT FtpFileSize(
  long ftpConnectionHandle,
  BSTR ftpFilename,
  BSTR *pVal);

Parameters

ftpConnectionHandle

[in] .   Handle of FTP connection

ftpFilename

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

pVal

[out, retval]

The returned value is a string containing the file size which can be over 4 Gbytes.

This string must be freeded by IAPI::FreeBSTR( ) after use.

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