IFilterMapper2::UnregisterFilter 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.]
The UnregisterFilter
method removes filter information from the registry.
Syntax
HRESULT UnregisterFilter(
[in] const CLSID *pclsidCategory,
[in] LPCOLESTR szInstance,
[in] REFCLSID Filter
);
Parameters
[in] pclsidCategory
Address of a GUID that specifies the filter category from which to remove the filter. For a list of categories, see Filter Categories.
[in] szInstance
Instance data used to construct the device moniker's display name. Use the value that was originally passed to the RegisterFilter method.
[in] Filter
Class identifier (CLSID) of the filter.
Return value
Returns S_OK if successful, or an HRESULT value indicating the cause of the error.
Remarks
If the filter was not registered, the method might return an error.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | strmif.h (include Dshow.h) |
Library | Strmiids.lib |