DLLSetup.cpp

Go to the documentation of this file.
00001 
00034 #include "stdafx.h"
00035 
00036 #include "CropFilter.h"
00037 #include "CropProperties.h"
00038 
00039 #ifdef _MANAGED
00040 #pragma managed(push, off)
00041 #endif
00042 
00044 //###############################  Standard Filter DLL Code ###############################
00045 static const WCHAR g_wszName[] = L"Meraka RTVC Crop Filter";   
00046 
00047 // The next bunch of structures define information for the class factory.
00048 AMOVIESETUP_FILTER FilterInfo =
00049 {
00050         &CLSID_CropFilter, // CLSID
00051         g_wszName,                                                      // Name
00052         MERIT_DO_NOT_USE,                                       // Merit
00053         0,                                                                      // Number of AMOVIESETUP_PIN structs
00054         NULL                                                            // Pin registration information.
00055 };
00056 
00057 
00058 CFactoryTemplate g_Templates[] = 
00059 {
00060         { 
00061                 g_wszName,                                                      // Name
00062                         &CLSID_CropFilter, // CLSID
00063                         CCropFilter::CreateInstance,    // Method to create an instance of MyComponent
00064                         NULL,                                                           // Initialization function
00065                         &FilterInfo                                                     // Set-up information (for filters)
00066         },
00067         // This entry is for the property page.
00068         { 
00069                 L"Crop Properties",
00070                 &CLSID_CropProperties,
00071                 CropProperties::CreateInstance, 
00072                 NULL, NULL
00073         }
00074 };
00075 int g_cTemplates = sizeof(g_Templates) / sizeof(g_Templates[0]);   
00076 
00078 // Functions needed by the DLL, for registration.
00079 
00080 STDAPI DllRegisterServer(void)
00081 {
00082         return AMovieDllRegisterServer2(TRUE);
00083 }
00084 
00085 STDAPI DllUnregisterServer()
00086 {
00087         return AMovieDllRegisterServer2(FALSE);
00088 }
00089 
00091 //DLL Entry point
00092 extern "C" BOOL WINAPI DllEntryPoint(HINSTANCE, ULONG, LPVOID);
00093 BOOL APIENTRY DllMain(HANDLE hModule, DWORD dwReason, LPVOID lpReserved)
00094 {
00095         return DllEntryPoint((HINSTANCE)(hModule), dwReason, lpReserved);
00096 }
00097 
00098 #ifdef _MANAGED
00099 #pragma managed(pop)
00100 #endif

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