IAMStreamSelect::Enable

This method enables or disables a given stream.

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 Values

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

DirectShow applications and DirectShow filters have different include file and link library requirements. See Setting Up the Build Environment for more information.

OS Versions: Windows CE 2.12 and later. Version 2.12 requires DXPAK 1.0 or later.
Header:

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.