📄 copyprotection.h
字号:
/*+++ *******************************************************************\
*
* 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -