ITAddressTranslation::get_CallingCards method (tapi3if.h)

The get_CallingCards method creates a collection of calling cards associated with the address. This method is provided for Automation client applications, such as those written in Visual Basic. C and C++ applications must use the EnumerateCallingCards method.

Syntax

HRESULT get_CallingCards(
  [out] VARIANT *pVariant
);

Parameters

[out] pVariant

Pointer to VARIANT containing an ITCollection of ITCallingCard interface pointers.

Return value

This method can return one of these values.

Value Meaning
S_OK
Method succeeded.
E_POINTER
The pVariant parameter is not a valid pointer.
E_OUTOFMEMORY
Insufficient memory exists to perform the operation.

Remarks

The get_CallingCards method is a COM wrapper for the TAPI 2.2 LineGetTranslateCaps function, and takes calling card information from the LINETRANSLATECAPS structure returned by that function.

TAPI calls the AddRef method on the ITCallingCard interface returned by ITAddressTranslation::get_CallingCards. The application must call Release on the ITCallingCard interface to free resources associated with it.

Requirements

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

See also

Address Object

ITCallingCard

ITCollection

LINETRANSLATECAPS

LineGetTranslateCaps