ITMediaCollection::get_Item method

[ Rendezvous IP Telephony Conferencing controls and interfaces are not available for use in Windows Vista, Windows Server 2008, and subsequent versions of the operating system. The RTC Client API provides similar functionality.]

The get_Item method gets an ITMedia pointer corresponding to the specified index.

Syntax

HRESULT get_Item(
  [in]  LONG    Index,
  [out] ITMedia **pVal
);

Parameters

Index [in]

Index of media item to get.

pVal [out]

Pointer to the ITMedia interface for the desired item.

Return value

This method can return one of these values.

Value Meaning
S_OK
Method succeeded.
E_POINTER
The pVal parameter is not a valid pointer.
E_INVALIDARG
The Index parameter is not valid.
E_OUTOFMEMORY
Insufficient memory exists to perform the operation.
E_FAIL
Unspecified error.
E_NOTIMPL
This method is not yet implemented.

Remarks

Most C and C++ lists are 0-based, but this index is 1-based for Visual Basic compatibility, meaning the first item has an index number of 1.

Requirements

Requirement Value
TAPI version
Requires TAPI 3.0 or later
Header
Sdpblb.h
Library
Uuid.lib
DLL
Sdpblb.dll

See also

ITMedia

ITMediaCollection