IAMPluginControl::GetPreferredClsidByIndex method

Gets a class identifier (CLSID) from the preferred list, specified by index value.

Syntax


HRESULT GetPreferredClsidByIndex(
  [in]  DWORD index,
  [out] GUID  *subType,
  [out] CLSID *clsid
);

Parameters

index [in]

The zero-based index of the CLSID to retrieve.

subType [out]

Receives the subtype GUID associated with the CLSID.

clsid [out]

Receives the CLSID at the specified index.

Return value

This method can return one of these values.

Return codeDescription
S_OK

The method succeeded.

HRESULT_FROM_WIN32(ERROR_NO_MORE_ITEMS)

The index parameter is out of range.

 

Requirements

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

Strmif.h (include Dshow.h)

See also

Intelligent Connect
IAMPluginControl

 

 

Show: