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/XSoundNotify/src/stdafx.h | 3 +++ plugins/XSoundNotify/src/xsn_main.cpp | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'plugins/XSoundNotify') diff --git a/plugins/XSoundNotify/src/stdafx.h b/plugins/XSoundNotify/src/stdafx.h index 70c1a6b9d6..7a5c1527ac 100644 --- a/plugins/XSoundNotify/src/stdafx.h +++ b/plugins/XSoundNotify/src/stdafx.h @@ -25,6 +25,9 @@ struct CMPlugin : public PLUGIN { CMPlugin(); + + int Load() override; + int Unload() override; }; struct XSN_Data diff --git a/plugins/XSoundNotify/src/xsn_main.cpp b/plugins/XSoundNotify/src/xsn_main.cpp index 5e766f0bb7..d8713148ce 100644 --- a/plugins/XSoundNotify/src/xsn_main.cpp +++ b/plugins/XSoundNotify/src/xsn_main.cpp @@ -231,7 +231,7 @@ static int OnPreShutdown(WPARAM, LPARAM) return 0; } -extern "C" int __declspec(dllexport) Load() +int CMPlugin::Load() { CreateServiceFunction("XSoundNotify/ContactMenuCommand", ShowDialog); @@ -250,7 +250,7 @@ extern "C" int __declspec(dllexport) Load() ///////////////////////////////////////////////////////////////////////////////////////// -extern "C" int __declspec(dllexport) Unload(void) +int CMPlugin::Unload() { WindowList_Destroy(hChangeSoundDlgList); return 0; -- cgit v1.2.3