Microsoft DirectX 9.0


The GetPinVersion method retrieves a version number for the set of pins on this filter.


virtual long GetPinVersion(void);

Return Value

Returns the CBaseFilter::m_PinVersion member variable.


The CBaseFilter constructor initializes the pin version to 1. In the base class, this number never changes. If the filter dynamically creates or destroys pins, it should increment the pin version whenever the pins change. To increment the version number, call the CBaseFilter::IncrementPinVersion method.

The pin enumerator object, which is implemented by the CEnumPins class, uses the pin version to keep itself synchronized with the filter.

See Also