Attempts to make a connection to the Internet.
Syntax
DWORD InternetAttemptConnect( IN DWORD dwReserved );
Parameters
- dwReserved
- Reserved. Must be set to zero.
Return Value
Returns ERROR_SUCCESS if successful, or a Win32® error value otherwise.
Remarks
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.
Function Information
Windows NT Use version 4.0. Implemented only as an ANSI function. Windows Use Windows 95 and later. Implemented only as an ANSI function. Header Wininet.h Import library Wininet.lib Minimum availability Internet Explorer 3.0
See Also
Microsoft Win32 Internet Functions Overview, Enabling Internet Functionality, Microsoft Win32 Internet Functions Reference, General Win32 Internet Functions