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/AvatarHistory/src/AvatarHistory.cpp | 4 ++-- plugins/AvatarHistory/src/stdafx.h | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'plugins/AvatarHistory/src') diff --git a/plugins/AvatarHistory/src/AvatarHistory.cpp b/plugins/AvatarHistory/src/AvatarHistory.cpp index dc943db21f..27e525a38c 100644 --- a/plugins/AvatarHistory/src/AvatarHistory.cpp +++ b/plugins/AvatarHistory/src/AvatarHistory.cpp @@ -278,7 +278,7 @@ static INT_PTR CALLBACK FirstRunDlgProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPA return FALSE; } -extern "C" __declspec(dllexport) int Load(void) +int CMPlugin::Load() { CoInitialize(nullptr); @@ -339,7 +339,7 @@ extern "C" __declspec(dllexport) int Load(void) return 0; } -extern "C" __declspec(dllexport) int Unload(void) +int CMPlugin::Unload() { WindowList_Destroy(hAvatarWindowsList); return 0; diff --git a/plugins/AvatarHistory/src/stdafx.h b/plugins/AvatarHistory/src/stdafx.h index cdf31741b7..1bf87a8b61 100644 --- a/plugins/AvatarHistory/src/stdafx.h +++ b/plugins/AvatarHistory/src/stdafx.h @@ -45,6 +45,9 @@ extern wchar_t basedir[]; struct CMPlugin : public PLUGIN { CMPlugin(); + + int Load() override; + int Unload() override; }; #define AVH_DEF_POPUPFG 0 -- cgit v1.2.3