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/HwHotKeys/src | |
parent | 9250a0caadc93ec7a92b99deea151ab7a1c403da (diff) |
all plugins => CMPlugin virtual functions
Diffstat (limited to 'plugins/HwHotKeys/src')
-rw-r--r-- | plugins/HwHotKeys/src/HwHotKeys_DllMain.cpp | 7 | ||||
-rw-r--r-- | plugins/HwHotKeys/src/stdafx.h | 3 |
2 files changed, 5 insertions, 5 deletions
diff --git a/plugins/HwHotKeys/src/HwHotKeys_DllMain.cpp b/plugins/HwHotKeys/src/HwHotKeys_DllMain.cpp index 17ceb61f9a..c3717b8e75 100644 --- a/plugins/HwHotKeys/src/HwHotKeys_DllMain.cpp +++ b/plugins/HwHotKeys/src/HwHotKeys_DllMain.cpp @@ -85,7 +85,7 @@ CMPlugin::CMPlugin() : // ============================================================================
-extern "C" __declspec(dllexport) int Load(void)
+int CMPlugin::Load()
{
// загружаем (из БД) настройки плагина
code_Close = db_get_dw(0, MODULENAME, "Close", 0);
@@ -123,11 +123,8 @@ int initializeOptions(WPARAM wParam, LPARAM) // ============================================================================
-extern "C" __declspec(dllexport) int Unload(void)
+int CMPlugin::Unload()
{
UnhookWindowsHookEx(hHook);
return 0;
}
-
-// ============================================================================
-
diff --git a/plugins/HwHotKeys/src/stdafx.h b/plugins/HwHotKeys/src/stdafx.h index da95e622c5..cc32f8e7e8 100644 --- a/plugins/HwHotKeys/src/stdafx.h +++ b/plugins/HwHotKeys/src/stdafx.h @@ -42,6 +42,9 @@ LRESULT CALLBACK key_hook(INT, WPARAM, LPARAM); struct CMPlugin : public PLUGIN<CMPlugin>
{
CMPlugin();
+
+ int Load() override;
+ int Unload() override;
};
extern HWND hDialogWnd; // глобально используется для вывода туда в реалтайме сканкодов клавы, из хука
|