重要
某些信息与预发行产品有关,该产品在商业发布之前可能会进行大幅修改。 Microsoft对此处提供的信息不作任何明示或暗示的保证。
返回内置于 Windows 的指定密钥系统的 IMFContentDecryptionModuleFactory 的实现。
语法
HRESULT GetDefaultContentDecryptionModuleFactory(
  [in]  PCWSTR                            keySystem,
  [out] IMFContentDecryptionModuleFactory **contentDecryptionModuleFactory
);
参数
[in] keySystem
一个 PCWSTR,用于标识为其返回解密模块的密钥系统。
[out] contentDecryptionModuleFactory
如果找到指定的密钥系统,则接收指向 IMFContentDecryptionModuleFactory 实现的指针;否则为 NULL。
返回值
HRESULT,包括以下值:
| 价值 | 描述 | 
|---|---|
| S_OK | 成功。 即使找不到指定的键系统,此函数也会返回成功,但在这种情况下,contentDecryptionModuleFactory 参数为 NULL。 | 
| CO_E_NOTINITIALIZED | 在调用函数之前未初始化 COM | 
言论
GetDefaultContentDescryptionModuleFactory 仅考虑内置于 Windows 的内容解密模块工厂,并且不考虑从 Microsoft 应用商店下载的内容解密模块工厂。
建议应用使用 IMFMediaEngineClassFactory4::CreateContentDecryptionModuleFactory,因为此方法首先调用 GetDefaultContentDecryptionModuleFactory,但还会搜索从 Microsoft Store 下载 IMFContentDecryptionModuleFactory 的任何匹配实现。
要求
| 要求 | 价值 | 
|---|---|
| 最低支持的客户端 | Windows 11 版本 24H2 | 
| 标头 | comppkgsup.h | 
| 库 | Comppkgsup.lib | 
| DLL | Comppkgsup.dll |