Platform SDK: TAPI

ITBasicCallControl::Disconnect

Disconnects the call. The call state will transition to CS_DISCONNECTED after the method completes successfully.

HRESULT Disconnect(
  DISCONNECT_CODE code
);

Parameters

code
[in] DISCONNECT_CODE indicating reason for call disconnection.

Return Values

Value Meaning
S_OK Method succeeded.
S_FALSE The call state is CS_IDLE or a valid handle for the call could not be obtained by the TAPI 3.0 dll.
E_OUTOFMEMORY Insufficient memory exists to perform the operation.
TAPI_E_TIMEOUT The operation failed because the TAPI 3.0 DLL timed it out. The timeout interval is two minutes.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Version: Requires TAPI 3.0 or later.
  Header: Declared in Tapi3.h.
  Library: Use T3iid.lib.

See Also

ITBasicCallControl, Terminate a Session Overview, Call Object, Drop Overview, lineDrop, DISCONNECT_CODE