IMFLocalMFTRegistration::RegisterMFTs method (mfidl.h)

Registers one or more Media Foundation transforms (MFTs) in the caller's process.

Syntax

HRESULT RegisterMFTs(
  [in] MFT_REGISTRATION_INFO *pMFTs,
  [in] DWORD                 cMFTs
);

Parameters

[in] pMFTs

A pointer to an array of MFT_REGISTRATION_INFO structures.

[in] cMFTs

The number of elements in the pMFTs array.

Return value

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

Remarks

This method is similar to the MFTRegisterLocalByCLSID function. It registers one or more MFTs in the caller's process. These MFTs can be enumerated by calling the MFTEnumEx function with the MFT_ENUM_FLAG_LOCALMFT flag.

Unlike MFTRegisterLocalByCLSID, however, this method also makes the MFT available in the Protected Media Path (PMP) process, and is therefore useful if you are using the Media Session inside the PMP. For more information, see the following topics:

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 mfidl.h

See also

IMFLocalMFTRegistration