Platform SDK: Fax Services

IFaxServer::Disconnect

The IFaxServe::Disconnect method terminates a fax client application's connection to a fax server.

Visual Basic Reference

HRESULT Disconnect();

Parameters

This method has no parameters.

Return Values

Returns an HRESULT value indicating success or failure. If the method succeeds, it returns S_OK. Otherwise, it returns a COM-defined error code.

You should not check directly for success or failure. Use the COM SUCCEEDED and FAILED macros instead.

Remarks

A call to the IFaxServer::Disconnect method attempts to terminate a server connection made by a previous call to the IFaxServer::Connect method.

In addition to calling the IFaxServer::Disconnect method, an application must also call the IUnknown::Release method to allow each object to deallocate itself.

For more information, see Connecting to a Fax Server and Disconnecting from a Fax Server.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Unsupported.
  Header: Declared in faxcom.h.
  Import Library: Included as a resource in faxcom.dll.

See Also

Fax Service Client Application Programming Interface Overview, Fax Service Client API Interfaces, IFaxServer, IFaxServer::Connect, IUnknown::Release