Microsoft Windows CE 3.0  

IEnumPins Interface

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

The IBaseFilter::EnumPinsmethod returns this interface. It is based on the IEnumXprotocol of the Component Object Model (COM).

Note   Actions that cause the number of pins to change might cause the enumerator to fail.

When to Implement

This interface must be implemented and made available by the IBaseFilter::EnumPinsmethod. The CBaseFilter::EnumPinsmember function automatically does this in the Microsoft DirectShow class library and uses the CEnumPinsclass to create the enumerator object.

When to Use

This interface is normally used by the filter graph manager when connecting filters. It can, however, be used by an application that must find the pins associated with filters in the filter graph — for example, to add another filter to the graph.

Methods in Vtable Order

IUnknown methods Description
QueryInterface Returns pointers to supported interfaces.
AddRef Increments the reference count.
Release Decrements the reference count.
IEnumPins methods Description
Next Puts pointers to IPininterfaces for the next pins into the specified array.
Skip Skips the specified number of pins.
Reset Resets the position to the beginning so that the next call to the IEnumPins::Nextmethod returns, at a minimum, the first pin of the filter.
Clone Provides another enumerator, which is a duplicate of the current one.