diff options
author | Goraf <22941576+Goraf@users.noreply.github.com> | 2018-05-28 20:49:19 +0200 |
---|---|---|
committer | Goraf <22941576+Goraf@users.noreply.github.com> | 2018-05-28 21:00:55 +0200 |
commit | 9250a0caadc93ec7a92b99deea151ab7a1c403da (patch) | |
tree | a891d1bd365e00e192bb703375613caa446ede33 /plugins/NewXstatusNotify | |
parent | 3bfd3b9c9062048fde854b4c45ab62c29624d8f8 (diff) |
Notification plugins - convert to Load/Unload methods of CMPlugin
Diffstat (limited to 'plugins/NewXstatusNotify')
-rw-r--r-- | plugins/NewXstatusNotify/src/main.cpp | 4 | ||||
-rw-r--r-- | plugins/NewXstatusNotify/src/stdafx.h | 3 |
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
|