MFTUnregisterLocal 函数 (mfapi.h)

从调用方的进程中注销一个或多个媒体基础转换(MFT)。

Syntax

HRESULT MFTUnregisterLocal(
  [in] IClassFactory *pClassFactory
);

参数

[in] pClassFactory

指向类工厂对象的 IClassFactory 接口的指针。 此参数可以 NULL

返回值

该函数返回 HRESULT。 可能的值包括但不限于下表中的值。

返回代码 Description
S_OK
方法成功。
HRESULT_FROM_WIN32(ERROR_NOT_FOUND)
pClassFactory 参数指定的 MFT 未在此进程中注册。

注解

使用此函数取消注册以前通过 MFTRegisterLocal 函数注册的本地 MFT。

如果 pClassFactory 参数为 NULL,则会取消注册进程中的所有本地 MFT。 否则,该函数将取消注册与 pClassFactory 参数指定的类工厂关联的 MFT。 在这种情况下, pClassFactory 参数应等于以前传递给 MFTRegisterLocal 函数的指针值。

要求

Requirement 价值
最低支持的客户端 Windows 7 [仅限桌面应用]
支持的最低服务器 Windows Server 2008 R2 [仅限桌面应用]
目标平台 Windows操作系统
Header mfapi.h
Library Mfplat.lib
DLL Mfplat.dll

另请参阅

Media Foundation Functions