Group: Internet Functions (WinInet) - Library: wininet
Retrieving the state of your Internet connection
BOOL InternetGetConnectedState(
LPDWORD lpdwFlags,
DWORD dwReserved
);
DECLARE SHORT InternetGetConnectedState IN wininet;
INTEGER @ lpdwFlags,;
INTEGER dwReserved lpdwFlags [out] Pointer to an unsigned long integer variable where the connection description should be returned.
dwReserved [in] Reserved. Must be set to zero.
Returns TRUE if there is an Internet connection, or FALSE otherwise.
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.
Home