IMFASFProfile::CreateStream method (wmcontainer.h)

Creates an Advanced Systems Format (ASF) stream configuration object.

Syntax

HRESULT CreateStream(
  [in]  IMFMediaType       *pIMediaType,
  [out] IMFASFStreamConfig **ppIStream
);

Parameters

[in] pIMediaType

Pointer to the IMFMediaType interface of a configured media type.

[out] ppIStream

Receives a pointer to the IMFASFStreamConfig interface of the new ASF stream configuration object. The caller must release the interface.

Return value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK
The method succeeded.
E_INVALIDARG
ppIStream is NULL.
E_OUTOFMEMORY
stream configuration object could not be created due to insufficient memory.

Remarks

The ASF stream configuration object created by this method is not included in the profile. To include the stream, you must first configure the stream configuration and then call IMFASFProfile::SetStream.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header wmcontainer.h
Library Mfuuid.lib

See also

ASF Profile

IMFASFProfile

IMFASFStreamConfig

IMFMediaType