建立 IMFContentDecryptionModule ,代表 DRM 金鑰系統的內容解密模組 (CDM) 。
語法
HRESULT CreateContentDecryptionModule(
IPropertyStore *contentDecryptionModuleProperties,
IMFContentDecryptionModule **contentDecryptionModule
);
參數
contentDecryptionModuleProperties
IPropertyStore物件,其中包含 CDM 的屬性。
contentDecryptionModule
接收建立的 IMFContentDecryptionModule 物件。
傳回值
傳回成功時S_OK。
備註
contentDecryptionModuleProperties參數支援下列屬性。
| 屬性 | 描述 |
|---|---|
| MF_CONTENTDECRYPTIONMODULE_INPRI加值稅ESTOREPATH | 檔案路徑,代表內容解密模組 (CDM) 可用於內容特定資料的儲存位置。 |
| MF_CONTENTDECRYPTIONMODULE_STOREPATH | 檔案路徑,代表內容解密模組 (CDM) 可用於初始化的儲存位置。 如果未設定 MF_CONTENTDECRYPTIONMODULE_INPRI加值稅ESTOREPATH 屬性,使用此屬性指定的路徑也會用於內容特定資料。 |
需求
| 最低支援的用戶端 | Windows 10版本 2004 (10.0;組建 19041) |
| 最低支援的伺服器 | Windows Server 版本 2004 (10.0;組建 19041) |
| 標頭 | mfcontentdecryptionmodule.h |