ITMediaCollection::Create 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 Create method creates a new media with default properties, adds it to the collection at the specified index, and returns a pointer to the ITMedia interface.
Syntax
HRESULT Create(
[in] LONG Index,
[out] ITMedia **ppMedia
);
Parameters
-
Index [in]
-
Index for the new item. The minimum value for the index is 1, and the maximum value for the index is the current number of items + 1.
-
ppMedia [out]
-
Pointer to ITMedia interface created.
Return value
This method can return one of these values.
Value | Meaning |
---|---|
|
Method succeeded. |
|
The ppMedia parameter is not a valid pointer. |
|
The Index parameter is not valid. |
|
Insufficient memory exists to perform the operation. |
|
Unspecified error. |
|
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.
TAPI calls the AddRef method on the ITMedia interface returned by ITMediaCollection::Create. The application must call Release on the ITMedia interface to free resources associated with it.
Requirements
Requirement | Value |
---|---|
TAPI version |
Requires TAPI 3.0 or later |
Header |
|
Library |
|
DLL |
|