Microsoft DirectX 8.1 (C++) |
The Enable 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 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.
See Also