DLLSetup.cpp

Go to the documentation of this file.
00001 
00034 #include "stdafx.h"
00035 #include "ScaleFilter.h"
00036 #include "ScaleProperties.h"
00038 //###############################  Standard Filter DLL Code ###############################
00039 static const WCHAR g_wszName[] = L"Meraka RTVC Scale Filter";   
00040 
00041 // The next bunch of structures define information for the class factory.
00042 AMOVIESETUP_FILTER FilterInfo =
00043 {
00044         &CLSID_ScaleFilter, // 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[] = 
00052 {
00053         { 
00054                 g_wszName,                                              // Name
00055                 &CLSID_ScaleFilter,                             // CLSID
00056                 CScaleFilter::CreateInstance,   // Method to create an instance of MyComponent
00057                 NULL,                                                   // Initialization function
00058                 &FilterInfo                                             // Set-up information (for filters)
00059         },
00060         // This entry is for the property page.
00061         { 
00062                 L"Scale Properties",
00063                 &CLSID_ScaleProperties,
00064                 ScaleProperties::CreateInstance, 
00065                 NULL, NULL
00066         }
00067 };
00068 
00069 int g_cTemplates = sizeof(g_Templates) / sizeof(g_Templates[0]);   
00070 
00072 // Functions needed by the DLL, for registration.
00073 
00074 STDAPI DllRegisterServer(void)
00075 {
00076         return AMovieDllRegisterServer2(TRUE);
00077 }
00078 
00079 STDAPI DllUnregisterServer()
00080 {
00081         return AMovieDllRegisterServer2(FALSE);
00082 }
00083 
00084 //DLL Entry point
00085 extern "C" BOOL WINAPI DllEntryPoint(HINSTANCE, ULONG, LPVOID);
00086 BOOL APIENTRY DllMain(HANDLE hModule, DWORD dwReason, LPVOID lpReserved)
00087 {
00088         return DllEntryPoint((HINSTANCE)(hModule), dwReason, lpReserved);
00089 }

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