copyprotection.h
来自「完整的基于Conxant平台的USB电视棒的WIN驱动程序。」· C头文件 代码 · 共 46 行
H
46 行
/*+++ *******************************************************************\
*
* Copyright and Disclaimer:
*
* ---------------------------------------------------------------
* This software is provided "AS IS" without warranty of any kind,
* either expressed or implied, including but not limited to the
* implied warranties of noninfringement, merchantability and/or
* fitness for a particular purpose.
* ---------------------------------------------------------------
*
* Copyright (c) 2004 Conexant Systems, Inc.
* All rights reserved.
*
\******************************************************************* ---*/
// This class handles the details of detecting copy protection, walking the
// graph, and notifying anyone who is handles the copy protection status
// 'Set' method
#ifndef COPY_PROTECTION_H
#define COPY_PROTECTION_H
#include <vector>
#include "Provider.h"
class CCopyProtection
{
public:
CCopyProtection(IBaseFilter* p_filter);
virtual ~CCopyProtection();
HRESULT createFilterList();
HRESULT destroyFilterList();
DWORD detectStatus();
HRESULT broadcastStatus();
private:
std::vector<IKsPropertySet*> _observers;
DWORD _prev_cp_bits; // Last copy protect status distributed
IBaseFilter* _p_filter; // Pointer to containing filter
CProvider* _provider;
} ;
#endif // COPY_PROTECTION_H
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?