共用方式為


IAMFilterGraphCallback Interface

 
Microsoft DirectShow 9.0

IAMFilterGraphCallback Interface

The IAMFilterGraphCallback interface provides a callback mechanism during graph building.

To use this interface, implement the interface in your application or client object. Query the Filter Graph Manager for the IObjectWithSite interface and call the IObjectWithSite::SetSite method with a pointer to your implementation of the interface. During graph building, if the Filter Graph Manager fails to render a pin, it calls the UnabletoRender method. The client can then take appropriate action, such as providing an error message for the user or registering a new filter.

In addition to the methods inherited from IUnknown, the IAMFilterGraphCallback interface exposes the following method.

Method Description
UnableToRender Informs the client that no combination of filters could be found to render the specified pin.

Requirements

Header: Declared in Strmif.h; include Dshow.h.

Library: Use Strmiids.lib.

See Also