From 0fc666ba4c6939b51e25d0175928f9b0eb64a938 Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Sun, 17 May 2015 21:20:54 +0000 Subject: Exchange: unified project git-svn-id: http://svn.miranda-ng.org/main/trunk@13666 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Exchange/Exchange.vcxproj | 38 +++++ plugins/Exchange/Exchange.vcxproj.filters | 4 + plugins/Exchange/Exchange_10.vcxproj | 218 -------------------------- plugins/Exchange/Exchange_10.vcxproj.filters | 90 ----------- plugins/Exchange/Exchange_12.vcxproj | 221 --------------------------- plugins/Exchange/Exchange_12.vcxproj.filters | 90 ----------- plugins/Exchange/src/MirandaExchange.cpp | 24 +-- plugins/Exchange/src/commonheaders.h | 59 ------- plugins/Exchange/src/dlg_handlers.cpp | 2 +- plugins/Exchange/src/emails.cpp | 4 +- plugins/Exchange/src/exchange.cpp | 6 +- plugins/Exchange/src/hooked_events.cpp | 8 +- plugins/Exchange/src/services.cpp | 4 +- plugins/Exchange/src/stdafx.cpp | 18 --- plugins/Exchange/src/stdafx.cxx | 18 +++ plugins/Exchange/src/stdafx.h | 59 +++++++ plugins/Exchange/src/utils.cpp | 4 +- 17 files changed, 136 insertions(+), 731 deletions(-) create mode 100644 plugins/Exchange/Exchange.vcxproj create mode 100644 plugins/Exchange/Exchange.vcxproj.filters delete mode 100644 plugins/Exchange/Exchange_10.vcxproj delete mode 100644 plugins/Exchange/Exchange_10.vcxproj.filters delete mode 100644 plugins/Exchange/Exchange_12.vcxproj delete mode 100644 plugins/Exchange/Exchange_12.vcxproj.filters delete mode 100644 plugins/Exchange/src/commonheaders.h delete mode 100644 plugins/Exchange/src/stdafx.cpp create mode 100644 plugins/Exchange/src/stdafx.cxx create mode 100644 plugins/Exchange/src/stdafx.h (limited to 'plugins') diff --git a/plugins/Exchange/Exchange.vcxproj b/plugins/Exchange/Exchange.vcxproj new file mode 100644 index 0000000000..aebac44eb0 --- /dev/null +++ b/plugins/Exchange/Exchange.vcxproj @@ -0,0 +1,38 @@ + + + + + Debug + Win32 + + + Debug + x64 + + + Release + Win32 + + + Release + x64 + + + + Exchange + {F462FDA1-BDCD-49B2-B996-D7DE71D07393} + + + + + + + mapi32.lib;ws2_32.lib;%(AdditionalDependencies) + + + + + Sync + + + \ No newline at end of file diff --git a/plugins/Exchange/Exchange.vcxproj.filters b/plugins/Exchange/Exchange.vcxproj.filters new file mode 100644 index 0000000000..de5ad9f66c --- /dev/null +++ b/plugins/Exchange/Exchange.vcxproj.filters @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/plugins/Exchange/Exchange_10.vcxproj b/plugins/Exchange/Exchange_10.vcxproj deleted file mode 100644 index 977d4b4cab..0000000000 --- a/plugins/Exchange/Exchange_10.vcxproj +++ /dev/null @@ -1,218 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - - - - - - - - - - - - - - - - - - - Create - - - - - - - - - - - - - - - Exchange - {F462FDA1-BDCD-49B2-B996-D7DE71D07393} - - - - DynamicLibrary - Unicode - true - - - DynamicLibrary - Unicode - - - DynamicLibrary - true - Unicode - - - DynamicLibrary - Unicode - - - - - - - - - - - - - - - - - - - <_ProjectFileVersion>10.0.30319.1 - $(SolutionDir)$(Configuration)\Plugins\ - $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)\Plugins\ - $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)64\Plugins\ - $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)64\Plugins\ - $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ - true - - - - Disabled - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - true - EnableFastChecks - MultiThreadedDebugDLL - Level3 - EditAndContinue - 4996;%(DisableSpecificWarnings) - Use - commonheaders.h - - - true - Windows - false - $(IntDir)$(TargetName).lib - $(ProfileDir)..\..\bin10\lib - mapi32.lib;ws2_32.lib;%(AdditionalDependencies) - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - - - Full - OnlyExplicitInline - Size - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - true - false - Fast - Level3 - 4996;%(DisableSpecificWarnings) - Use - commonheaders.h - - - true - Windows - true - true - false - $(IntDir)$(TargetName).lib - $(ProfileDir)..\..\bin10\lib - /PDBALTPATH:%_PDB% - mapi32.lib;ws2_32.lib;%(AdditionalDependencies) - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - - - Full - OnlyExplicitInline - Size - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - true - Level3 - Use - commonheaders.h - - - true - true - $(IntDir)$(TargetName).lib - true - Windows - false - $(ProfileDir)..\..\bin10\lib - /PDBALTPATH:%_PDB% - mapi32.lib;ws2_32.lib;%(AdditionalDependencies) - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - - - EnableFastChecks - MultiThreadedDebugDLL - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - Disabled - Level3 - Use - commonheaders.h - - - $(IntDir)$(TargetName).lib - false - true - Windows - $(ProfileDir)..\..\bin10\lib - mapi32.lib;ws2_32.lib;%(AdditionalDependencies) - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - - - - \ No newline at end of file diff --git a/plugins/Exchange/Exchange_10.vcxproj.filters b/plugins/Exchange/Exchange_10.vcxproj.filters deleted file mode 100644 index 1e2cda5b26..0000000000 --- a/plugins/Exchange/Exchange_10.vcxproj.filters +++ /dev/null @@ -1,90 +0,0 @@ - - - - - {24d86034-8014-45b2-83d7-5b0f0dcd7302} - - - {db8d9eca-31e8-4d72-b8bf-f83f663d6fd4} - - - {bd7eb20f-c543-40d6-9556-32b3c127a442} - - - {3f25d4df-9d63-4d91-955f-04d8f3279908} - - - - - Header files - - - Header files - - - Header files - - - Header files - - - Header files - - - Header files - - - Header files - - - Header files - - - Header files - - - - - Source files - - - Source files - - - Source files - - - Source files - - - Source files - - - Source files - - - Source files - - - Source files - - - - - Resource files - - - Resource files - - - - - - - Resource files\Icons - - - Resource files\Icons - - - \ No newline at end of file diff --git a/plugins/Exchange/Exchange_12.vcxproj b/plugins/Exchange/Exchange_12.vcxproj deleted file mode 100644 index c13690bae3..0000000000 --- a/plugins/Exchange/Exchange_12.vcxproj +++ /dev/null @@ -1,221 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - - - - - - - - - - - - - - - - - - - Create - - - - - - - - - - - - - - - Exchange - {F462FDA1-BDCD-49B2-B996-D7DE71D07393} - - - - DynamicLibrary - Unicode - true - v120_xp - - - DynamicLibrary - Unicode - v120_xp - - - DynamicLibrary - true - Unicode - v120_xp - - - DynamicLibrary - Unicode - v120_xp - - - - - - - - - - - - - - - - - - - <_ProjectFileVersion>10.0.30319.1 - $(SolutionDir)$(Configuration)\Plugins\ - $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)\Plugins\ - $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)64\Plugins\ - $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)64\Plugins\ - $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ - true - - - - Disabled - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - true - EnableFastChecks - MultiThreadedDebugDLL - Level3 - EditAndContinue - 4996;%(DisableSpecificWarnings) - Use - commonheaders.h - - - true - Windows - false - $(IntDir)$(TargetName).lib - $(ProfileDir)..\..\bin12\lib - mapi32.lib;ws2_32.lib;%(AdditionalDependencies) - false - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - - - Full - OnlyExplicitInline - Size - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - true - false - Fast - Level3 - 4996;%(DisableSpecificWarnings) - Use - commonheaders.h - - - true - Windows - true - true - false - $(IntDir)$(TargetName).lib - $(ProfileDir)..\..\bin12\lib - mapi32.lib;ws2_32.lib;%(AdditionalDependencies) - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - - - Full - OnlyExplicitInline - Size - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - true - Level3 - Use - commonheaders.h - - - true - true - $(IntDir)$(TargetName).lib - true - Windows - false - $(ProfileDir)..\..\bin12\lib - mapi32.lib;ws2_32.lib;%(AdditionalDependencies) - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - - - EnableFastChecks - MultiThreadedDebugDLL - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - Disabled - Level3 - Use - commonheaders.h - - - $(IntDir)$(TargetName).lib - false - true - Windows - $(ProfileDir)..\..\bin12\lib - mapi32.lib;ws2_32.lib;%(AdditionalDependencies) - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - - - - \ No newline at end of file diff --git a/plugins/Exchange/Exchange_12.vcxproj.filters b/plugins/Exchange/Exchange_12.vcxproj.filters deleted file mode 100644 index 9275eb59ad..0000000000 --- a/plugins/Exchange/Exchange_12.vcxproj.filters +++ /dev/null @@ -1,90 +0,0 @@ - - - - - {24d86034-8014-45b2-83d7-5b0f0dcd7302} - - - {db8d9eca-31e8-4d72-b8bf-f83f663d6fd4} - - - {bd7eb20f-c543-40d6-9556-32b3c127a442} - - - {37c6ef20-3ee3-44d1-a83e-18d4ea8d732d} - - - - - Header files - - - Header files - - - Header files - - - Header files - - - Header files - - - Header files - - - Header files - - - Header files - - - Header files - - - - - Source files - - - Source files - - - Source files - - - Source files - - - Source files - - - Source files - - - Source files - - - Source files - - - - - Resource files - - - Resource files - - - - - - - Resource files\Icons - - - Resource files\Icons - - - \ No newline at end of file diff --git a/plugins/Exchange/src/MirandaExchange.cpp b/plugins/Exchange/src/MirandaExchange.cpp index 6061633626..ba0bc86861 100644 --- a/plugins/Exchange/src/MirandaExchange.cpp +++ b/plugins/Exchange/src/MirandaExchange.cpp @@ -29,7 +29,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. purpose: Miranda Exchange Plugin *********************************************************************/ -#include "commonheaders.h" +#include "stdafx.h" #include "MirandaExchange.h" #include "utils.h" @@ -163,9 +163,6 @@ CKeeper::~CKeeper() CMirandaExchange::CMirandaExchange() { - UINT nSize = 0; - short nSizeOfTCHAR = sizeof( TCHAR ); - m_szUsername = NULL ; m_szPassword = NULL ; m_szExchangeServer = NULL ; @@ -426,7 +423,6 @@ HRESULT CMirandaExchange::InitializeAndLogin( LPCTSTR szUsername, LPCTSTR szPass if (!m_bLoginOK || m_lpInbox || NULL == m_lpMAPISession) { HRESULT hr = S_OK; - LPMDB lpMDB = NULL; MAPIINIT_0 mapiInit = { MAPI_INIT_VERSION , MAPI_MULTITHREAD_NOTIFICATIONS }; if ( !m_bNoInitAgain) { @@ -590,7 +586,7 @@ HRESULT CMirandaExchange::CreateProfile( LPTSTR szProfileName ) return hr; } -HRESULT CMirandaExchange::isMapiSessionOK( LPMAPISESSION lpSession ) +HRESULT CMirandaExchange::isMapiSessionOK( LPMAPISESSION ) { return S_OK; } @@ -692,16 +688,6 @@ HRESULT CMirandaExchange::LogOFF() HRESULT CMirandaExchange::MarkAsRead( LPTSTR szEntryID ) { LPMESSAGE lpMessage = NULL ; - - SizedSPropTagArray(3,sptaFlags) = - { - 3, - { PR_ENTRYID , - PR_MESSAGE_FLAGS, - PR_SENDER_NAME - } - }; - LPBYTE lpData = NULL ; ULONG ulC = 0 ; @@ -730,7 +716,6 @@ HRESULT CMirandaExchange::CheckInFolder( LPMAPIFOLDER lpFolder ) LPSRowSet lpRow = NULL; LPSPropValue lpRowProp = NULL; ULONG i = 0L; - ULONG *lpcbeid = NULL; TCHAR* szSenderName = NULL; TCHAR* szSubject = NULL; LPSTR szEntryID = NULL; @@ -827,7 +812,6 @@ HRESULT CMirandaExchange::CheckInFolder( LPMAPIFOLDER lpFolder ) } }; - ULONG ulObjType = 0L; hr = MAPICALL( lpFolder)->GetHierarchyTable( MAPI_DEFERRED_ERRORS, &lpTable); if (!FAILED(hr)) { @@ -852,7 +836,7 @@ HRESULT CMirandaExchange::CheckInFolder( LPMAPIFOLDER lpFolder ) return hr; } -HRESULT CMirandaExchange::OpenTheMessage( LPTSTR szEntryID ) +HRESULT CMirandaExchange::OpenTheMessage( LPTSTR ) { //(Default)//// HKEY_CLASSES_ROOT\mailto\shell\open\command HKEY hTheKey; @@ -888,8 +872,6 @@ HRESULT CMirandaExchange::OpenTheMessage( LPTSTR szEntryID ) STARTUPINFO si; PROCESS_INFORMATION pi; - DWORD dwCode = 0; - memset(&si, 0, sizeof(STARTUPINFO)); si.cb = sizeof ( STARTUPINFO); diff --git a/plugins/Exchange/src/commonheaders.h b/plugins/Exchange/src/commonheaders.h deleted file mode 100644 index 3fe791c0a1..0000000000 --- a/plugins/Exchange/src/commonheaders.h +++ /dev/null @@ -1,59 +0,0 @@ -/* -Exchange notifier plugin for Miranda IM - -Copyright © 2006 Cristian Libotean, Attila Vajda - -This program is free software; you can redistribute it and/or -modify it under the terms of the GNU General Public License -as published by the Free Software Foundation; either version 2 -of the License, or (at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -*/ -#ifndef M_EXCHANGE_COMMONHEADERS_H -#define M_EXCHANGE_COMMONHEADERS_H -#if !defined(MIID_EXCHANGE) - #define MIID_EXCHANGE {0xcfd79a89, 0x9959, 0x4e65, {0xb0, 0x76, 0x41, 0x3f, 0x98, 0xfe, 0x0d, 0x15}} -#endif - -#define EXCHANGE_PORT 25 -#define DEFAULT_INTERVAL 60 //in seconds -#define DEFAULT_RECONNECT_INTERVAL 10 //in minutes - -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include "m_utils.h" - -#include "resource.h" -#include "version.h" -#include "utils.h" -#include "emails.h" -#include "services.h" -#include "hooked_events.h" - -extern char ModuleName[]; -extern HINSTANCE hInstance; -extern HICON hiMailIcon; -extern HWND hEmailsDlg; - - - -#endif //M_EXCHANGE_COMMONHEADERS_H \ No newline at end of file diff --git a/plugins/Exchange/src/dlg_handlers.cpp b/plugins/Exchange/src/dlg_handlers.cpp index 1292a143aa..754cefb113 100644 --- a/plugins/Exchange/src/dlg_handlers.cpp +++ b/plugins/Exchange/src/dlg_handlers.cpp @@ -18,7 +18,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "commonheaders.h" +#include "stdafx.h" #include "dlg_handlers.h" #define MIN_EMAILS_WIDTH 300 diff --git a/plugins/Exchange/src/emails.cpp b/plugins/Exchange/src/emails.cpp index a0d9cdab37..30a2d1fdc0 100644 --- a/plugins/Exchange/src/emails.cpp +++ b/plugins/Exchange/src/emails.cpp @@ -18,7 +18,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "commonheaders.h" +#include "stdafx.h" #include "dlg_handlers.h" #include "emails.h" @@ -93,7 +93,7 @@ int CExchangeServer::Disconnect() // return -1; //0 on success, != 0 otherwise } -int CExchangeServer::DoConnect(TCHAR *user, TCHAR *password, TCHAR *server, int port) +int CExchangeServer::DoConnect(TCHAR *user, TCHAR *password, TCHAR *server, int) { if (bTryConnect) diff --git a/plugins/Exchange/src/exchange.cpp b/plugins/Exchange/src/exchange.cpp index 94b199adcf..97ef9250bb 100644 --- a/plugins/Exchange/src/exchange.cpp +++ b/plugins/Exchange/src/exchange.cpp @@ -18,7 +18,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "commonheaders.h" +#include "stdafx.h" char ModuleName[] = "ExchangeNotify"; HINSTANCE hInstance; @@ -45,7 +45,7 @@ PLUGININFOEX pluginInfo = { //OLD_MIRANDAPLUGININFO_SUPPORT; -extern "C" __declspec(dllexport) PLUGININFOEX *MirandaPluginInfoEx(DWORD mirandaVersion) +extern "C" __declspec(dllexport) PLUGININFOEX *MirandaPluginInfoEx(DWORD) { // Log("%s", "Entering function " __FUNCTION__); // Log("%s", "Leaving function " __FUNCTION__); @@ -83,7 +83,7 @@ extern "C" int __declspec(dllexport) Unload() return 0; } -extern "C" bool WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved) +extern "C" bool WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID) { hInstance = hinstDLL; //save global instance if (fdwReason == DLL_PROCESS_ATTACH) diff --git a/plugins/Exchange/src/hooked_events.cpp b/plugins/Exchange/src/hooked_events.cpp index c418ecc299..5df16e1cc1 100644 --- a/plugins/Exchange/src/hooked_events.cpp +++ b/plugins/Exchange/src/hooked_events.cpp @@ -18,7 +18,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "commonheaders.h" +#include "stdafx.h" #include "dlg_handlers.h" #include "hooked_events.h" @@ -56,7 +56,7 @@ int UnhookEvents() return 0; } -int OnModulesLoaded(WPARAM wParam, LPARAM lParam) +int OnModulesLoaded(WPARAM, LPARAM) { UpdateTimers(); @@ -142,7 +142,7 @@ int KillTimers() return 0; } -VOID CALLBACK OnCheckTimer(HWND hWnd, UINT msg, UINT_PTR idEvent, DWORD dwTime) +VOID CALLBACK OnCheckTimer(HWND, UINT, UINT_PTR, DWORD) { /*if (exchangeServer.IsConnected()) { @@ -159,7 +159,7 @@ VOID CALLBACK OnCheckTimer(HWND hWnd, UINT msg, UINT_PTR idEvent, DWORD dwTime) } } -VOID CALLBACK OnReconnectTimer(HWND hWnd, UINT msg, UINT_PTR idEvent, DWORD dwTime) +VOID CALLBACK OnReconnectTimer(HWND, UINT, UINT_PTR, DWORD) { _popupUtil(TranslateT("Forcefully reconnecting to Exchange server ...")); diff --git a/plugins/Exchange/src/services.cpp b/plugins/Exchange/src/services.cpp index c6a7beb665..092cb34e13 100644 --- a/plugins/Exchange/src/services.cpp +++ b/plugins/Exchange/src/services.cpp @@ -18,7 +18,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "commonheaders.h" +#include "stdafx.h" #include "services.h" int InitServices() @@ -33,7 +33,7 @@ int DestroyServices() return 0; } -int CheckEmailService(WPARAM wParam, LPARAM lParam) +int CheckEmailService(WPARAM, LPARAM) { /* if (!exchangeServer.IsConnected()) diff --git a/plugins/Exchange/src/stdafx.cpp b/plugins/Exchange/src/stdafx.cpp deleted file mode 100644 index 048b14e9d2..0000000000 --- a/plugins/Exchange/src/stdafx.cpp +++ /dev/null @@ -1,18 +0,0 @@ -/* -Copyright (C) 2012-15 Miranda NG project (http://miranda-ng.org) - -This program is free software; you can redistribute it and/or -modify it under the terms of the GNU General Public License -as published by the Free Software Foundation version 2 -of the License. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . -*/ - -#include "commonheaders.h" \ No newline at end of file diff --git a/plugins/Exchange/src/stdafx.cxx b/plugins/Exchange/src/stdafx.cxx new file mode 100644 index 0000000000..6fb37564b7 --- /dev/null +++ b/plugins/Exchange/src/stdafx.cxx @@ -0,0 +1,18 @@ +/* +Copyright (C) 2012-15 Miranda NG project (http://miranda-ng.org) + +This program is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License +as published by the Free Software Foundation version 2 +of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . +*/ + +#include "stdafx.h" \ No newline at end of file diff --git a/plugins/Exchange/src/stdafx.h b/plugins/Exchange/src/stdafx.h new file mode 100644 index 0000000000..3fe791c0a1 --- /dev/null +++ b/plugins/Exchange/src/stdafx.h @@ -0,0 +1,59 @@ +/* +Exchange notifier plugin for Miranda IM + +Copyright © 2006 Cristian Libotean, Attila Vajda + +This program is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License +as published by the Free Software Foundation; either version 2 +of the License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +*/ +#ifndef M_EXCHANGE_COMMONHEADERS_H +#define M_EXCHANGE_COMMONHEADERS_H +#if !defined(MIID_EXCHANGE) + #define MIID_EXCHANGE {0xcfd79a89, 0x9959, 0x4e65, {0xb0, 0x76, 0x41, 0x3f, 0x98, 0xfe, 0x0d, 0x15}} +#endif + +#define EXCHANGE_PORT 25 +#define DEFAULT_INTERVAL 60 //in seconds +#define DEFAULT_RECONNECT_INTERVAL 10 //in minutes + +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "m_utils.h" + +#include "resource.h" +#include "version.h" +#include "utils.h" +#include "emails.h" +#include "services.h" +#include "hooked_events.h" + +extern char ModuleName[]; +extern HINSTANCE hInstance; +extern HICON hiMailIcon; +extern HWND hEmailsDlg; + + + +#endif //M_EXCHANGE_COMMONHEADERS_H \ No newline at end of file diff --git a/plugins/Exchange/src/utils.cpp b/plugins/Exchange/src/utils.cpp index 9bf2c6277d..d973492787 100644 --- a/plugins/Exchange/src/utils.cpp +++ b/plugins/Exchange/src/utils.cpp @@ -18,7 +18,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "commonheaders.h" +#include "stdafx.h" #include "utils.h" #define ___DEB @@ -34,7 +34,7 @@ int LogInit() return 0; } -int Log(char *format, ...) +int Log(char*, ...) { #ifdef ___DEBUGG char str[4096]; -- cgit v1.2.3