main.cpp

来自「完整的基于Conxant平台的USB电视棒的WIN驱动程序。」· C++ 代码 · 共 63 行

CPP
63
字号
/*+++ *******************************************************************\ 
* 
*  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 + =
减小字号Ctrl + -
显示快捷键?