Microsoft DirectX 9.0

IMultiMediaStream::EnumMediaStreams

The EnumMediaStreams method retrieves a media stream object, specified by index.

Syntax

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

Parameters

Index

[in] Zero-based index of the media stream to retrieve.

ppMediaStream

[out] Address of a variable that receives an IMediaStream interface pointer.

Return Values

Returns an HRESULT value. Possible values include the following.

Return code Description
E_POINTER NULL pointer argument.
S_FALSE Index is out of range.
S_OK Success.

Remarks

If the return value is S_OK, the caller must release the IMediaStream interface.

See Also