summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/example/main.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/example/main.cpp b/modules/example/main.cpp
index ecba903..c416393 100644
--- a/modules/example/main.cpp
+++ b/modules/example/main.cpp
@@ -4,6 +4,7 @@
#include <pluginapi.h> //this is necessary, PLUGININFO structure, other related to load/unload plugin code
#include <plugin_helper.h> //just helper, not necessary
#include <core_services.h>
+#include <db.h> //database support
PLUGINLINK *pluginLink;
@@ -46,6 +47,11 @@ extern "C" int __declspec(dllexport) OnModulesLoaded() //load main code from her
//some code
// TestService(); //same as CallService("Core/Test", 0, 0);
Shutdown(); //same as CallService("Core/Shutdown", 0, 0); ,this will shutdown program
+ DATA dat;
+ dat.wType = D_INT;
+ dat.pData = (void*)123;
+ dat.szSetting = (char*)"some_name";
+ dbSetSetting((WPARAM)&pluginInfo, (LPARAM)&dat);
return 0;
}
extern "C" int __declspec(dllexport) Unload()