Skip to content

Latest commit

 

History

History
86 lines (64 loc) · 3.2 KB

InternetOpen.md

File metadata and controls

86 lines (64 loc) · 3.2 KB

Home

Function name : InternetOpen

Group: Internet Functions (WinInet) - Library: wininet


Initializes an application"s use of the Microsoft® Win32® Internet functions


Code examples:

Opening access to the Microsoft Internet functions for the application
How to download a file from the FTP server using FtpGetFile
Retrieving list of files on the FTP directory
Creating a directory on the FTP
Using FtpCommand
Reading Internet Query options
Uploading local file to FTP server with FtpPutFile
Uploading file to the FTP server using InternetWriteFile
Downloading files from the FTP server using InternetReadFile
How to retrieve the size of a remote file (FTP)
How to remove FTP directory
How to delete file on FTP server
How to download this reference's archive through WinInet functions using InternetOpenUrl
Custom HttpRequest class (WinINet)
Using InternetSetFilePointer when resuming interrupted download from the Internet
Reading list of folders and files on FTP server
Custom FTP Class for Visual FoxPro application

Declaration:

HINTERNET InternetOpen(
	LPCTSTR lpszAgent,
	DWORD dwAccessType,
	LPCTSTR lpszProxyName,
	LPCTSTR lpszProxyBypass,
	DWORD dwFlags
);
  

FoxPro declaration:

DECLARE INTEGER InternetOpen IN wininet;
	STRING  sAgent,;
	INTEGER lAccessType,;
	STRING  sProxyName,;
	STRING  sProxyBypass,;
	STRING  lFlags  

Parameters:

lpszAgent [in] Pointer to a string variable that contains the name of the application or entity calling the Internet functions.

dwAccessType [in] Type of access required

lpszProxyName [in] Pointer to a string variable that contains the name of the proxy server(s)

lpszProxyBypass [in] Pointer to a string variable that contains an optional list of host names or IP addresses, or both, that should not be routed through the proxy when dwAccessType is set to INTERNET_OPEN_TYPE_PROXY

dwFlags [in] Unsigned long integer value that contains the flags that indicate various options affecting the behavior of the function


Return value:

Returns a valid handle that the application passes to subsequent Win32 Internet functions. If InternetOpen fails, it returns NULL


Comments:

It"s just a beginning -- to allow your application to use the Microsoft Internet functions. Actually, this function does nothing except this. On exit do not forget to call the closing function -- InternetCloseHandle.

Allow me to allow something, and I soon will be the master of this something.