Skip to content

Latest commit

 

History

History
64 lines (43 loc) · 1.53 KB

InternetGetConnectedStateEx.md

File metadata and controls

64 lines (43 loc) · 1.53 KB

Home

Function name : InternetGetConnectedStateEx

Group: Internet Functions (WinInet) - Library: wininet


Retrieves the connected state of the specified Internet connection.


Code examples:

Retrieving the state of your Internet connection

Declaration:

BOOL InternetGetConnectedStateEx(
    LPDWORD lpdwFlags,
    LPTSTR lpszConnectionName,
    DWORD dwNameLen,
    DWORD dwReserved
);
  

FoxPro declaration:

DECLARE SHORT InternetGetConnectedStateEx IN wininet;
	INTEGER @ lpdwFlags,;
	STRING  @ lpszConnectionName,;
	INTEGER   dwNameLen,;
	INTEGER   dwReserved  

Parameters:

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

lpszConnectionName [out] Pointer to a string value that receives the connection name.

dwNameLen [in] Unsigned long integer value that contains the length of the lpszConnectionName string in TCHAR.

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


Return value:

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


Comments:

Except the returned connection name this function is similar to the InternetGetConnectedState function. The InternetCheckConnection allows an application to check if a connection to the Internet can be established.