summaryrefslogtreecommitdiff
path: root/plugins/Toaster/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-05-23 16:11:59 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-05-23 16:11:59 +0300
commita7d5cce8e2cea97d52a35a1769d0e87e84e5502a (patch)
tree328aa85baa74ea929faa4c09b5e4c49b0cada896 /plugins/Toaster/src
parent7249e4f451c89d778ce0f211eb0730e6fa3adc04 (diff)
we don't need MirandaPluginInfoEx() anymore. farewell, my lovely
Diffstat (limited to 'plugins/Toaster/src')
-rw-r--r--plugins/Toaster/src/main.cpp14
1 files changed, 5 insertions, 9 deletions
diff --git a/plugins/Toaster/src/main.cpp b/plugins/Toaster/src/main.cpp
index 9884bddd58..872d733ee3 100644
--- a/plugins/Toaster/src/main.cpp
+++ b/plugins/Toaster/src/main.cpp
@@ -22,15 +22,6 @@ CMPlugin::CMPlugin() :
PLUGIN<CMPlugin>(MODULENAME, pluginInfoEx)
{}
-extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD)
-{
- if (!IsWinVer8Plus()) {
- MessageBox(nullptr, TranslateT("This plugin requires Windows 8 or higher"), _T(MODULENAME), MB_OK | MB_ICONERROR);
- return nullptr;
- }
- return &pluginInfoEx;
-}
-
/////////////////////////////////////////////////////////////////////////////////////////
static int OnPreShutdown(WPARAM, LPARAM)
@@ -54,6 +45,11 @@ static int OnPreShutdown(WPARAM, LPARAM)
extern "C" int __declspec(dllexport) Load(void)
{
+ if (!IsWinVer8Plus()) {
+ MessageBox(nullptr, TranslateT("This plugin requires Windows 8 or higher"), _T(MODULENAME), MB_OK | MB_ICONERROR);
+ return 1;
+ }
+
HookEvent(ME_OPT_INITIALISE, OnOptionsInitialized);
HookEvent(ME_SYSTEM_PRESHUTDOWN, &OnPreShutdown);