summaryrefslogtreecommitdiff
path: root/plugins/ClientChangeNotify/src/ClientChangeNotify.cpp
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/ClientChangeNotify/src/ClientChangeNotify.cpp
parent3bfd3b9c9062048fde854b4c45ab62c29624d8f8 (diff)
Notification plugins - convert to Load/Unload methods of CMPlugin
Diffstat (limited to 'plugins/ClientChangeNotify/src/ClientChangeNotify.cpp')
-rw-r--r--plugins/ClientChangeNotify/src/ClientChangeNotify.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/ClientChangeNotify/src/ClientChangeNotify.cpp b/plugins/ClientChangeNotify/src/ClientChangeNotify.cpp
index 6196807f2e..eb4c8d6abe 100644
--- a/plugins/ClientChangeNotify/src/ClientChangeNotify.cpp
+++ b/plugins/ClientChangeNotify/src/ClientChangeNotify.cpp
@@ -342,7 +342,7 @@ static int MirandaLoaded(WPARAM, LPARAM)
return 0;
}
-extern "C" int __declspec(dllexport) Load(void)
+int CMPlugin::Load()
{
HookEvent(ME_SYSTEM_MODULESLOADED, MirandaLoaded);
DuplicateHandle(GetCurrentProcess(), GetCurrentThread(), GetCurrentProcess(), &g_hMainThread, THREAD_SET_CONTEXT, false, 0);
@@ -361,7 +361,7 @@ extern "C" int __declspec(dllexport) Load(void)
/////////////////////////////////////////////////////////////////////////////////////////
-extern "C" int __declspec(dllexport) Unload()
+int CMPlugin::Unload()
{
CloseHandle(g_hMainThread);
return 0;