|Microsoft DirectX 9.0|
The put_Filter method specifies a source filter for the media detector to use.
Important Do not add the source filter to your own filter graph, or use a filter that is already in a filter graph. The media detector object automatically builds an internal filter graph, and putting the filter in another graph can cause unexpected results.
HRESULT put_Filter( IUnknown *newVal );
[in] Pointer to the source filter's IUnknown interface.
Returns an HRESULT value. Possible values include the following:
|E_NOINTERFACE||newVal does not point to a filter.|
|E_POINTER||NULL pointer argument.|
For most applications, it is simpler to call the IMediaDet::put_Filename method with the name of a source file.
Header: Include Qedit.h. This header file is not compatible with Microsoft® Direct3D® headers later than version 7.
Library: Use strmiids.lib.