summaryrefslogtreecommitdiff
path: root/modules/example
diff options
context:
space:
mode:
Diffstat (limited to 'modules/example')
-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;
- }
-}