summaryrefslogtreecommitdiff
path: root/modules/example/main.cpp
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss123next@list.ru>2010-08-01 15:22:07 +0300
committerGluzskiy Alexandr <sss123next@list.ru>2010-08-01 15:22:07 +0300
commitb36bf78a9dc63d9181991d1342dcd91520951a28 (patch)
treea441042cbb2e90b7fb5f3232de83d616e0e751dc /modules/example/main.cpp
parentebcf5ee1991c4815eb31674653e7d2e9036ab760 (diff)
modified: api/api.h
modified: core/main.cpp modified: modules/example/main.cpp
Diffstat (limited to 'modules/example/main.cpp')
-rw-r--r--modules/example/main.cpp23
1 files changed, 1 insertions, 22 deletions
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 <windows.h>
#include <api.h>
+#include <pluginapi.h>
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;
- }
-}