IMFASFMutualExclusion::AddStreamForRecord method (wmcontainer.h)

Adds a stream number to a record in the Advanced Systems Format mutual exclusion object.

Syntax

HRESULT AddStreamForRecord(
  [in] DWORD dwRecordNumber,
  [in] WORD  wStreamNumber
);

Parameters

[in] dwRecordNumber

The record number to which the stream is added. A record number is set by the IMFASFMutualExclusion::AddRecord method.

[in] wStreamNumber

The stream number to add to the record.

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.
MF_E_INVALIDREQUEST
The specified stream number is already associated with the record.

Remarks

Each record includes one or more streams. Every stream in a record is mutually exclusive of all streams in every other record.

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

IMFASFMutualExclusion

IMFASFMutualExclusion::GetStreamsForRecord

IMFASFMutualExclusion::RemoveStreamFromRecord

Using Mutual Exclusion for ASF Streams