I have a program that uses Wininet to connect to an FTP site. First it downloads an ini file, then it downloads some update files.
If there is a delay between the 2 processes a timeout occurs, however, it doesnt actually give an error. Is there a way that I can detect if a session handle is still active?
If there isn't, the only thing I can think of is to attempt a re-connect once, but I'd prefer to determine if the connection is active. My code that deals with this so far is:
hfile = FtpOpenFile(ServerID, fName, GENERIC_READ, FTP_TRANSFER_TYPE_BINARY, 0)
If hfile = 0 Then
MsgBox "Failed but I dont know why!"
Any help would be great thanks.