summaryrefslogtreecommitdiff
path: root/plugins/Folders/hooked_events.cpp
diff options
context:
space:
mode:
authorVadim Dashevskiy <watcherhd@gmail.com>2012-07-13 21:37:56 +0000
committerVadim Dashevskiy <watcherhd@gmail.com>2012-07-13 21:37:56 +0000
commit92a701741ab376c6bd8ac20f832f55e55324abdc (patch)
treeaae30addc202f556781d3c86706a1fdef4fa953b /plugins/Folders/hooked_events.cpp
parent9f1350bd4fb0df56a4115e80343285eef8acb954 (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/hooked_events.cpp')
-rw-r--r--plugins/Folders/hooked_events.cpp21
1 files changed, 0 insertions, 21 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 };