IPin Interface

Windows Mobile 6.5
A version of this page is also available for

This interface represents a single, unidirectional connection point on a filter. A pin connects to exactly one other pin on another filter. Other objects can use this interface on this pin. The interface between the filter and the pin is private to the implementation of a specific filter.

During the connection process, one pin takes the lead. The base classes assume that this is the output pin of the upstream connecting filter.

The filter graph manager calls the IPin::Connect method on this pin's IPin interface, passing the IPin pointer for the connecting pin. This connecting pin then calls the IPin::ReceiveConnection method located on the other pin, in addition to its format-enumeration, IUnknown::QueryInterface, and possibly IPin::QueryAccept methods, to establish whether the connection is possible.

All filters must implement this interface on each of its pins.

Which methods are implemented depends on whether the pin is an input pin or an output pin.

Use the CBasePin, CBaseInputPin, or CBaseOutputPin class, or classes derived from these classes, to implement this interface.

This interface is used by other connecting pins and by the filter graph manager.

Applications should not use this interface directly but should go through the filter graph manager.

Connecting pins use the IPin interface on the opposite pin to negotiate a common media type and an agreed allocator to use for passing samples.

The following table shows the methods that appear in the Vtable beneath the standard COM methods inherited from IUnknown.

Method Description


Makes a connection to another pin.


Makes a connection to this pin and is called by a connecting pin.


Breaks a connection.


Returns a pointer to the connecting pin.


Returns the media type of this pin's connection.


Retrieves information about this pin (for example, the name, owning filter, and direction).


Retrieves an identifier for the pin.


Queries whether a given media type is acceptable by the pin.


Provides an enumerator for this pin's preferred media types.


Provides an array of the pins to which this pin internally connects.


Informs the pin that no additional data is expected until a new run command is issued.


Informs the pin to begin a flush operation.


Informs the pin to end a flush operation.


Specifies that samples following this call are grouped as a segment with a given start time, stop time, and rate.


Retrieves the direction for this pin.

Windows Embedded CEWindows CE 2.12 and later
Windows MobilePocket PC for Windows Mobile Version 5.0 and later, Smartphone for Windows Mobile Version 5.0 and later
NoteMicrosoft DirectShow applications and DirectShow filters have different include file and Library requirements
For more information, see Setting Up the Build Environment

Community Additions