Group: Internet Functions (WinInet) - Library: wininet
DWORD InternetAttemptConnect(
DWORD dwReserved
);
DECLARE INTEGER InternetAttemptConnect IN wininet;
INTEGER dwReserved
dwReserved [in] Reserved. Must be set to 0.
Returns 0 (ERROR_SUCCESS) if successful, or a Microsoft® Win32® error value otherwise.
This function allows an application to first attempt to connect before issuing any requests. A client program can use this to evoke the dial-up dialog box. If the attempt fails, the application should enter offline mode.
Notice that this function returns 0 if successful, comparing to True being returned by similar functions InternetAutodial and InternetGoOnline.