Click to return to the Networking, Protocols     
General Win32 Internet Fu...     InternetCheckConnection F...     General Win32 Internet Fu...    
Web Workshop  |  Networking, Protocols & Data Formats

InternetAttemptConnect Function


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



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.