diff options
Diffstat (limited to 'modules/example')
-rw-r--r-- | modules/example/main.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/example/main.cpp b/modules/example/main.cpp index a38f44f..ab6ff64 100644 --- a/modules/example/main.cpp +++ b/modules/example/main.cpp @@ -1,6 +1,9 @@ #include <windows.h> #include <pluginapi.h> +#include <plugin_helper.h> + +PLUGINLINK *pluginLink; HINSTANCE hInst; BOOL WINAPI DllMain( HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved ) //default dll entry point @@ -25,8 +28,9 @@ extern "C" __declspec(dllexport) PLUGININFO* SetPluginInfo() return &pluginInfo; } -extern "C" int __declspec(dllexport) Load() +extern "C" int __declspec(dllexport) Load(PLUGINLINK *link) { + pluginLink = link; MessageBoxA(0, "Plugin Example Succesful loaded", "INFO", MB_OK); return 0; //all ok, retrun 0 } |