IMFPluginControl::SetDisabled method (mfobjects.h)

Adds a class identifier (CLSID) to the blocked list, or removes a CLSID from the list.

Syntax

HRESULT SetDisabled(
  [in] DWORD    pluginType,
  [in] REFCLSID clsid,
  [in] BOOL     disabled
);

Parameters

[in] pluginType

Member of the MF_Plugin_Type enumeration, specifying the type of object.

[in] clsid

The CLSID to add or remove.

[in] disabled

Specifies whether to add or remove the CSLID. If the value is TRUE, the method adds the CLSID to the blocked list. Otherwise, the method removes it from the list.

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
Invalid argument.

Remarks

The blocked list is global to the caller's process. Calling this method does not affect the list in other processes.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Target Platform Windows
Header mfobjects.h (include Mfidl.h)

See also

IMFPluginControl