Click to Rate and Give Feedback
MSDN
MSDN Library
Networking
Network Protocols
Windows Internet
WinINet Reference
WinINet Functions
 InternetAttemptConnect Function
InternetAttemptConnect Function

Attempts to make a connection to the Internet.

Syntax

C++
DWORD InternetAttemptConnect(
  __in  DWORD dwReserved
);

Parameters

dwReserved [in]

This parameter is reserved and must be 0.

Return Value

Returns ERROR_SUCCESS if successful, or a system error code 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.

Requirements

Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
VersionInternet Explorer 3.0 or later
HeaderWininet.h
LibraryWininet.lib
DLLWininet.dll

See Also

Enabling Internet Functionality
WinINet Functions

Send comments about this topic to Microsoft

Build date: 10/8/2009

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker