Filters.Add method

Appends or inserts a new Filter of the specified FilterID into a Filters collection.

Syntax

Filters.Add( _
  ByVal FilterID As BSTR, _
  [ ByVal Index As LONG ] _
) As HRESULT

Parameters

FilterID [in]

Type: BSTR

Required. String value.

Index [in, optional]

Type: LONG

Long value.

Value Meaning
0
Default.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

For example code, see Display all the Properties for the Selected Device in Shared Samples.

Requirements

Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 R2 [desktop apps only]
Header
Wiaaut.h
IDL
Wiaaut.idl

See also

Reference

FilterID (Filter)

FilterID (FilterInfo)

Filters