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 |
---|---|
|
Indicates success. |
|
Indicates that the transport has not been initialized. |
|
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 |
|
IDL |
|
DLL |
|