IMFPluginControl::SetDisabled method

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

pluginType [in]

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

clsid [in]

The CLSID to add or remove.

disabled [in]

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 codeDescription
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]

Header

Mfobjects.h (include Mfidl.h)

See also

IMFPluginControl

 

 

Show: