ITForwardInformation2::GetForwardType2 method (tapi3if.h)

The GetForwardType2 method gets the current forwarding mode, specified by caller address.

Syntax

HRESULT GetForwardType2(
  [in]  long ForwardType,
  [out] BSTR *ppDestinationAddress,
  [out] long *pDestAddressType,
  [out] BSTR *ppCallerAddress,
  [out] long *pCallerAddressType
);

Parameters

[in] ForwardType

Line forward type to be retrieved.

[out] ppDestinationAddress

Pointer to the BSTR representation of the destination address.

[out] pDestAddressType

Address type of the destination.

[out] ppCallerAddress

Pointer to the BSTR representation of the caller address.

[out] pCallerAddressType

Address type of the caller.

Return value

This method can return one of these values.

Return code Description
S_OK
Method succeeded.
E_INVALIDARG
The ForwardType, pDestAddressType, or pCallerAddressType parameter is invalid.
E_OUTOFMEMORY
Insufficient memory exists to perform the operation.
E_POINTER
The ppDestinationAddress, pDestAddressType, pCallerAddressType, or ppCallerAddress 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::GetForwardType