Group: Internet Functions (WinInet) - Library: wininet
Testing if a connection to an Url can be established
BOOL InternetCheckConnection(
LPCTSTR lpszUrl,
DWORD dwFlags,
DWORD dwReserved
); DECLARE INTEGER InternetCheckConnection IN wininet;
STRING lpszUrl,;
INTEGER dwFlags,;
INTEGER dwReserved
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.
Returns TRUE if a connection is made successfully, or FALSE otherwise.
Can test a general Internet connection availabiilty. The InternetGetConnectedState provide similar functionality.
Home