---
UID: NF:faxcomex.IFaxServer.Disconnect
title: IFaxServer::Disconnect (faxcomex.h)
description: The IFaxServer::Disconnect method terminates a fax client application's connection to a fax server. The method fails if the client is not connected to an active fax server.
old-location: fax\_mfax_faxserver_cpp_mfax_faxserver_disconnect_cpp.htm
tech.root: Fax
ms.assetid: VS|fax|~\fax\faxinto_z_7fec.htm
ms.date: 12/05/2018
ms.keywords: Disconnect, Disconnect method [Fax Service], Disconnect method [Fax Service],IFaxServer interface, IFaxServer interface [Fax Service],Disconnect method, IFaxServer.Disconnect, IFaxServer::Disconnect, _mfax_faxserver.disconnect, fax._mfax_faxserver_cpp_mfax_faxserver_disconnect_cpp, fax._mfax_faxserver_disconnect, faxcomex/IFaxServer::Disconnect
f1_keywords:
- faxcomex/IFaxServer.Disconnect
dev_langs:
- c++
req.header: faxcomex.h
req.include-header: 
req.target-type: Windows
req.target-min-winverclnt: Windows XP [desktop apps only]
req.target-min-winversvr: Windows Server 2003 [desktop apps only]
req.kmdf-ver: 
req.umdf-ver: 
req.ddi-compliance: 
req.unicode-ansi: 
req.idl: 
req.max-support: 
req.namespace: 
req.assembly: 
req.type-library: 
req.lib: 
req.dll: Fxscomex.dll
req.irql: 
topic_type:
- APIRef
- kbSyntax
api_type:
- COM
api_location:
- Fxscomex.dll
api_name:
- IFaxServer.Disconnect
- IFaxServer.Disconnect
targetos: Windows
req.typenames: 
req.redist: 
ms.custom: 19H1
---

# IFaxServer::Disconnect


## -description


The <b>IFaxServer::Disconnect</b> method terminates a fax client application's connection to a fax server. The method fails if the client is not connected to an active fax server.


## -parameters






## -returns



Type: <b>HRESULT</b>

If this method succeeds, it returns <b xmlns:loc="http://microsoft.com/wdcml/l10n">S_OK</b>. Otherwise, it returns an <b xmlns:loc="http://microsoft.com/wdcml/l10n">HRESULT</b> error code.




## -see-also




<a href="https://docs.microsoft.com/previous-versions/windows/desktop/fax/-mfax-faxserver">FaxServer</a>



<a href="https://docs.microsoft.com/previous-versions/windows/desktop/api/faxcomex/nn-faxcomex-ifaxserver">IFaxServer</a>
 

 

