IAPI::FtpGetFilenameList

property FtpGetFilenameList.

Enumerates a list of filenames from within FTP server.

 

HRESULT FtpGetFilenameList(
  longftpConnectionHandle,
  BSTRstrPattern,
  long*pVal
);

Parameters

ftpConnectionHandle

[in] . Handle of FTP connection

 

strPattern

[in,defaultvalue("*.*")] . String pattern

 

pVal

[out, retval]

. The returned value is 0 if no file is found or

  The value is negative if failure occurred.

 

. The returned value is a handle of string table which contains

  filenames to be fetched with GetStringTableItemAt() and

  must be freed with FreeStringTable() after use.

 

Return Values

S_OK

The operation was successfull.

E_UNEXPECTED

An unexpected error occoured.

E_FAIL

A general error occoured.

See Also

IAPI