Skip to content

Latest commit

 

History

History
56 lines (36 loc) · 1.19 KB

File metadata and controls

56 lines (36 loc) · 1.19 KB

Home

Function name : InternetGetConnectedState

Group: Internet Functions (WinInet) - Library: wininet


Retrieves the connected state of the local system.


Code examples:

Retrieving the state of your Internet connection

Declaration:

BOOL InternetGetConnectedState(
    LPDWORD lpdwFlags,
    DWORD dwReserved
);
  

FoxPro declaration:

DECLARE SHORT InternetGetConnectedState IN wininet;
	INTEGER @ lpdwFlags,;
   	INTEGER   dwReserved  

Parameters:

lpdwFlags [out] Pointer to an unsigned long integer variable where the connection description should be returned.

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


Return value:

Returns TRUE if there is an Internet connection, or FALSE otherwise.


Comments:

The InternetGetConnectedStateEx is an extended version of this function.

The InternetCheckConnection allows an application to check if a connection to the Internet can be established.