This function disconnects from the FTP server.
[C++Builder/Visual
C++] BOOL IKFTPDisconnect(HINTERNET
hOpen, HINTERNET hConnect);
[Delphi] function
IKFTPDisconnect(hOpen, hConnect: HINTERNET): LongBool;
[Visual Basic] Function
IKFTPDisconnect(ByVal hOpen As Long, ByVal hConnect As Long) As
Long
Parameters
Name | Explanation |
---|---|
hOpen | The open handle retrieved from the IKFTPConnect function |
hConnect | The session handle retrieved from the IKFTPConnect function |
Return Value
Returns True (nonzero) if successful. Returns False (0) if unsuccessful.
Explanation
The IKFTPDisconnect function disconnects the server that was connected by the IKFTPConnect function. This function can only be executed from the client computer. It does not operate on the server.