DLLSetup.cpp

Go to the documentation of this file.
00001 
00034 #include "stdafx.h"
00035 #include "Tee.h"
00036 
00038 //###############################  Standard Filter DLL Code ###############################
00039 static const WCHAR g_wszName[] = L"Meraka RTVC Tee Filter";   
00040 
00041 // The next bunch of structures define information for the class factory.
00042 AMOVIESETUP_FILTER FilterInfo =
00043 {
00044         &CLSID_RtvcTee, // CLSID
00045         g_wszName,                                                      // Name
00046         MERIT_DO_NOT_USE,                                       // Merit
00047         0,                                                                      // Number of AMOVIESETUP_PIN structs
00048         NULL                                                            // Pin registration information.
00049 };
00050 
00051 CFactoryTemplate g_Templates[1] = 
00052 {
00053         { 
00054                 g_wszName,                                              // Name
00055                 &CLSID_RtvcTee,                                 // CLSID
00056                 CRtvcTee::CreateInstance,               // Method to create an instance of MyComponent
00057                 NULL,                                                   // Initialization function
00058                 &FilterInfo                                             // Set-up information (for filters)
00059         }
00060 };
00061 int g_cTemplates = sizeof(g_Templates) / sizeof(g_Templates[0]);   
00062 
00064 // Functions needed by the DLL, for registration.
00065 
00066 STDAPI DllRegisterServer(void)
00067 {
00068         return AMovieDllRegisterServer2(TRUE);
00069 }
00070 
00071 STDAPI DllUnregisterServer()
00072 {
00073         return AMovieDllRegisterServer2(FALSE);
00074 }
00075 
00076 //DLL Entry point
00077 extern "C" BOOL WINAPI DllEntryPoint(HINSTANCE, ULONG, LPVOID);
00078 BOOL APIENTRY DllMain(HANDLE hModule, DWORD dwReason, LPVOID lpReserved)
00079 {
00080         return DllEntryPoint((HINSTANCE)(hModule), dwReason, lpReserved);
00081 }

Generated on Fri Mar 13 14:12:38 2009 for RTVC by  doxygen 1.5.3