From b36bf78a9dc63d9181991d1342dcd91520951a28 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Sun, 1 Aug 2010 15:22:07 +0300 Subject: modified: api/api.h modified: core/main.cpp modified: modules/example/main.cpp --- modules/example/main.cpp | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) (limited to 'modules/example/main.cpp') diff --git a/modules/example/main.cpp b/modules/example/main.cpp index 7194f72..e778c9c 100644 --- a/modules/example/main.cpp +++ b/modules/example/main.cpp @@ -1,5 +1,6 @@ #include #include +#include HINSTANCE hDllInstance=NULL; BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved ) //default dll entry point @@ -9,26 +10,4 @@ BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserv return TRUE; } -void GetPluginInfo(PluginInfo* pPluginInfo, DWORD *pdwResult) -{ - pPluginInfo->szPluginName = (char*)"Simple Plugin example"; - *pdwResult=0; -} - -void PluginHandler(DWORD dwCode,HostInfo *pHostInfo,DWORD *pdwResult) -{ - switch(dwCode) - { - case 1: - //первое действие - *pdwResult=1; - break; - case 2: - //второе действие - *pdwResult=1; - break; - default: - *pdwResult=0; - } -} -- cgit v1.2.3