IMFPluginControl::GetPreferredClsid method (mfobjects.h)

Searches the preferred list for a class identifier (CLSID) that matches a specified key name.

Syntax

HRESULT GetPreferredClsid(
  [in]  DWORD   pluginType,
  [in]  LPCWSTR selector,
  [out] CLSID   *clsid
);

Parameters

[in] pluginType

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

[in] selector

The key name to match. For more information about the format of key names, see the Remarks section of IMFPluginControl.

[out] clsid

Receives a CLSID from the preferred 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.
HRESULT_FROM_WIN32(ERROR_NOT_FOUND)
No CLSID matching this key was found.

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