IInternetTransport::Disconnect method

[IInternetTransport::Disconnect is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions.]

This method disconnects the transport. This method may cause the transport to send a command, such as the QUIT command, to the server.

Syntax

HRESULT Disconnect();

Parameters

This method has no parameters.

Return value

Type: HRESULT

Returns one of the following values.

Return code Description
S_OK
Indicates success.
IXP_E_NOT_INIT
Indicates that the transport has not been initialized.
IXP_E_NOT_CONNECTED
Indicates that the transport is not connected.

Remarks

The IInternetTransport::Disconnect method terminates the connection to the server and allows the server to clean up the session. The IInternetTransport::DropConnection method immediately breaks the server connection without allowing for session clean-up.

Requirements

Minimum supported client
Windows XP [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Product
Outlook Express 6.0
Header
Imnxport.h
IDL
Imnxport.idl
DLL
Inetcomm.dll (version 6.0 or later)