IDistributorNotify 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.]
The IDistributorNotify
interface enables a plug-in distributor to be notified when the filter graph changes.
Applications never use this interface. Implement this interface if you are writing a plug-in distributor (PID) and want the PID to receive notifications of control and changes in the composition of filter graphs.
The Filter Graph Manager queries for this interface on any plug-in distributors that it aggregates. If a PID exposes this interface, the Filter Graph Manager notifies the PID of any state changes by calling IDistributorNotify methods before calling the equivalent IBaseFilter methods on the filters. The Filter Graph Manager also calls the IDistributorNotify::NotifyGraphChange method whenever it adds or removes a filter, or any pin connections change.
During a call to any IDistributorNotify method, do not hold any critical section that might be held by another code path that calls methods on the Filter Graph Manager. Doing so could result in a deadlock.
Inheritance
The IDistributorNotify interface inherits from the IUnknown interface. IDistributorNotify also has these types of members:
Methods
The IDistributorNotify interface has these methods.
IDistributorNotify::NotifyGraphChange The NotifyGraphChange method is called when the set of filters in the filter graph changes or any pin connections change. |
IDistributorNotify::Pause The Pause method is called when the filter graph is entering a paused state. |
IDistributorNotify::Run The Run method is called when the filter graph is entering a running state. |
IDistributorNotify::SetSyncSource The SetSyncSource method is called when a new clock is registered. |
IDistributorNotify::Stop The Stop method is called when the filter graph is entering a stopped state. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | strmif.h (include Dshow.h) |