Skip to content

Latest commit

 

History

History
58 lines (39 loc) · 1.23 KB

File metadata and controls

58 lines (39 loc) · 1.23 KB

Home

Function name : InternetCheckConnection

Group: Internet Functions (WinInet) - Library: wininet


Allows an application to check if a connection to the Internet can be established.


Code examples:

Testing if a connection to an Url can be established

Declaration:

BOOL InternetCheckConnection(
	LPCTSTR lpszUrl,
	DWORD dwFlags,
	DWORD dwReserved
);  

FoxPro declaration:

DECLARE INTEGER InternetCheckConnection IN wininet;
	STRING  lpszUrl,;
	INTEGER dwFlags,;
	INTEGER dwReserved
  

Parameters:

lpszUrl [in] Pointer to a string containing the URL to use to check the connection. This value can be set to NULL.

dwFlags [in] Unsigned long integer value containing the flag values.

dwReserved [in] Reserved. Must be set to 0.


Return value:

Returns TRUE if a connection is made successfully, or FALSE otherwise.


Comments:

Can test a general Internet connection availabiilty. The InternetGetConnectedState provide similar functionality.