Partager via


IFilterGraph::RemoveFilter (Compact 2013)

3/26/2014

This method removes a filter from the graph.

Syntax

HRESULT RemoveFilter(
  IBaseFilter* pFilter
);

Parameters

  • pFilter
    [in] Pointer to the filter to be removed from the graph.

Return Value

Returns an HRESULT value that depends on the implementation. HRESULT can be one of the following standard constants, or other values not listed.

Value

Description

E_FAIL

Failure.

E_POINTER

Null pointer argument.

E_INVALIDARG

Invalid argument.

E_NOTIMPL

Method is not supported.

S_OK or NOERROR

Success.

Remarks

The filter graph implementation informs the filter that it is being removed by calling the IBaseFilter::JoinFilterGraph method with a NULL argument.

Requirements

Header

dshow.h

Library

Strmiids.lib

See Also

Reference

IFilterGraph Interface