📄 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) 2008 Conexant Systems, Inc.
* All rights reserved.
*
\******************************************************************* ---*/
#include <streams.h>
#include <stdio.h>
#include <commctrl.h>
#include "InterfaceControl.h"
#include "Configselect.h"
// COM global table of objects available in this dll
CFactoryTemplate g_Templates[] =
{
{
L"Alt Setting Property",
&INTERFACE_CONTROL_PAGE_GUID,
InterfaceControl::CreateInstance
},
{
L"Configuration Select Property",
&CONFIG_SET_PAGE_GUID,
Configselect::CreateInstance
}
};
int g_cTemplates = sizeof(g_Templates) / sizeof(g_Templates[0]);
//**********************************************************************
// exported entry points for registration and
// unregistration (in this case they only call
// through to default implmentations).
//**********************************************************************
STDAPI DllRegisterServer()
{
return AMovieDllRegisterServer2( TRUE );
}
STDAPI DllUnregisterServer()
{
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 + -