ISBE2MediaTypeProfile::GetStream Method

[This documentation is preliminary and is subject to change.]
Gets the media type of a stream, specified by its index in the profile.

Syntax

HRESULT GetStream(
  [in]   DWORD Index,
  [out]  AM_MEDIA_TYPE **ppMediaType
);

Parameters

  • Index [in]
    The index of the stream. To get the number of the streams in the profile, call the ISBE2MediaTypeProfile::GetStreamCount method.

  • ppMediaType [out]
    Receives a pointer to an AM_MEDIA_TYPE structure. The caller must not modify this structure or free the memory for the structure.

Return Value

The method can return one of the following values.

Return code Description

S_OK

The method succeeded.

E_INVALIDARG

Invalid parameter.

Requirements

Client Requires Windows 7.
Header Declared in Sbe.h.
IDL Declared in Sbe.idl.
DLL Requires Sbe.dll.

See Also

ISBE2MediaTypeProfile

Send comments about this topic to Microsoft

Build date: 12/4/2008