Microsoft DirectX 8.1 (C++)

IEnumMediaTypes Interface

Enumerates the preferred media types for a pin.

The IPin::EnumMediaTypes method returns this interface. It is based on the standard Component Object Model (COM) enumerators. For more information, see the IEnumXXXX topic in the Platform SDK.

Pins use this interface when they connect to other pins. Applications can also use it to examine a pin's preferred media types. For more information, see Enumerating Objects in a Filter Graph.

If a pin's set of preferred media types changes, some methods on this interface return VFW_E_ENUM_OUT_OF_SYNC. Call the IEnumMediaTypes::Reset method to resynchronize the enumerator.

In addition to the methods inherited from IUnknown, the IEnumMediaTypes interface exposes the following methods.

Method Description
Next Retrieves a specified number of media types.
Skip Skips over a specified number of media types.
Reset Resets the enumeration sequence to the beginning.
Clone Makes a copy of the enumerator with the same enumeration state.