Disconnecting from a Fax Server
It is the responsibility of the calling fax client application to disconnect from the fax server.
In the Win32 Environment
A fax client application must call the FaxClose function as the last function before it terminates. The function disconnects the calling application from the fax server by deallocating the following handles.
- Fax server handles returned by calls to the FaxConnectFaxServer function
- Fax port handles returned by calls to the FaxOpenPort function
In the COM Implementation Environment
If you are writing a C/C++ application, call the IFaxServer::Disconnect method to terminate the connection to a fax server. Then call the IUnknown::Release method to allow the FaxServer object to deallocate itself. You may also need to call IUnknown::Release again to destroy additional interface pointers.
If you are writing a Microsoft Visual Basic application, you must call the Disconnect method of the FaxServer object to disconnect from the fax server before your application terminates.
Related topics