diff options
author | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-07-13 21:37:56 +0000 |
---|---|---|
committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-07-13 21:37:56 +0000 |
commit | 92a701741ab376c6bd8ac20f832f55e55324abdc (patch) | |
tree | aae30addc202f556781d3c86706a1fdef4fa953b /plugins/Folders | |
parent | 9f1350bd4fb0df56a4115e80343285eef8acb954 (diff) |
Updater removal - stage 1
git-svn-id: http://svn.miranda-ng.org/main/trunk@956 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Folders')
-rw-r--r-- | plugins/Folders/hooked_events.cpp | 21 | ||||
-rw-r--r-- | plugins/Folders/hooked_events.h | 2 |
2 files changed, 0 insertions, 23 deletions
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 |