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/HistoryLinkListPlus/src/linklist.cpp | 4 ++-- plugins/HistoryLinkListPlus/src/stdafx.h | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'plugins/HistoryLinkListPlus/src') diff --git a/plugins/HistoryLinkListPlus/src/linklist.cpp b/plugins/HistoryLinkListPlus/src/linklist.cpp index e039752b2d..634a292574 100644 --- a/plugins/HistoryLinkListPlus/src/linklist.cpp +++ b/plugins/HistoryLinkListPlus/src/linklist.cpp @@ -145,7 +145,7 @@ static INT_PTR LinkList_Main(WPARAM hContact, LPARAM) return 0; } -extern "C" __declspec(dllexport) int Load(void) +int CMPlugin::Load() { CreateServiceFunction("Linklist/MenuCommand", LinkList_Main); @@ -179,7 +179,7 @@ extern "C" __declspec(dllexport) int Load(void) ///////////////////////////////////////////////////////////////////////////////////////// -extern "C" __declspec(dllexport) int Unload(void) +int CMPlugin::Unload() { WindowList_Destroy(hWindowList); DestroyCursor(splitCursor); diff --git a/plugins/HistoryLinkListPlus/src/stdafx.h b/plugins/HistoryLinkListPlus/src/stdafx.h index dd92964454..728a5b3160 100644 --- a/plugins/HistoryLinkListPlus/src/stdafx.h +++ b/plugins/HistoryLinkListPlus/src/stdafx.h @@ -130,6 +130,9 @@ typedef struct { struct CMPlugin : public PLUGIN { CMPlugin(); + + int Load() override; + int Unload() override; }; #define _mstrlen(x) (_countof(x) - 1) -- cgit v1.2.3