IMFPluginControl::SetDisabled method

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

Syntax

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

Parameters

pluginType

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

clsid

The CLSID to add or remove.

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

   
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