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/SplashScreen/src/main.cpp | 4 ++-- plugins/SplashScreen/src/stdafx.h | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'plugins/SplashScreen/src') diff --git a/plugins/SplashScreen/src/main.cpp b/plugins/SplashScreen/src/main.cpp index ea4bd33493..47f949afc2 100644 --- a/plugins/SplashScreen/src/main.cpp +++ b/plugins/SplashScreen/src/main.cpp @@ -227,7 +227,7 @@ static int ModulesLoaded(WPARAM wParam, LPARAM lParam) return 0; } -extern "C" int __declspec(dllexport) Load(void) +int CMPlugin::Load() { HookEvent(ME_SYSTEM_MODULESLOADED, ModulesLoaded); @@ -239,7 +239,7 @@ extern "C" int __declspec(dllexport) Load(void) ///////////////////////////////////////////////////////////////////////////////////////// -extern "C" int __declspec(dllexport) Unload(void) +int CMPlugin::Unload() { UnregisterClass(SPLASH_CLASS, g_plugin.getInst()); return 0; diff --git a/plugins/SplashScreen/src/stdafx.h b/plugins/SplashScreen/src/stdafx.h index a0841de240..5907f3e701 100644 --- a/plugins/SplashScreen/src/stdafx.h +++ b/plugins/SplashScreen/src/stdafx.h @@ -55,6 +55,9 @@ struct CMPlugin : public PLUGIN { CMPlugin(); + + int Load() override; + int Unload() override; }; struct SPLASHOPTS -- cgit v1.2.3