/** @file ws_plugin_src.cpp * * @brief Defines the entry point for the DLL application. * * * @see vetFilterSample * * @version 1.0. * @date 28/10/2005 * @author Alessandro Polo * * **************************************************************************** * VETLib Framework 1.0.2 * Copyright (C) Alessandro Polo 2005 * http://www.ewgate.net/vetlib * ****************************************************************************/ ////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////// DO NOT EDIT FOLLOWING //////////////////////////////////////////////////////// DO NOT EDIT FOLLOWING ////////////////////////////////////////////////////////////////////////////// /* DLL NATIVE & PLUGIN SYSTEM FUNCTIONS */ //#include #include "WS_DLL_13.h" #include "ws_plugin_def.h" #include "ws_plugin_func.h" extern VETPLUGIN_CLASSNAME* vetClassHistance; WS_DLL_13_API void* constructInstance(void) { vetClassHistance = NULL; vetClassHistance = new VETPLUGIN_CLASSNAME(); return static_cast(vetClassHistance); } WS_DLL_13_API void destructInstance(void) { if (vetClassHistance) delete vetClassHistance; } #define VETPLUGINSYSTEM_VERSION 0x000000001 #define VETPLUGINSYSTEM_REVISION 0x000000003 WS_DLL_13_API void getVETPlugInInternalName(char* string) { strcpy(string, VETPLUGIN_CLASSNAMEq); } WS_DLL_13_API void getVETPlugInFullName(char* string) { strcpy(string, VETPLUGIN_FULLNAME); } WS_DLL_13_API DWORD getVETPlugInClassType() { return VETPLUGIN_CLASSNAME::vetClassType; } WS_DLL_13_API DWORD getVETPlugInSystemVersion() { return VETPLUGINSYSTEM_VERSION; } WS_DLL_13_API DWORD getVETPlugInSystemRevision() { return VETPLUGINSYSTEM_REVISION; } typedef struct _dllversioninfo { DWORD dwmajorversion; DWORD dwminorversion; DWORD dwbuildnumber; DWORD dwplatformid; }dllversioninfo; WS_DLL_13_API HRESULT DllGetVersion(dllversioninfo* Release) { Release->dwmajorversion = VETPLUGIN_MAJORVERSION; Release->dwminorversion = VETPLUGIN_MINORVERSION; Release->dwbuildnumber = VETPLUGIN_BUILDNUMBER; Release->dwplatformid = 0x00000002; return 1; } BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved ) { switch (ul_reason_for_call) { case DLL_PROCESS_ATTACH: case DLL_THREAD_ATTACH: case DLL_THREAD_DETACH: case DLL_PROCESS_DETACH: break; } return TRUE; }