Platform SDK: Fax Services |
The IFaxServe::Disconnect method terminates a fax client application's connection to a fax server.
HRESULT Disconnect();
This method has no parameters.
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.
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.
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Unsupported.
Header: Declared in faxcom.h.
Import Library: Included as a resource in faxcom.dll.
Fax Service Client Application Programming Interface Overview, Fax Service Client API Interfaces, IFaxServer, IFaxServer::Connect, IUnknown::Release