Partager via


IMultiMediaStream::EnumMediaStreams (Windows Embedded CE 6.0)

1/6/2010

This method retrieves a media stream from a multimedia stream by zero-based index.

Syntax

HRESULT EnumMediaStreams(
  long Index,
  IMediaStream** ppMediaStream
);

Parameters

  • Index
    [in] Index of the stream array to check.
  • ppMediaStream
    [out] Address of a pointer to an IMediaStream interface object. On return, it contains a pointer to the stream at the specified index.

Return Value

Returns one of the following values.

Value Description

E_POINTER

The ppMediaStream pointer is invalid.

S_FALSE

Index is out of range; no streams are left to enumerate.

When the method returns this value, it also sets ppMediaStream to NULL.

S_OK

Success.

Remarks

You should call this method until it returns S_FALSE, which indicates that the stream enumeration is complete.

Requirements

Windows Embedded CE Windows CE 2.12 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

See Also

Reference

IMultiMediaStream Interface