Desktop Functions: Smart Device Functions:
|
Search Results for "InternetConnect" in [All]wininet1: FtpCommand hConnect (in) A handle returned from a call to InternetConnect.
' and Me.hINetConn is an IntPtr opened by InternetConnect 3: FtpGetFile
[DllImport("wininet.dll", EntryPoint = "InternetConnectW", CharSet = CharSet.Auto, SetLastError = true)]
private static extern IntPtr InternetConnectW(
ftpHandle = InternetConnectW(internetHandle, FTPSite, 4: FtpPutFile 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. |