Condividi tramite


IWMMutualExclusion 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 IWMMutualExclusion interface represents a group of streams, of which only one at a time can be played.

IWMMutualExclusion is the base interface for mutual exclusion objects. You can create a mutual exclusion object only as part of a profile. Never use COM functions, such as CoCreateInstance, to create a mutual exclusion object. Instead, you must already have a profile opened and make a call to its IWMProfile::CreateNewMutualExclusion method. After a mutual exclusion object has been created, you can change the type of mutual exclusion by using the methods in this interface.

You can manage the streams in a mutual exclusion object using the methods of the IWMStreamList interface. IWMMutualExclusion inherits from IWMStreamList, so those methods are directly available in this interface.

Inheritance

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

Methods

The IWMMutualExclusion interface has these methods.

 
IWMMutualExclusion::GetType

The GetType method retrieves the GUID of the type of mutual exclusion required.
IWMMutualExclusion::SetType

The SetType method specifies the GUID of the type of mutual exclusion required.

Requirements

Requirement Value
Target Platform Windows
Header wmsdkidl.h

See also

IWMProfileManager Interface

IWMStreamList

Interfaces

Profile Manager Object