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/Boltun/src/boltun.cpp | 4 ++-- plugins/Boltun/src/stdafx.h | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'plugins/Boltun/src') diff --git a/plugins/Boltun/src/boltun.cpp b/plugins/Boltun/src/boltun.cpp index af9aced63a..e42a29f07f 100644 --- a/plugins/Boltun/src/boltun.cpp +++ b/plugins/Boltun/src/boltun.cpp @@ -512,7 +512,7 @@ static int MessagePrebuild(WPARAM hContact, LPARAM) return 0; } -extern "C" int __declspec(dllexport) Load(void) +int CMPlugin::Load() { GetModuleFileName(g_plugin.getInst(), tszPath, _countof(tszPath)); *(wcsrchr(tszPath, '\\') + 1) = '\0'; @@ -562,7 +562,7 @@ extern "C" int __declspec(dllexport) Load(void) ///////////////////////////////////////////////////////////////////////////////////////// -extern "C" int __declspec(dllexport) Unload(void) +int CMPlugin::Unload() { if (pTimer) KillTimer(nullptr, pTimer); diff --git a/plugins/Boltun/src/stdafx.h b/plugins/Boltun/src/stdafx.h index 274b20a185..0fb747b3cf 100644 --- a/plugins/Boltun/src/stdafx.h +++ b/plugins/Boltun/src/stdafx.h @@ -54,6 +54,9 @@ struct CMPlugin : public PLUGIN { CMPlugin(); + + int Load() override; + int Unload() override; }; //Service names -- cgit v1.2.3