xfDisconnect

#include <fte.h>

DWORD WINAPI xfDisconnect(hConnection, dwFlags)
HCONNECTION
hConnection; /* handle of connection to close */
DWORD
dwFlags; /* currently not used */

The xfDisconnect function immediately shuts down any pending transfers on the connection and then closes the connection.

Parameters

hConnection

Identifies the connection to close.

dwFlags

Currently not used. The value should be 0.

Return Value

The return value specifies the result of the termination request. It can be any one of the values list in section 2.2.4. File Transfer Errors.

Comments

The xfDisconnect function call terminates an xfConnect function call. It does an implicit xfAbortTransfer function call, if appropriate. The connection handle is invalid after the call.

See Also

xfAbortTransfer, xfConnect