共用方式為


InternetAttemptConnect

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This function attempts to make a connection to the Internet.

Syntax

DWORD InternetAttemptConnect(
  DWORD dwReserved
);

Parameters

  • dwReserved
    [in] 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.

Requirements

Header wininet.h
Library wininet.lib
Windows Embedded CE Windows CE .NET 4.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

WinInet Functions