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:
Creating a directory on the FTP
Custom FTP Class for Visual FoxPro application
Custom HttpRequest class (WinINet)
Downloading files from the FTP server using InternetReadFile
How to delete file on FTP server
How to download a file from the FTP server using FtpGetFile
How to remove FTP directory
How to retrieve the size of a remote file (FTP)
Reading Internet Query options
Reading list of folders and files on FTP server
Retrieving list of files on the FTP directory
Uploading file to the FTP server using InternetWriteFile
Uploading local file to FTP server with FtpPutFile
Using FtpCommand
InternetConnect
    Add comment     W32 Constants      Translate this page
Opens an FTP, Gopher, or HTTP session for a given site
Code examples:
Custom FTP Class for Visual FoxPro application
Custom HttpRequest class (WinINet)
Reading list of folders and files on FTP server
Downloading files from the FTP server using InternetReadFile
Uploading local file to FTP server with FtpPutFile
Retrieving list of files on the FTP directory
Using FtpCommand
How to retrieve the size of a remote file (FTP)
Creating a directory on the FTP
How to download a file from the FTP server using FtpGetFile
Declaration:
HINTERNET InternetConnect(
    HINTERNET hInternet,
    LPCTSTR lpszServerName,
    INTERNET_PORT nServerPort,
    LPCTSTR lpszUsername,
    LPCTSTR lpszPassword,
    DWORD dwService,
    DWORD dwFlags,
    DWORD_PTR dwContext
);

FoxPro declaration:
DECLARE INTEGER InternetConnect IN wininet;
    INTEGER hInternetSession,;
    STRING  sServerName,;
    INTEGER nServerPort,;
    STRING  sUsername,;
    STRING  sPassword,;
    INTEGER lService,;
    INTEGER lFlags,;
    INTEGER lContext

Parameters:
hInternet
[in] Valid HINTERNET handle returned by a previous call to InternetOpen.

lpszServerName
[in] Pointer to a null-terminated string that contains the host name of an Internet server.

nServerPort
[in] longof the TCP/IP port on the server to connect to. These flags set only the port that will be used.

lpszUsername
[in] Pointer to a null-terminated string that contains the name of the user to log on.

lpszPassword
[in] Pointer to a null-terminated string that contains the password to use to log on.

dwService
[in] Unsigned long integer value that contains the type of service to access.

dwFlags
[in] Unsigned long integer value that contains the flags specific to the service used.

dwContext
[in] Pointer to an unsigned long integer value ...
Return value:
Returns a valid handle to the FTP, Gopher, or HTTP session if the connection is successful, or NULL otherwise
My comment:
Some main FTP functions can be implemented in Visual Foxpro through creating command files and running FTP.EXE utility as an external application. This program is usually installed on Windows computers as a regular part of the OS.

Nevertheless when using the Inet functions you may acquire more control comparing to the FTP.EXE option.
Word Index links for the InternetConnect :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-07-15 12:00:00
Modified: 2001-11-26 16:02:26
Visited in last 7 days: 47
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.72.162)
7 sec.Function: 'mciSendString'
13 sec.Function: 'GetLongPathName'
19 sec.Function: 'GetEnvironmentVariable'
25 sec.Function: 'LookupAccountName'
30 sec.Function: 'OpenInputDesktop'
35 sec.Function: 'SHCreateDirectory'
42 sec.Function: 'InternetTimeFromSystemTime'
47 sec.Function: 'GetAncestor'
54 sec.Function: 'GetBestRoute'
1.02 min.Function: 'RasEnumAutodialAddresses'
Google
Advertise here!