IAMStreamSelect::Enable method (strmif.h)

The Enable method enables or disables a given stream.

Syntax

HRESULT Enable(
  [in] long  lIndex,
  [in] DWORD dwFlags
);

Parameters

[in] lIndex

Zero-based index of the stream.

[in] dwFlags

Flag indicating whether to enable or disable the stream. Use one of the following values.

Value Description
Zero Disable all streams in the group containing this stream.
AMSTREAMSELECTENABLE_ENABLE Enable only this stream within the given group and disable all others.
AMSTREAMSELECTENABLE_ENABLEALL Enable all streams in the group containing this stream.

Return value

Returns an HRESULT value. Possible values include the following.

Return code Description
E_FAIL
Failure.
E_INVALIDARG
Invalid stream ID.
E_NOTIMPL
The filter does not support the specified flag.
S_OK
Success.
VFW_E_NOT_CONNECTED
The pins are not connected.

Requirements

   
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

See also

Error and Success Codes

IAMStreamSelect Interface