IMFASFProfile::AddMutualExclusion method (wmcontainer.h)

Adds a configured Advanced Systems Format (ASF) mutual exclusion object to the profile.

Syntax

HRESULT AddMutualExclusion(
  [in] IMFASFMutualExclusion *pIMutex
);

Parameters

[in] pIMutex

Pointer to the IMFASFMutualExclusion interface of a configured ASF mutual exclusion object.

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.

Remarks

You can create a mutual exclusion object by calling the IMFASFProfile::CreateMutualExclusion method.

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

IMFASFMutualExclusion

IMFASFProfile

IMFASFProfile::GetMutualExclusion

IMFASFProfile::RemoveMutualExclusion