From d75fed3bfc9c252f5d20b889e0bec95fb0a4527e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 28 Mar 2018 14:28:40 +0300 Subject: code cleaning --- plugins/Exchange/src/exchange.cpp | 30 +++++++----------------------- plugins/Exchange/src/stdafx.h | 3 ++- 2 files changed, 9 insertions(+), 24 deletions(-) (limited to 'plugins/Exchange/src') diff --git a/plugins/Exchange/src/exchange.cpp b/plugins/Exchange/src/exchange.cpp index 0a0ef5f291..d9932b1b80 100644 --- a/plugins/Exchange/src/exchange.cpp +++ b/plugins/Exchange/src/exchange.cpp @@ -38,14 +38,10 @@ PLUGININFOEX pluginInfo = { __AUTHORWEB, UNICODE_AWARE, {0x2fd0df15, 0x7098, 0x41ce, {0xaa, 0x92, 0xff, 0x62, 0x18, 0x06, 0xe3, 0x8b}} //{2fd0df15-7098-41ce-aa92-ff621806e38b} -}; //not used - -//OLD_MIRANDAPLUGININFO_SUPPORT; +}; extern "C" __declspec(dllexport) PLUGININFOEX *MirandaPluginInfoEx(DWORD) { -// Log("%s", "Entering function " __FUNCTION__); -// Log("%s", "Leaving function " __FUNCTION__); return &pluginInfo; } @@ -53,39 +49,27 @@ extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = {MIID_EXCHANG extern "C" int __declspec(dllexport) Load() { -// Log("%s", "Entering function " __FUNCTION__); - //pluginLink = link; mir_getLP( &pluginInfo ); -// Log("%s", "Initialising miranda memory functions"); -// InitializeMirandaMemFunctions(); hiMailIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_MAIL)); -// Log("%s", "Creating service functions ..."); InitServices(); -// Log("%s", "Hooking events ..."); HookEvents(); return 0; } extern "C" int __declspec(dllexport) Unload() { -// Log("%s", "Entering function " __FUNCTION__); -// Log("%s", "Unhooking events ..."); - -// Log("%s", "Destroying service functions ..."); DestroyServices(); -// DestroyEvents(); UnhookEvents(); - -// Log("%s", "Leaving function " __FUNCTION__); return 0; } -extern "C" bool WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID) +///////////////////////////////////////////////////////////////////////////////////////// + +BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID) { hInstance = hinstDLL; //save global instance if (fdwReason == DLL_PROCESS_ATTACH) - { - DisableThreadLibraryCalls(hinstDLL); - } + DisableThreadLibraryCalls(hinstDLL); + return TRUE; -} \ No newline at end of file +} diff --git a/plugins/Exchange/src/stdafx.h b/plugins/Exchange/src/stdafx.h index 54a29c3752..1358ddbb07 100644 --- a/plugins/Exchange/src/stdafx.h +++ b/plugins/Exchange/src/stdafx.h @@ -39,7 +39,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include #include #include -#include "m_utils.h" +#include +#include #include "resource.h" #include "version.h" -- cgit v1.2.3