Share via


IBaseFilter Interface

 
Microsoft DirectShow 9.0

IBaseFilter Interface

The IBaseFilter interface is the primary interface for DirectShow filters. All DirectShow filters must expose this interface. The Filter Graph Manager uses this interface to control filters. Applications can use this interface to enumerate pins and query for filter information, but should not use it to change the state of a filter. Instead, use the IMediaControl interface on the Filter Graph Manager.

Filter developers: Implement this interface on every DirectShow filter. The CBaseFilter base class implements this interface.

In addition to the methods inherited from IMediaFilter, the IBaseFilter interface exposes the following methods.

Method Description
EnumPins Enumerates the pins on this filter.
FindPin Retrieves the pin with the specified identifier.
JoinFilterGraph Notifies the filter that it has joined or left the filter graph.
QueryFilterInfo Retrieves information about the filter.
QueryVendorInfo Retrieves a string containing vendor information.

Requirements

Header: Declared in Strmif.h; include Dshow.h.

Library: Use Strmiids.lib.