Share via


IAMStreamSelect::Enable (Compact 2013)

3/26/2014

This method enables or disables a given stream.

Syntax

HRESULT Enable(
  long lIndex,
  DWORD dwFlags
);

Parameters

  • lIndex
    [in] Index number of desired stream. Zero-based.
  • dwFlags
    [in] Flag indicating whether to enable or disable the stream. Valid values include the following.

    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 that depends on the implementation of the interface. The current DirectShow implementation returns E_NOTIMPL if support for the specified flag has not been implemented, E_INVALIDARG if the stream ID is invalid, or S_OK otherwise.

Requirements

Header

dshow.h

Library

Strmiids.lib

See Also

Reference

IAMStreamSelect Interface