This topic has not yet been rated - Rate this topic

IAMGraphBuilderCallback::SelectedFilter method

The Filter Graph Manager calls this method when it finds a candidate filter for the graph, but before it creates the filter.

Syntax


HRESULT SelectedFilter(
  IMoniker *pMon
);

Parameters

pMon

Pointer to a moniker that contains information about the filter.

Return value

If the method returns a success code, the Filter Graph Manager creates the filter and tries to connect it. If the method returns a failure code, the Filter Graph Manager rejects the filter.

Remarks

This method enables the client to examine a filter to determine whether it is acceptable for the current filter graph.

The Filter Graph Manager holds a graph-wide critical section while it calls this method. Therefore, the callback method should avoid calling any methods on the Filter Graph Manager, or any methods on filters that might change the graph state (such as disconnecting pins). Doing so might cause a deadlock or other unexpected behaviors.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Strmif.h (include Dshow.h)

Library

Strmiids.lib

See also

IAMGraphBuilderCallback Interface

 

 

Send comments about this topic to Microsoft

Build date: 11/21/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.