Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "InternetConnect" in [All]

wininet

.

hConnect (in) A handle returned from a call to InternetConnect.

.

' and Me.hINetConn is an IntPtr opened by InternetConnect

.

    [DllImport("wininet.dll", EntryPoint = "InternetConnectW", CharSet = CharSet.Auto, SetLastError = true)]

.

    private static extern IntPtr InternetConnectW(

.

        ftpHandle = InternetConnectW(internetHandle, FTPSite,

.

Call InternetOpen() and InternetConnect() to get a valid hConnect handle.

.

Call InternetOpen() and InternetConnect() to get a valid hConnect handle.

.

static extern IntPtr InternetConnect(

.

Declare Auto Function InternetConnect Lib "wininet.dll" (

.

The InternetConnect function is required before communicating with any Internet service.

.

For FTP sites, InternetConnect actually establishes a connection with the server; for others, such as Gopher, the actual connection is not established until the application requests a specific transaction.

.

For maximum efficiency, applications using the Gopher and HTTP protocols should try to minimize calls to InternetConnect and avoid calling this function for every transaction requested by the user. One way to accomplish this is to keep a small cache of handles returned from InternetConnect; when the user makes a request to a previously accessed server, that session handle is still available.

.

For FTP connections, if lpszUsername is NULL, InternetConnect sends the string "anonymous" as the user name. If lpszPassword is NULL, InternetConnect attempts to use the user's e-mail name as the password.

.

To close the handle returned from InternetConnect, the application should call InternetCloseHandle. This function disconnects the client from the server and frees all resources associated with the connection.

.

Function Get_InternetConnectedState(ByRef p_lngFlags As Long, Optional ByRef p_return_str As String = "") As Boolean

.

      Get_InternetConnectedState = False

.

     Get_InternetConnectedState = True

.

     Get_InternetConnectedState = False


 
Access PInvoke.net directly from VS: