 |
FtpFindFirstFile Add comment W32 Constants Translate this page |
 |
 |
|
Searches the specified directory of the given FTP session |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
HINTERNET FtpFindFirstFile(
HINTERNET hConnect,
LPCTSTR lpszSearchFile,
LP lpFindFileData,
DWORD dwFlags,
DWORD_PTR dwContext
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER FtpFindFirstFile IN wininet;
INTEGER hFtpSession,;
STRING lpszSearchFile,;
STRING @ lpFindFileData,;
INTEGER dwFlags,;
INTEGER dwContent
|
 |
 |
 |
| Parameters: |
 |
hConnect
[in] Valid handle to an FTP session returned from InternetConnect
lpszSearchFile
[in] Pointer to a null-terminated string that specifies a valid directory path or file name for the FTP server"s file system
lpFindFileData
[out] Pointer to a WIN32_FIND_DATA structure that receives information about the found file or directory
dwFlags
[in] Value of type DWORD that specifies the flags that control the behavior of this function
dwContext
[in] Pointer to a variable of type DWORD that specifies the application-defined value... |
 |
 |
| Return value: |
 |
| Returns a valid handle for the request if the directory enumeration was started successfully, or returns NULL otherwise |
 |
 |
| My comment: |
 |
The old and familiar approach -- to get a handle from the FindFirst call and use it with successive FindNext calls. The trick -- though simple enough - is how to retrieve fields from a structure containing in the resulting buffer.
|
 |
 |
| Word Index links for the FtpFindFirstFile : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2001-07-17 12:00:00 | | Modified: | 2001-11-26 16:02:27 | Visited in last 7 days: 57 |