Microsoft DirectX 8.1 (C++) |
The GetPinVersion method retrieves a version number for the set of pins on this filter.
Syntax
virtual long GetPinVersion(void);
Return Value
Returns the CBaseFilter::m_PinVersion member variable.
Remarks
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