summaryrefslogtreecommitdiff
path: root/modules/example
diff options
context:
space:
mode:
Diffstat (limited to 'modules/example')
-rw-r--r--modules/example/main.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/example/main.cpp b/modules/example/main.cpp
index 7d4b75d..85ae212 100644
--- a/modules/example/main.cpp
+++ b/modules/example/main.cpp
@@ -1,7 +1,7 @@
#include <windows.h>
-#include <pluginapi.h>
-#include <plugin_helper.h>
+#include <pluginapi.h> //this is necessary, PLUGININFO structure, other related to load/unload plugin code
+#include <plugin_helper.h> //just helper, not necessary
PLUGINLINK *pluginLink;
@@ -28,14 +28,14 @@ extern "C" __declspec(dllexport) PLUGININFO* SetPluginInfo()
return &pluginInfo;
}
-extern "C" int __declspec(dllexport) Load(PLUGINLINK *link)
+extern "C" int __declspec(dllexport) Load(PLUGINLINK *link) //basic initialisation, registering new functions, do other basic initialisation
{
pluginLink = link; //necessary
MessageBoxA(0, "Simple plugin initialisation done", "INFO", MB_OK);
return 0; //all ok, retrun 0
}
-extern "C" int __declspec(dllexport) OnModulesLoaded()
+extern "C" int __declspec(dllexport) OnModulesLoaded() //load main code from here, all services from other plugins must be avaible here
{
MessageBoxA(0, "Advanced plugin features needed services from other plugins are working from now", "INFO", MB_OK);
return 0;