diff options
author | George Hazan <ghazan@miranda.im> | 2018-05-28 22:38:35 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-05-28 22:39:22 +0300 |
commit | ca55ac7905e8ffd1ee979b5b5fe7121fa7a03a5d (patch) | |
tree | 2fc218f22e6fb28baa5b5efc02ab652daae97d73 /plugins/AvatarHistory | |
parent | 9250a0caadc93ec7a92b99deea151ab7a1c403da (diff) |
all plugins => CMPlugin virtual functions
Diffstat (limited to 'plugins/AvatarHistory')
-rw-r--r-- | plugins/AvatarHistory/src/AvatarHistory.cpp | 4 | ||||
-rw-r--r-- | plugins/AvatarHistory/src/stdafx.h | 3 |
2 files changed, 5 insertions, 2 deletions
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>
{
CMPlugin();
+
+ int Load() override;
+ int Unload() override;
};
#define AVH_DEF_POPUPFG 0
|