Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

InternetCloseHandle "wininet.dll" , not Close FTP Server Connection

Status
Not open for further replies.

TURNERMICH

Technical User
Apr 5, 2000
64
AU
am connecting to an FTP site. using "wininet.dll"

hOpen = InternetOpen(scUserAgent, INTERNET_OPEN_TYPE_DIRECT, vbNullString, vbNullString, 0)

If hOpen = 0 Then
MsgBox ("Internet Not Connected...")
Exit Sub
End If
2.
hConnection = InternetConnect(hOpen, TxtServer, INTERNET_INVALID_PORT_NUMBER, _
TxtUser, TxtPassWord, INTERNET_SERVICE_FTP, nFlag, 0)
If hConnection = 0 Then
MsgBox ("Error Connecting to Internet")
Exit Sub
End If

???????????????????
After running.....
If hConnection <> 0 Then InternetCloseHandle hConnection


When i look at the FTP Server (SERV-U), THE CONNECTION IS NOT SHOWN AS CLOSED.

if i use say wsftp or webdrive, programs, when close is clicked,the connection is shown as closed.,
on the ftp server.


How do i send a command to the FTP Server to CLOSE the Connection on the Server, in VB6.


Appreciate any help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top