From 9250a0caadc93ec7a92b99deea151ab7a1c403da Mon Sep 17 00:00:00 2001 From: Goraf <22941576+Goraf@users.noreply.github.com> Date: Mon, 28 May 2018 20:49:19 +0200 Subject: Notification plugins - convert to Load/Unload methods of CMPlugin --- plugins/NewEventNotify/src/main.cpp | 8 +------- plugins/NewEventNotify/src/stdafx.h | 2 ++ 2 files changed, 3 insertions(+), 7 deletions(-) (limited to 'plugins/NewEventNotify/src') diff --git a/plugins/NewEventNotify/src/main.cpp b/plugins/NewEventNotify/src/main.cpp index 08e6141ce4..72bfaddbaa 100644 --- a/plugins/NewEventNotify/src/main.cpp +++ b/plugins/NewEventNotify/src/main.cpp @@ -130,7 +130,7 @@ int HookedOptions(WPARAM wParam, LPARAM) ///////////////////////////////////////////////////////////////////////////////////////// -extern "C" __declspec(dllexport) int Load(void) +int CMPlugin::Load() { HookEvent(ME_SYSTEM_MODULESLOADED, HookedInit); HookEvent(ME_OPT_INITIALISE, HookedOptions); @@ -139,12 +139,6 @@ extern "C" __declspec(dllexport) int Load(void) return 0; } -///////////////////////////////////////////////////////////////////////////////////////// - -extern "C" __declspec(dllexport) int Unload(void) -{ - return 0; -} //------------------------------------- //---Check Window Message function diff --git a/plugins/NewEventNotify/src/stdafx.h b/plugins/NewEventNotify/src/stdafx.h index 434e95f3de..daaff09e99 100644 --- a/plugins/NewEventNotify/src/stdafx.h +++ b/plugins/NewEventNotify/src/stdafx.h @@ -151,6 +151,8 @@ struct CMPlugin : public PLUGIN { CMPlugin(); + + int Load() override; }; struct PLUGIN_OPTIONS -- cgit v1.2.3