Freigeben über


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
);

Parameter

  • 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.

Rückgabewert

Ist Funktion erfolgreich, wird "S_OK" zurückgegeben. Andernfalls wird ein HRESULT-Fehlercode zurückgegeben.

Anforderungen

Mindestens unterstützter Client

Windows Vista

Mindestens unterstützter Server

Windows Server 2008

Header

Mfapi.h

Bibliothek

Mfplat.lib

DLL

Mfplat.dll

Siehe auch

Media Foundation Functions

Media Foundation Transforms

Registering and Enumerating MFTs

MFTEnum

MFTRegister