📄 main.cpp
字号:
/*+++ *******************************************************************\
*
* 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.
*
\******************************************************************* ---*/
#include "KsPlugin.h" // needed to find CKsPlugin::CreateInstance
// {0A7AF963-6805-4f99-B284-29B680975542}
static const GUID PROPSETID_CX_COPY_PROTECT =
{ 0xa7af963, 0x6805, 0x4f99, { 0xb2, 0x84, 0x29, 0xb6, 0x80, 0x97, 0x55, 0x42 } };
// CX Copy Protection Property Set.
enum{
CX_COPY_PROTECT_STATUS
};
// COM global table of objects available in this dll
CFactoryTemplate g_Templates[] =
{
{
L"Copy Protection Notification Filter",
&PROPSETID_CX_COPY_PROTECT,
CKsPlugin::CreateInstance
}
};
int g_cTemplates = sizeof(g_Templates) / sizeof(g_Templates[0]);
/**
* Exported entry point for DLL (component) registration
*
* @return
*/
STDAPI DllRegisterServer()
{
DbgLog((LOG_TRACE,
0,
TEXT("Registering copy protection notification KS plugin")
));
return AMovieDllRegisterServer2( TRUE );
}
/**
* Exported entry point for DLL (component) un-registration
*
* @return
*/
STDAPI DllUnregisterServer()
{
DbgLog((LOG_TRACE,
0,
TEXT("Unregistering copy protection notification KS plugin")
));
return AMovieDllRegisterServer2( FALSE );
}
extern "C" BOOL WINAPI DllEntryPoint(HINSTANCE, ULONG, LPVOID);
extern "C" BOOL WINAPI DllMain(HINSTANCE hInst, DWORD dwReason, LPVOID pReserved)
{
return DllEntryPoint(hInst, dwReason, pReserved);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -