From 10bc9e42dfba6ed8be41199243d688c2e367dc0d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 30 Jun 2015 18:59:38 +0000 Subject: MS_CLIST_GETSTATUSMODEDESCRIPTION & MS_CLIST_GETCONTACTDISPLAYNAME replaced with pcli->* members git-svn-id: http://svn.miranda-ng.org/main/trunk@14459 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/NewEventNotify/src/main.cpp | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) (limited to 'plugins/NewEventNotify/src/main.cpp') diff --git a/plugins/NewEventNotify/src/main.cpp b/plugins/NewEventNotify/src/main.cpp index 63fd90ea86..086a51f325 100644 --- a/plugins/NewEventNotify/src/main.cpp +++ b/plugins/NewEventNotify/src/main.cpp @@ -30,6 +30,7 @@ extern PLUGIN_DATA* PopupList[20]; //--------------------------- //---Some global variables for the plugin +CLIST_INTERFACE *pcli; HINSTANCE hInst; PLUGIN_OPTIONS pluginOptions; int hLangpack; @@ -50,12 +51,6 @@ PLUGININFOEX pluginInfo = { //--------------------------- //---Hooks -//---Handles to my hooks, needed to unhook them again -HANDLE hHookedInit; -HANDLE hHookedOpt; -HANDLE hHookedNewEvent; -HANDLE hHookedDeletedEvent; - //---Called when a new event is added to the database //wParam: contact-handle //lParam: dbevent-handle @@ -113,7 +108,7 @@ int HookedNewEvent(WPARAM hContact, LPARAM hDbEvent) //---Called when all the modules are loaded int HookedInit(WPARAM, LPARAM) { - hHookedNewEvent = HookEvent(ME_DB_EVENT_ADDED, HookedNewEvent); + HookEvent(ME_DB_EVENT_ADDED, HookedNewEvent); // Plugin sweeper support if (ServiceExists("PluginSweeper/Add")) CallService("PluginSweeper/Add", (WPARAM)MODULE, (LPARAM)MODULE); @@ -142,10 +137,11 @@ extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD miranda extern "C" __declspec(dllexport) int Load(void) { - hHookedInit = HookEvent(ME_SYSTEM_MODULESLOADED, HookedInit); - hHookedOpt = HookEvent(ME_OPT_INITIALISE, HookedOptions); + HookEvent(ME_SYSTEM_MODULESLOADED, HookedInit); + HookEvent(ME_OPT_INITIALISE, HookedOptions); mir_getLP(&pluginInfo); + mir_getCLI(); OptionsInit(&pluginOptions); pluginOptions.hInst = hInst; @@ -155,9 +151,6 @@ extern "C" __declspec(dllexport) int Load(void) extern "C" __declspec(dllexport) int Unload(void) { - UnhookEvent(hHookedNewEvent); - UnhookEvent(hHookedOpt); - UnhookEvent(hHookedInit); return 0; } -- cgit v1.2.3