summaryrefslogtreecommitdiff
path: root/plugins/NewXstatusNotify
diff options
context:
space:
mode:
authorGoraf <22941576+Goraf@users.noreply.github.com>2018-05-28 20:49:19 +0200
committerGoraf <22941576+Goraf@users.noreply.github.com>2018-05-28 21:00:55 +0200
commit9250a0caadc93ec7a92b99deea151ab7a1c403da (patch)
treea891d1bd365e00e192bb703375613caa446ede33 /plugins/NewXstatusNotify
parent3bfd3b9c9062048fde854b4c45ab62c29624d8f8 (diff)
Notification plugins - convert to Load/Unload methods of CMPlugin
Diffstat (limited to 'plugins/NewXstatusNotify')
-rw-r--r--plugins/NewXstatusNotify/src/main.cpp4
-rw-r--r--plugins/NewXstatusNotify/src/stdafx.h3
2 files changed, 5 insertions, 2 deletions
diff --git a/plugins/NewXstatusNotify/src/main.cpp b/plugins/NewXstatusNotify/src/main.cpp
index 387b28c549..c15933478b 100644
--- a/plugins/NewXstatusNotify/src/main.cpp
+++ b/plugins/NewXstatusNotify/src/main.cpp
@@ -1144,7 +1144,7 @@ static int OnShutdown(WPARAM, LPARAM)
/////////////////////////////////////////////////////////////////////////////////////////
-extern "C" int __declspec(dllexport) Load(void)
+int CMPlugin::Load()
{
g_plugin.registerIcon(LPGEN("New Status Notify"), iconList, MODULE);
@@ -1188,7 +1188,7 @@ extern "C" int __declspec(dllexport) Load(void)
/////////////////////////////////////////////////////////////////////////////////////////
-extern "C" int __declspec(dllexport) Unload(void)
+int CMPlugin::Unload()
{
DestroyHookableEvent(hHookContactStatusChanged);
return 0;
diff --git a/plugins/NewXstatusNotify/src/stdafx.h b/plugins/NewXstatusNotify/src/stdafx.h
index 6f8578163d..5c87669c6f 100644
--- a/plugins/NewXstatusNotify/src/stdafx.h
+++ b/plugins/NewXstatusNotify/src/stdafx.h
@@ -71,6 +71,9 @@
struct CMPlugin : public PLUGIN<CMPlugin>
{
CMPlugin();
+
+ int Load() override;
+ int Unload() override;
};
#define MAX_STATUSTEXT 36