Export (0) Print
Expand All
Expand Minimize

MFTGetInfo function

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

Syntax


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

Parameters

clsidMFT [in]

The CLSID of the MFT.

pszName [out]

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 [out]

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 [out]

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

ppOutputTypes [out]

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 [out]

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

ppAttributes [out]

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]

Header

Mfapi.h

Library

Mfplat.lib

DLL

Mfplat.dll

See also

Media Foundation Functions
Media Foundation Transforms
Registering and Enumerating MFTs
MFTEnum
MFTRegister

 

 

Community Additions

ADD
Show:
© 2014 Microsoft