IFilterMapper::EnumMatchingFilters method (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.]

Note  The IFilterMapper interface is deprecated. Use IFilterMapper2 instead.
 
Provides an enumerator that enumerates registered filters that meet specified requirements.

Syntax

HRESULT EnumMatchingFilters(
  [out] IEnumRegFilters **ppEnum,
  [in]  DWORD           dwMerit,
        BOOL            bInputNeeded,
  [in]  CLSID           clsInMaj,
  [in]  CLSID           clsInSub,
  [in]  BOOL            bRender,
  [in]  BOOL            bOututNeeded,
  [in]  CLSID           clsOutMaj,
  [in]  CLSID           clsOutSub
);

Parameters

[out] ppEnum

Address of a pointer to the enumerator returned.

[in] dwMerit

Minimum merit value of filters to enumerate.

bInputNeeded

Value indicating whether there must be at least one input pin; TRUE indicates at least one input pin is required.

[in] clsInMaj

Input major type required. Set to GUID_NULL if you do not care.

[in] clsInSub

Input subtype required. Set to GUID_NULL if you do not care.

[in] bRender

Flag that specifies whether the filter must render the input; TRUE means that it must.

[in] bOututNeeded

Value indicating whether there must be at least one output pin; TRUE indicates at least one output pin is required.

[in] clsOutMaj

Output major type required. Set to GUID_NULL if you do not care.

[in] clsOutSub

Output subtype required. Set to GUID_NULL if you do not care.

Return value

Returns an HRESULT value.

Remarks

Set the ppEnum parameter to be an enumerator for filters matching the requirements. For a description of merit values for the dwMerit parameter, see the IFilterMapper::RegisterFilter method.

Requirements

Requirement Value
Target Platform Windows
Header strmif.h (include Dshow.h)

See also

Error and Success Codes

IFilterMapper Interface