ITForwardInformation2::SetForwardType2 method (tapi3if.h)

The SetForwardType2 method sets the current forwarding mode, specified by caller address.

Syntax

HRESULT SetForwardType2(
  [in] long ForwardType,
  [in] BSTR pDestAddress,
  [in] long DestAddressType,
  [in] BSTR pCallerAddress,
  [in] long CallerAddressType
);

Parameters

[in] ForwardType

Line forward type to be set.

[in] pDestAddress

Pointer to the BSTR representation of the destination address.

[in] DestAddressType

Address type of destination.

[in] pCallerAddress

Pointer to the BSTR representation of the caller address.

[in] CallerAddressType

Address type of caller.

Return value

This method can return one of these values.

Return code Description
S_OK
Method succeeded.
E_INVALIDARG
The ForwardType, DestAddressType, or CallerAddressType is invalid.
E_OUTOFMEMORY
Insufficient memory exists to perform the operation.
E_POINTER
The pDestAddress or pCallerAddress parameter is not a valid pointer.

Requirements

Requirement Value
Target Platform Windows
Header tapi3if.h
Library Uuid.lib
DLL Tapi3.dll

See also

ITForwardInformation

ITForwardInformation2

ITForwardInformation::SetForwardType