Windows Dev Center

IAMStreamSelect::Enable method

The Enable method enables or disables a given stream.

Syntax


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

Parameters

lIndex [in]

Zero-based index of the stream.

dwFlags [in]

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

Value Description
ZeroDisable all streams in the group containing this stream.
AMSTREAMSELECTENABLE_ENABLEEnable only this stream within the given group and disable all others.
AMSTREAMSELECTENABLE_ENABLEALLEnable all streams in the group containing this stream.

 

Return value

Returns an HRESULT value. Possible values include the following.

Return codeDescription
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]

Header

Strmif.h (include Dshow.h)

Library

Strmiids.lib

See also

Error and Success Codes
IAMStreamSelect Interface

 

 

Community Additions

ADD
Show:
© 2015 Microsoft