共用方式為


IAMAnalogVideoEncoder::get_CopyProtection 方法 (strmif.h)

[與此頁面 相關的功能 DirectShow 是舊版功能。 它已被 MediaPlayerIMFMediaEngineMedia Foundation 中的音訊/視訊擷取取代。 這些功能已針對 Windows 10 和 Windows 11 進行優化。 Microsoft 強烈建議新程式代碼盡可能使用 MediaPlayerIMFMediaEngine音訊/視訊擷取 ,而不是 DirectShow。 Microsoft 建議盡可能重寫使用舊版 API 的現有程式代碼,以使用新的 API。]

注意IAMAnalogVideoEncoder 介面已被取代。
 
方法 get_CopyProtection 會判斷編碼器上目前是否啟用複製保護。

語法

HRESULT get_CopyProtection(
  [out] long *lVideoCopyProtection
);

參數

[out] lVideoCopyProtection

指定要接收目前複製保護層級之 整數的指標,如 AM_COPY_MACROVISION_LEVEL 列舉中所定義。

傳回值

當此方法成功時,它會傳回S_OK。 否則會傳回 HRESULT

規格需求

需求
目標平台 Windows
標頭 strmif.h (包含 Dshow.h)

另請參閱

錯誤和成功碼

IAMAnalogVideoEncoder 介面