| Microsoft DirectX 8.1 (C++) |
The Clone method makes a copy of the enumerator with the same enumeration state. This method implements the IEnumMediaTypes::Clone method.
Syntax
HRESULT Clone(
IEnumMediaTypes **ppEnum
);
Parameters
ppEnum
Address of a variable that receives a pointer to the IEnumMediaTypes interface of the new enumerator.
Return Value
Returns one of the HRESULT values shown in the following table.
| Value | Description |
| S_OK | Success. |
| E_OUTOFMEMORY | Insufficient memory. |
| E_POINTER | NULL pointer argument. |
| VFW_E_ENUM_OUT_OF_SYNC | The pin's state has changed and is now inconsistent with the enumerator. |
See Also