From 81e8caf42867b65677efe2bffaa52ecff7303c3a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 27 Jun 2012 13:58:25 +0000 Subject: no more pluginLink in load() git-svn-id: http://svn.miranda-ng.org/main/trunk@652 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Rate/main.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'plugins/Rate') diff --git a/plugins/Rate/main.cpp b/plugins/Rate/main.cpp index be4aae14ed..760d324b84 100644 --- a/plugins/Rate/main.cpp +++ b/plugins/Rate/main.cpp @@ -43,7 +43,7 @@ #include "commonheaders.h" HINSTANCE g_hInst; -PLUGINLINK *pluginLink; + static HANDLE hHookModulesLoaded = NULL, hSystemOKToExit = NULL, hOptInitialise = NULL, hIcoLibIconsChanged = NULL; static HANDLE hHookExtraIconsRebuild = NULL, hHookExtraIconsApply = NULL, hContactSettingChanged = NULL; static HANDLE hPrebuildContactMenu = NULL; @@ -261,10 +261,11 @@ int onContactSettingChanged(WPARAM wParam,LPARAM lParam) } -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); -- cgit v1.2.3