
The IEnumMediaTypes interface enumerates a pin's preferred media types. To obtain this interface, call the IPin::EnumMediaTypes method on the pin. Filters use this interface when they connect to other filters. Applications can also use it to examine a pin's preferred media types. For more information, see Enumerating Objects in a Filter Graph.
This interface implements a standard Component Object Model (COM) collection object.
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.
Members
The IEnumMediaTypes interface inherits from the IUnknown interface. IEnumMediaTypes also defines the following types of members:
Methods
The IEnumMediaTypes interface defines the following methods.
| Method | Description |
|---|---|
| Clone | Makes a copy of the enumerator. |
| Next | Retrieves a specified number of media types. |
| Reset | Resets the enumeration sequence to the beginning. |
| Skip | Skips over a specified number of media types. |
Requirements
Minimum supported client | Windows 2000 Professional |
|---|---|
Minimum supported server | Windows 2000 Server |
Header | Strmif.h (include Dshow.h) |
Library | Strmiids.lib |
See Also
Send comments about this topic to Microsoft
Build date: 8/31/2010
