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
FtpGetCurrentDirectory
    Add comment     W32 Constants      Translate this page
Retrieves the current directory for the specified FTP session
Code examples:
Custom FTP Class for Visual FoxPro application
Reading list of folders and files on FTP server
Downloading files from the FTP server using InternetReadFile
Retrieving list of files on the FTP directory
Declaration:
BOOL FtpGetCurrentDirectory(
    HINTERNET hConnect,
    LPTSTR lpszCurrentDirectory,
    LPDWORD lpdwCurrentDirectory
);

FoxPro declaration:
DECLARE INTEGER FtpGetCurrentDirectory IN wininet;
    INTEGER   hFtpSession,;
    STRING  @ lpszDirectory,;
    INTEGER @ lpdwCurrentDirectory
Parameters:
hConnect
[in] Valid handle to an FTP session.

lpszCurrentDirectory
[out] Pointer to a buffer that receives the current directory string

lpdwCurrentDirectory
[in, out] Pointer to a variable that specifies the length, in characters, of the buffer for the current directory string
Return value:
Returns TRUE if successful, or FALSE otherwise
My comment:
Before calling this function you must secure enough bytes in a string to return a directory name. The second parameter is also passed by a reference, the function stores the resulting string"s length in it.
Word Index links for the FtpGetCurrentDirectory :
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:26
Visited in last 7 days: 25
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 (23.20.86.177)
3 sec.Function: 'FindFirstPrinterChangeNotification'
6 sec.Function: 'BitBlt'
9 sec.
Function group: 'Authentication'
12 sec.Function: 'GdipDeleteFont'
15 sec.Function: 'GdipGetImageGraphicsContext'
18 sec.Function: 'FindResource'
22 sec.Function: 'GetLogicalDriveStrings'
25 sec.Function: 'GetClassInfoEx'
28 sec.Function: 'CeCloseHandle'
31 sec.
Function group: 'Network Management'
Google
Advertise here!