summaryrefslogtreecommitdiff
path: root/plugins/Folders
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Folders')
-rw-r--r--plugins/Folders/hooked_events.cpp21
-rw-r--r--plugins/Folders/hooked_events.h2
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