Using Win32 functions in Visual FoxPro Image Gallery
Internet Functions (WinInet)
..msdn
CreateMD5SSOHash
DeleteUrlCacheEntry
DetectAutoProxyUrl
FindCloseUrlCache
FindFirstUrlCacheEntry
FindFirstUrlCacheGroup
FindNextUrlCacheEntry
FindNextUrlCacheGroup
FtpCommand
FtpCreateDirectory
FtpDeleteFile
FtpFindFirstFile
FtpGetCurrentDirectory
FtpGetFile
FtpGetFileSize
FtpOpenFile
FtpPutFile
FtpRemoveDirectory
FtpRenameFile
FtpSetCurrentDirectory
GetUrlCacheEntryInfo
HttpOpenRequest
HttpQueryInfo
HttpSendRequest
InternetAttemptConnect
InternetAutodial
InternetAutodialHangup
InternetCanonicalizeUrl
InternetCheckConnection
InternetCloseHandle
InternetConnect
InternetCrackUrl
InternetDial
InternetFindNextFile
InternetGetConnectedState
InternetGetConnectedStateEx
InternetGetCookie
InternetGetLastResponseInfo
InternetGoOnline
InternetOpen
InternetOpenUrl
InternetQueryDataAvailable
InternetQueryOption
InternetReadFile
InternetSetCookie
InternetSetFilePointer
InternetTimeFromSystemTime
InternetTimeToSystemTime
InternetWriteFile
Code examples:
Custom FTP Class for Visual FoxPro application
Downloading files from the FTP server using InternetReadFile
Reading list of folders and files on FTP server
Retrieving list of files on the FTP directory
FtpFindFirstFile
    Add comment     W32 Constants      Translate this page
Searches the specified directory of the given FTP session
Code examples:
Custom FTP Class for Visual FoxPro application
Retrieving list of files on the FTP directory
Downloading files from the FTP server using InternetReadFile
Reading list of folders and files on FTP server
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:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-07-17 12:00:00
Modified: 2001-11-26 16:02:27
Visited in last 7 days: 49
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.196.8.177)
12 sec.Function: 'DrawText'
25 sec.Function: 'GetLocalTime'
36 sec.Function: 'EndDoc'
46 sec.Function: 'CreateEllipticRgn'
58 sec.Function: 'GdipSetMatrixElements'
1.17 min.Function: 'GetMenuItemID'
1.4 min.Function: 'AVIFileExit'
1.6 min.
Function group: 'Device Context'
1.82 min.Function: 'GetClipboardFormatName'
2 min.
Function group: 'Extensible Storage Engine (ESE, Jet Blue)'
Google
Advertise here!