summaryrefslogtreecommitdiff
path: root/plugins/UserInfoEx/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-05-28 22:38:35 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-05-28 22:39:22 +0300
commitca55ac7905e8ffd1ee979b5b5fe7121fa7a03a5d (patch)
tree2fc218f22e6fb28baa5b5efc02ab652daae97d73 /plugins/UserInfoEx/src
parent9250a0caadc93ec7a92b99deea151ab7a1c403da (diff)
all plugins => CMPlugin virtual functions
Diffstat (limited to 'plugins/UserInfoEx/src')
-rw-r--r--plugins/UserInfoEx/src/init.cpp4
-rw-r--r--plugins/UserInfoEx/src/stdafx.h3
2 files changed, 5 insertions, 2 deletions
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>
{
CMPlugin();
+
+ int Load() override;
+ int Unload() override;
};
typedef struct _MGLOBAL