From 488214ac8af0c4aeb1a5c1d8fd48368daaf4c4c7 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 12 Nov 2018 20:12:53 +0300 Subject: end of ME_OPT_INITIALISE related zoo in another plugins --- plugins/Exchange/src/hooked_events.cpp | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) (limited to 'plugins/Exchange') diff --git a/plugins/Exchange/src/hooked_events.cpp b/plugins/Exchange/src/hooked_events.cpp index 3ec4de1ad2..a7a9c2f4f4 100644 --- a/plugins/Exchange/src/hooked_events.cpp +++ b/plugins/Exchange/src/hooked_events.cpp @@ -22,31 +22,21 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "dlg_handlers.h" #include "hooked_events.h" -HANDLE hModulesLoaded; -HANDLE hOptionsInitialise; -HANDLE hPreShutdown; - UINT_PTR hCheckTimer = NULL; UINT_PTR hReconnectTimer = NULL; UINT_PTR hFirstCheckTimer = NULL; int HookEvents() { - hModulesLoaded = HookEvent(ME_SYSTEM_MODULESLOADED, OnModulesLoaded); - hOptionsInitialise = HookEvent(ME_OPT_INITIALISE, OnOptionsInitialise); - hPreShutdown = HookEvent(ME_SYSTEM_PRESHUTDOWN, OnSystemPreShutdown); - + HookEvent(ME_SYSTEM_MODULESLOADED, OnModulesLoaded); + HookEvent(ME_OPT_INITIALISE, OnOptionsInitialise); + HookEvent(ME_SYSTEM_PRESHUTDOWN, OnSystemPreShutdown); return 0; } int UnhookEvents() { - UnhookEvent(hModulesLoaded); - UnhookEvent(hOptionsInitialise); - UnhookEvent(hPreShutdown); - KillTimers(); - return 0; } @@ -63,9 +53,8 @@ int OnModulesLoaded(WPARAM, LPARAM) mi.name.w = LPGENW("Check exchange mailbox"); Menu_AddMainMenuItem(&mi); - hEmailsDlg = nullptr; //CreateDialog(g_plugin.getInst(), MAKEINTRESOURCE(IDD_EMAILS), NULL, DlgProcEmails); //create emails window + hEmailsDlg = nullptr; FirstTimeCheck(); -// CheckEmail(); return 0; } @@ -165,4 +154,4 @@ VOID CALLBACK OnFirstCheckTimer(HWND hWnd, UINT msg, UINT_PTR idEvent, DWORD dwT OnCheckTimer(hWnd, msg, idEvent, dwTime); hFirstCheckTimer = NULL; -} \ No newline at end of file +} -- cgit v1.2.3