Share via


IAMStreamSelect::Enable

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

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

Windows Embedded CE Windows CE 2.12 and later
Windows Mobile Windows Mobile Version 5.0 and later
Note Microsoft DirectShow applications and DirectShow filters have different include file and Library requirements
For more information, see Setting Up the Build Environment, Version 2.12 requires DXPAK 1.0 or later