Share via


IWMMutualExclusion2 interface (wmsdkidl.h)

[The feature associated with this page, Windows Media Format 11 SDK, is a legacy feature. It has been superseded by Source Reader and Sink Writer. Source Reader and Sink Writer have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use Source Reader and Sink Writer instead of Windows Media Format 11 SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The IWMMutualExclusion2 interface provides advanced configuration features for mutual exclusion objects.

This interface supports both multiple languages and advanced mutual exclusion.

An IWMMutualExclusion2 interface is created for each mutual exclusion object created. To retrieve a pointer to an IWMMutualExclusion2 interface, call the QueryInterface method of the IWMMutualExclusion interface returned by IWMProfile::CreateNewMutualExclusion.

Inheritance

The IWMMutualExclusion2 interface inherits from IWMMutualExclusion. IWMMutualExclusion2 also has these types of members:

Methods

The IWMMutualExclusion2 interface has these methods.

 
IWMMutualExclusion2::AddRecord

The AddRecord method adds a record to the mutual exclusion object.
IWMMutualExclusion2::AddStreamForRecord

The AddStreamForRecord method adds a stream to a record created with IWMMutualExclusion2::AddRecord.
IWMMutualExclusion2::GetName

The GetName method retrieves the name of the current mutual exclusion object. A mutual exclusion object has a name only if a name has been assigned using the IWMMutualExclusion2::SetName method.
IWMMutualExclusion2::GetRecordCount

The GetRecordCount method retrieves the number of records present in the mutual exclusion object.
IWMMutualExclusion2::GetRecordName

The GetRecordName method retrieves the name of the specified record. A record has a name only if a name has been assigned using the IWMMutualExclusion2::SetRecordName method.
IWMMutualExclusion2::GetStreamsForRecord

The GetStreamsForRecord method retrieves the list of streams that are present in a record.
IWMMutualExclusion2::RemoveRecord

The RemoveRecord method removes a record from the mutual exclusion object.
IWMMutualExclusion2::RemoveStreamForRecord

The RemoveStreamForRecord method removes a stream from a record's list.
IWMMutualExclusion2::SetName

The SetName method assigns a name to a mutual exclusion object.
IWMMutualExclusion2::SetRecordName

The SetRecordName method assigns a name to a record. You should assign a name to every record so that you can easily identify the records in the future.

Requirements

Requirement Value
Target Platform Windows
Header wmsdkidl.h

See also

IWMMutualExclusion Interface

Mutual Exclusion Object