Microsoft Windows CE 3.0  

IDistributorNotify::NotifyGraphChange

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Called when the set of filters in the filter graph change or their connections change.

HRESULT NotifyGraphChange( );

Return Values

Returns an HRESULTvalue that depends on the implementation. HRESULTcan be one of the following standard constants, or other values not listed:

Value Description
E_FAIL Failure.
E_POINTER Null pointer argument.
E_INVALIDARG Invalid argument.
E_NOTIMPL Method isn't supported.
S_OK or NOERROR Success.

Remarks

This method is called whenever an FilterGraph::AddFilter, IFilterGraph::RemoveFilter, or IFilterGraph::ConnectDirectmethod is called or a method is called that will lead to one of these being called (such as IGraphBuilder::RenderFile).

Make sure you use Releaseon any held filters that have been removed at this point. For performance reasons, PIDs might choose not to rescan the filters until the PIDs actually need the interfaces, because there might be several separate notifications sent. However, it is important to release any cached interfaces immediately.