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/SkypeStatusChange/src/main.cpp | 9 +-------- plugins/SkypeStatusChange/src/stdafx.h | 2 ++ 2 files changed, 3 insertions(+), 8 deletions(-) (limited to 'plugins/SkypeStatusChange/src') diff --git a/plugins/SkypeStatusChange/src/main.cpp b/plugins/SkypeStatusChange/src/main.cpp index bba4628908..9ddbc28fcd 100644 --- a/plugins/SkypeStatusChange/src/main.cpp +++ b/plugins/SkypeStatusChange/src/main.cpp @@ -265,7 +265,7 @@ int SSC_OnPreShutdown(WPARAM/* wParam*/, LPARAM/* lParam*/) /******************************* INSTALLATION PROCEDURES *****************************/ -extern "C" int __declspec(dllexport) Load() +int CMPlugin::Load() { g_MsgIDSkypeControlAPIAttach = ::RegisterWindowMessage(L"SkypeControlAPIAttach"); g_MsgIDSkypeControlAPIDiscover = ::RegisterWindowMessage(L"SkypeControlAPIDiscover"); @@ -296,10 +296,3 @@ extern "C" int __declspec(dllexport) Load() HookEvent(ME_OPT_INITIALISE, SSC_OptInitialise); return 0; } - -///////////////////////////////////////////////////////////////////////////////////////// - -extern "C" __declspec(dllexport) int Unload(void) // Executed on DLL unload -{ - return 0; -} diff --git a/plugins/SkypeStatusChange/src/stdafx.h b/plugins/SkypeStatusChange/src/stdafx.h index 90dfeb1b32..d33c1cef9f 100644 --- a/plugins/SkypeStatusChange/src/stdafx.h +++ b/plugins/SkypeStatusChange/src/stdafx.h @@ -20,6 +20,8 @@ struct CMPlugin : public PLUGIN { CMPlugin(); + + int Load() override; }; class COptions -- cgit v1.2.3