MFTGetInfo function

Gets information from the registry about a Media Foundation transform (MFT).

Syntax

HRESULT MFTGetInfo(
  CLSID                  clsidMFT,
  LPWSTR                 *pszName,
  MFT_REGISTER_TYPE_INFO **ppInputTypes,
  UINT32                 *pcInputTypes,
  MFT_REGISTER_TYPE_INFO **ppOutputTypes,
  UINT32                 *pcOutputTypes,
  IMFAttributes          **ppAttributes
);

Parameters

clsidMFT

The CLSID of the MFT.

pszName

Receives a pointer to a wide-character string containing the friendly name of the MFT. The caller must free the string by calling CoTaskMemFree. This parameter can be NULL.

ppInputTypes

Receives a pointer to an array of MFT_REGISTER_TYPE_INFO structures. Each member of the array describes an input format that the MFT supports. The caller must free the array by calling CoTaskMemFree. This parameter can be NULL.

pcInputTypes

Receives the number of elements in the ppInputTypes array. If ppInputTypes is NULL, this parameter is ignored and can be NULL.

ppOutputTypes

Receives a pointer to an array of MFT_REGISTER_TYPE_INFO structures. Each member of the array describes an output format that the MFT supports. The caller must free the array by calling CoTaskMemFree. This parameter can be NULL.

pcOutputTypes

Receives the number of elements in the ppOutputType array. If ppOutputTypes is NULL, this parameter is ignored and can be NULL.

ppAttributes

Receives a pointer to the IMFAttributes interface of an attribute store. The caller must release the interface. The attribute store might contain attributes that are stored in the registry for the specified MFT. (For more information, see MFTRegister.) If no attributes are stored in the registry for this MFT, the attribute store is empty.

This parameter can be NULL.

Return Value

If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

   
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header mfapi.h
Library Mfplat.lib
DLL Mfplat.dll

See Also

MFTEnum

MFTRegister

Media Foundation Functions

Media Foundation Transforms

Registering and Enumerating MFTs