Skip to content

Latest commit

 

History

History
97 lines (72 loc) · 3.45 KB

nf-tapi-lineremoveprovider.md

File metadata and controls

97 lines (72 loc) · 3.45 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr 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 req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:tapi.lineRemoveProvider
lineRemoveProvider function (tapi.h)
The lineRemoveProvider function removes an existing telephony service provider from the telephony system.
_tapi2_lineremoveprovider
lineRemoveProvider
lineRemoveProvider function [TAPI 2.2]
tapi/lineRemoveProvider
tapi2.lineremoveprovider
tapi2\lineremoveprovider.htm
tapi3
8398a869-bc64-490a-bdb2-496582a88d84
12/05/2018
_tapi2_lineremoveprovider, lineRemoveProvider, lineRemoveProvider function [TAPI 2.2], tapi/lineRemoveProvider, tapi2.lineremoveprovider
tapi.h
Windows
Tapi32.lib
Tapi32.dll
Windows
19H1
lineRemoveProvider
tapi/lineRemoveProvider
c++
APIRef
kbSyntax
DllExport
Tapi32.dll
lineRemoveProvider

lineRemoveProvider function

-description

The lineRemoveProvider function removes an existing telephony service provider from the telephony system.

-parameters

-param dwPermanentProviderID

Permanent provider identifier of the service provider to be removed.

-param hwndOwner

Handle to a window to which any dialog boxes that need to be displayed as part of the removal process (for example, a confirmation dialog box by the service provider's TSPI_providerRemove function) would be attached. Can be a NULL value to indicate that any window created during the function should have no owner window.

-returns

Returns zero if the request succeeds or a negative error number if an error occurs. Possible return values are:

LINEERR_INIFILECORRUPT, LINEERR_NOMEM, LINEERR_INVALPARAM, LINEERR_OPERATIONFAILED.

-remarks

If the call to TSPI_providerRemove succeeds, and the telephony system is active at the time, TAPI calls lineShutdown and/or phoneShutdown on the service provider (depending on which device types are active). Any line or phone handles still held by applications on associated devices are forcibly closed with LINE_CLOSE or PHONE_CLOSE messages (it is preferable for service providers to issue these messages as part of TSPI_providerRemove, after verification with the user). The devices previously under the control of that provider are then marked as "unavailable", so that any future attempts by applications to reference them by device identifier result in LINEERR_NODRIVER.

-see-also

LINE_CLOSE

PHONE_CLOSE

Supplementary Line Service Functions

TAPI 2.2 Reference Overview