summaryrefslogtreecommitdiff
path: root/plugins/IgnoreState/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/IgnoreState/main.cpp')
-rw-r--r--plugins/IgnoreState/main.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/IgnoreState/main.cpp b/plugins/IgnoreState/main.cpp
index d6a9f04807..69840f4e3b 100644
--- a/plugins/IgnoreState/main.cpp
+++ b/plugins/IgnoreState/main.cpp
@@ -21,7 +21,7 @@
#include "commonheaders.h"
HINSTANCE g_hInst;
-PLUGINLINK *pluginLink;
+
HANDLE hHookModulesLoaded = NULL, hSystemOKToExit = NULL, hOptInitialise = NULL, hIcoLibIconsChanged = NULL;
HANDLE hHookExtraIconsRebuild = NULL, hHookExtraIconsApply = NULL, hContactSettingChanged = NULL;
HANDLE hPrebuildContactMenu = NULL;
@@ -298,10 +298,11 @@ int onContactSettingChanged(WPARAM wParam,LPARAM lParam)
return 0;
}
-extern "C" int __declspec(dllexport) Load(PLUGINLINK *link)
+extern "C" int __declspec(dllexport) Load(void)
{
- pluginLink=link;
- mir_getLP(&pluginInfo);
+
+ mir_getLP(&pluginInfo);
+
hHookModulesLoaded = HookEvent(ME_SYSTEM_MODULESLOADED, onModulesLoaded);
hSystemOKToExit = HookEvent(ME_SYSTEM_OKTOEXIT,onSystemOKToExit);
hContactSettingChanged = HookEvent(ME_DB_CONTACT_SETTINGCHANGED, onContactSettingChanged);