IPinConnection interface (strmif.h)

[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

This interface provides methods for reconnecting an input pin while the filter is still running. The Filter Graph Manager calls methods on this interface when it performs dynamic reconnections (see the IGraphConfig interface). Applications might also use this interface to perform dynamic pin reconnections.

Filter developers: Implement this interface on any input pin that allows dynamic reconnection or dynamic changes in format.

Inheritance

The IPinConnection interface inherits from the IUnknown interface. IPinConnection also has these types of members:

Methods

The IPinConnection interface has these methods.

 
IPinConnection::DynamicDisconnect

The DynamicDisconnect method disconnects the pin when the filter is active (paused or running). Call this method instead of IPin::Disconnect to disconnect a pin when the graph is running or paused.
IPinConnection::DynamicQueryAccept

The DynamicQueryAccept method queries whether the pin can accept the specified media type while the graph is running with the current connection to this pin.
IPinConnection::IsEndPin

The IsEndPin method indicates whether a reconnection search should end at this pin.
IPinConnection::NotifyEndOfStream

The NotifyEndOfStream method requests notification from the pin when the next end-of-stream condition occurs.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header strmif.h (include Dshow.h)

See also

Dynamic Graph Building

Dynamic Reconnection