Partager via


IMSVidGenericSink2::AddFilter

 
Microsoft DirectShow 9.0

IMSVidGenericSink2::AddFilter

This topic applies to Update Rollup 2 for Microsoft Windows XP Media Center Edition 2005.

The AddFilter method specifies a DirectShow filter that is added to the graph when this segment is built.

Syntax

  HRESULT AddFilter(
  BSTR  bstrCLSID
);

Parameters

bstrCLSID

BSTR that contains the CLSID of the filter. The BSTR must use the following format: {XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}

Return Values

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK The method succeeded.

Remarks

Use this method to insert additional filters to the graph other than the sink filter. To specify the sink filter, call IMSVidGenericSink::SetSinkFilter.

See Also