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/BasicHistory | |
parent | 9250a0caadc93ec7a92b99deea151ab7a1c403da (diff) |
all plugins => CMPlugin virtual functions
Diffstat (limited to 'plugins/BasicHistory')
-rw-r--r-- | plugins/BasicHistory/src/BasicHistory.cpp | 4 | ||||
-rw-r--r-- | plugins/BasicHistory/src/stdafx.h | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/plugins/BasicHistory/src/BasicHistory.cpp b/plugins/BasicHistory/src/BasicHistory.cpp index 095d51ac18..5bac74c444 100644 --- a/plugins/BasicHistory/src/BasicHistory.cpp +++ b/plugins/BasicHistory/src/BasicHistory.cpp @@ -234,7 +234,7 @@ int ModulesLoaded(WPARAM, LPARAM) return 0;
}
-extern "C" int __declspec(dllexport) Load(void)
+int CMPlugin::Load()
{
hTaskMainMenu = nullptr;
DuplicateHandle(GetCurrentProcess(), GetCurrentThread(), GetCurrentProcess(), &g_hMainThread, 0, FALSE, DUPLICATE_SAME_ACCESS);
@@ -259,7 +259,7 @@ extern "C" int __declspec(dllexport) Load(void) /////////////////////////////////////////////////////////////////////////////////////////
-extern "C" int __declspec(dllexport) Unload(void)
+int CMPlugin::Unload()
{
if (g_hMainThread)
CloseHandle(g_hMainThread);
diff --git a/plugins/BasicHistory/src/stdafx.h b/plugins/BasicHistory/src/stdafx.h index f2e353cb67..9672419c66 100644 --- a/plugins/BasicHistory/src/stdafx.h +++ b/plugins/BasicHistory/src/stdafx.h @@ -61,6 +61,9 @@ struct CMPlugin : public PLUGIN<CMPlugin>
{
CMPlugin();
+
+ int Load() override;
+ int Unload() override;
};
#include "../../libs/zlib/src/zconf.h"
|