From ca55ac7905e8ffd1ee979b5b5fe7121fa7a03a5d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 28 May 2018 22:38:35 +0300 Subject: all plugins => CMPlugin virtual functions --- plugins/UserInfoEx/src/init.cpp | 4 ++-- plugins/UserInfoEx/src/stdafx.h | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'plugins/UserInfoEx') diff --git a/plugins/UserInfoEx/src/init.cpp b/plugins/UserInfoEx/src/init.cpp index ce0260655c..3203cc87a6 100644 --- a/plugins/UserInfoEx/src/init.cpp +++ b/plugins/UserInfoEx/src/init.cpp @@ -138,7 +138,7 @@ extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = { * * @return 0 **/ -extern "C" int __declspec(dllexport) Unload(void) +int CMPlugin::Unload() { FreeLibrary(hDwmApi); return 0; @@ -149,7 +149,7 @@ extern "C" int __declspec(dllexport) Unload(void) * * @return 0 **/ -extern "C" int __declspec(dllexport) Load(void) +int CMPlugin::Load() { // init common controls INITCOMMONCONTROLSEX ccEx; diff --git a/plugins/UserInfoEx/src/stdafx.h b/plugins/UserInfoEx/src/stdafx.h index 1b2fbe41cc..76d67779b0 100644 --- a/plugins/UserInfoEx/src/stdafx.h +++ b/plugins/UserInfoEx/src/stdafx.h @@ -161,6 +161,9 @@ unsigned int hashSettingW_M2(const char * key); //new Murma2 hash struct CMPlugin : public PLUGIN { CMPlugin(); + + int Load() override; + int Unload() override; }; typedef struct _MGLOBAL -- cgit v1.2.3