From 92a701741ab376c6bd8ac20f832f55e55324abdc Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Fri, 13 Jul 2012 21:37:56 +0000 Subject: Updater removal - stage 1 git-svn-id: http://svn.miranda-ng.org/main/trunk@956 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Folders/hooked_events.cpp | 21 --------------------- plugins/Folders/hooked_events.h | 2 -- 2 files changed, 23 deletions(-) (limited to 'plugins/Folders') diff --git a/plugins/Folders/hooked_events.cpp b/plugins/Folders/hooked_events.cpp index 24ece7534e..77042f2879 100644 --- a/plugins/Folders/hooked_events.cpp +++ b/plugins/Folders/hooked_events.cpp @@ -32,41 +32,20 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #endif #define FOLDERS_VERSION_PREFIX "Custom profile folders version " -HANDLE hModulesLoaded; HANDLE hOptionsInitialize; int HookEvents() { - hModulesLoaded = HookEvent(ME_SYSTEM_MODULESLOADED, OnModulesLoaded); hOptionsInitialize = HookEvent(ME_OPT_INITIALISE, OnOptionsInitialize); return 0; } int UnhookEvents() { - UnhookEvent(hModulesLoaded); UnhookEvent(hOptionsInitialize); return 0; } -int OnModulesLoaded(WPARAM wParam, LPARAM lParam) -{ - char buffer[1024]; - Update update = {0}; - update.cbSize = sizeof(Update); - update.szComponentName = __PLUGIN_DISPLAY_NAME; - update.pbVersion = (BYTE *) CreateVersionString(VERSION, buffer); - update.cpbVersion = (int)strlen((char *) update.pbVersion); - update.szUpdateURL = UPDATER_AUTOREGISTER; - update.szBetaVersionURL = FOLDERS_VERSION_URL; - update.szBetaUpdateURL = FOLDERS_UPDATE_URL; - update.pbBetaVersionPrefix = (BYTE *) FOLDERS_VERSION_PREFIX; - update.cpbBetaVersionPrefix = (int)strlen(FOLDERS_VERSION_PREFIX); - CallService(MS_UPDATE_REGISTER, 0, (LPARAM) &update); - - return 0; -} - int OnOptionsInitialize(WPARAM wParam, LPARAM lParam) { OPTIONSDIALOGPAGE odp = { 0 }; diff --git a/plugins/Folders/hooked_events.h b/plugins/Folders/hooked_events.h index 92401e9850..7a2d427e18 100644 --- a/plugins/Folders/hooked_events.h +++ b/plugins/Folders/hooked_events.h @@ -24,13 +24,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "commonheaders.h" #include "services.h" -extern HANDLE hModulesLoaded; extern HANDLE hOptionsInitialize; int UnhookEvents(); int HookEvents(); -int OnModulesLoaded(WPARAM wParam, LPARAM lParam); int OnOptionsInitialize(WPARAM wParam, LPARAM lParam); #endif \ No newline at end of file -- cgit v1.2.3