From 712a95b62ed7ed6aef9ab078ccd4ac685f34b42c Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Fri, 24 Apr 2015 21:52:13 +0000 Subject: AutoShutdown - common project git-svn-id: http://svn.miranda-ng.org/main/trunk@13114 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/AutoShutdown/shutdown.vcxproj | 38 +++ plugins/AutoShutdown/shutdown.vcxproj.filters | 406 +++++++++++++++++++++++ plugins/AutoShutdown/shutdown_10.vcxproj | 229 ------------- plugins/AutoShutdown/shutdown_10.vcxproj.filters | 100 ------ plugins/AutoShutdown/shutdown_12.vcxproj | 232 ------------- plugins/AutoShutdown/shutdown_12.vcxproj.filters | 89 ----- plugins/AutoShutdown/src/cpuusage.cpp | 2 +- plugins/AutoShutdown/src/frame.cpp | 14 +- plugins/AutoShutdown/src/main.cpp | 6 +- plugins/AutoShutdown/src/options.cpp | 4 +- plugins/AutoShutdown/src/settingsdlg.cpp | 5 +- plugins/AutoShutdown/src/shutdownsvc.cpp | 3 +- plugins/AutoShutdown/src/stdafx.cpp | 18 - plugins/AutoShutdown/src/stdafx.cxx | 18 + plugins/AutoShutdown/src/stdafx.h | 75 +++++ plugins/AutoShutdown/src/utils.cpp | 2 +- plugins/AutoShutdown/src/watcher.cpp | 8 +- 17 files changed, 553 insertions(+), 696 deletions(-) create mode 100644 plugins/AutoShutdown/shutdown.vcxproj create mode 100644 plugins/AutoShutdown/shutdown.vcxproj.filters delete mode 100644 plugins/AutoShutdown/shutdown_10.vcxproj delete mode 100644 plugins/AutoShutdown/shutdown_10.vcxproj.filters delete mode 100644 plugins/AutoShutdown/shutdown_12.vcxproj delete mode 100644 plugins/AutoShutdown/shutdown_12.vcxproj.filters delete mode 100644 plugins/AutoShutdown/src/stdafx.cpp create mode 100644 plugins/AutoShutdown/src/stdafx.cxx create mode 100644 plugins/AutoShutdown/src/stdafx.h (limited to 'plugins/AutoShutdown') diff --git a/plugins/AutoShutdown/shutdown.vcxproj b/plugins/AutoShutdown/shutdown.vcxproj new file mode 100644 index 0000000000..e2a4b4eced --- /dev/null +++ b/plugins/AutoShutdown/shutdown.vcxproj @@ -0,0 +1,38 @@ + + + + + Debug + Win32 + + + Debug + x64 + + + Release + Win32 + + + Release + x64 + + + + AutoShutdown + {3F8EF54D-0593-4048-B0E5-C938F99B29F3} + + + + + + + NotUsing + + + + + comctl32.lib;UxTheme.lib;Shlwapi.lib;PowrProf.lib;Rasapi32.lib;%(AdditionalDependencies) + + + \ No newline at end of file diff --git a/plugins/AutoShutdown/shutdown.vcxproj.filters b/plugins/AutoShutdown/shutdown.vcxproj.filters new file mode 100644 index 0000000000..c3f6e0e940 --- /dev/null +++ b/plugins/AutoShutdown/shutdown.vcxproj.filters @@ -0,0 +1,406 @@ + + + + + + Source Files + + + Source Files + + + + + + + + + + Source Files + + + + + + + + + + Source Files + + + + + + + + + + Source Files + + + + + + + + + + Source Files + + + + + + + + + + Source Files + + + + + + + + + + Source Files + + + + + + + + + + Source Files + + + + + + + + + + Source Files + + + + + + + + + + Source Files + + + + + + + + + + Source Files + + + + + + + + + + Source Files + + + + + + + + + + Source Files + + + + + + + + + + Source Files + + + + + + + + + + Source Files + + + + + + + + + + Source Files + + + + + Header Files + + + + + + + + + + + + Header Files + + + + + + + + + + + + Header Files + + + + + + + + + + + + Header Files + + + + + + + + + + + + Header Files + + + + + + + + + + + + Header Files + + + + + + + + + + + + Header Files + + + + + + + + + + + + Header Files + + + + + + + + + + + + Header Files + + + + + + + + + + + + Header Files + + + + + + + + + + + + Header Files + + + + + + + + + + + + Header Files + + + + + + + + + + + + Header Files + + + + + + + + + + + + Header Files + + + + + + + + + + + + Header Files + + + + + + + + + + + + Header Files + + + + + + + + + + + + Header Files + + + + + + + + + + + + Header Files + + + + + + + + + + + + Header Files + + + + + + + + + + + + + + Resource Files + + + + Resource Files + + + + Resource Files + + + + \ No newline at end of file diff --git a/plugins/AutoShutdown/shutdown_10.vcxproj b/plugins/AutoShutdown/shutdown_10.vcxproj deleted file mode 100644 index 6f5b364687..0000000000 --- a/plugins/AutoShutdown/shutdown_10.vcxproj +++ /dev/null @@ -1,229 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - AutoShutdown - {3F8EF54D-0593-4048-B0E5-C938F99B29F3} - - - - DynamicLibrary - Unicode - true - - - DynamicLibrary - Unicode - true - - - DynamicLibrary - 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 - - - - MultiThreadedDebugDLL - false - Disabled - Level3 - true - EditAndContinue - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - EnableFastChecks - Use - common.h - false - - - ..\..\include\msapi - _DEBUG;%(PreprocessorDefinitions) - - - true - true - Windows - $(IntDir)$(TargetName).lib - 0x11070000 - comctl32.lib;UxTheme.lib;Shlwapi.lib;PowrProf.lib;Rasapi32.lib;%(AdditionalDependencies) - false - $(ProfileDir)..\..\bin10\lib - - - - - MultiThreadedDebugDLL - false - Disabled - Level3 - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - EnableFastChecks - Use - common.h - false - - - ..\..\include\msapi - _DEBUG;%(PreprocessorDefinitions) - - - true - true - Windows - $(IntDir)$(TargetName).lib - 0x11070000 - comctl32.lib;UxTheme.lib;Shlwapi.lib;PowrProf.lib;Rasapi32.lib;%(AdditionalDependencies) - false - $(ProfileDir)..\..\bin10\lib - - - - - OnlyExplicitInline - true - true - Full - Level3 - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - Size - Use - common.h - false - - - ..\..\include\msapi - NDEBUG;%(PreprocessorDefinitions) - - - true - true - Windows - $(IntDir)$(TargetName).lib - 0x11070000 - true - true - false - $(ProfileDir)..\..\bin10\lib - comctl32.lib;UxTheme.lib;Shlwapi.lib;PowrProf.lib;Rasapi32.lib;%(AdditionalDependencies) - /PDBALTPATH:%_PDB% - - - - - OnlyExplicitInline - true - true - Full - Level3 - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - Size - Use - common.h - false - - - ..\..\include\msapi - NDEBUG;%(PreprocessorDefinitions) - - - true - true - Windows - $(IntDir)$(TargetName).lib - 0x11070000 - comctl32.lib;UxTheme.lib;Shlwapi.lib;PowrProf.lib;Rasapi32.lib;%(AdditionalDependencies) - true - true - false - $(ProfileDir)..\..\bin10\lib - /PDBALTPATH:%_PDB% - - - - - NotUsing - - - - - Create - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/plugins/AutoShutdown/shutdown_10.vcxproj.filters b/plugins/AutoShutdown/shutdown_10.vcxproj.filters deleted file mode 100644 index 6935ea22ff..0000000000 --- a/plugins/AutoShutdown/shutdown_10.vcxproj.filters +++ /dev/null @@ -1,100 +0,0 @@ - - - - - {e2b24b11-cf5a-4c4d-b030-7c2712302456} - cpp;c;cxx;rc;def;r;odl;idl;hpj;bat - - - {88683126-7ad0-4693-9acf-7ce091d815e5} - h;hpp;hxx;hm;inl - - - {6fa287d2-ba8a-43ba-9cff-72ad37c5d522} - ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe - - - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - - - Resource Files - - - Resource Files - - - - - Resource Files - - - Resource Files - - - Resource Files - - - \ No newline at end of file diff --git a/plugins/AutoShutdown/shutdown_12.vcxproj b/plugins/AutoShutdown/shutdown_12.vcxproj deleted file mode 100644 index 262a7bbcd5..0000000000 --- a/plugins/AutoShutdown/shutdown_12.vcxproj +++ /dev/null @@ -1,232 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - AutoShutdown - {3F8EF54D-0593-4048-B0E5-C938F99B29F3} - - - - DynamicLibrary - Unicode - true - v120_xp - - - DynamicLibrary - Unicode - true - v120_xp - - - DynamicLibrary - 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 - - - - MultiThreadedDebugDLL - false - Disabled - Level3 - true - EditAndContinue - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - EnableFastChecks - Use - common.h - false - - - ..\..\include\msapi - _DEBUG;%(PreprocessorDefinitions) - - - true - true - Windows - $(IntDir)$(TargetName).lib - 0x11070000 - comctl32.lib;UxTheme.lib;Shlwapi.lib;PowrProf.lib;Rasapi32.lib;%(AdditionalDependencies) - false - $(ProfileDir)..\..\bin12\lib - false - - - - - MultiThreadedDebugDLL - false - Disabled - Level3 - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - EnableFastChecks - Use - common.h - false - - - ..\..\include\msapi - _DEBUG;%(PreprocessorDefinitions) - - - true - true - Windows - $(IntDir)$(TargetName).lib - 0x11070000 - comctl32.lib;UxTheme.lib;Shlwapi.lib;PowrProf.lib;Rasapi32.lib;%(AdditionalDependencies) - false - $(ProfileDir)..\..\bin12\lib - - - - - OnlyExplicitInline - true - true - Full - Level3 - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - Size - Use - common.h - false - - - ..\..\include\msapi - NDEBUG;%(PreprocessorDefinitions) - - - true - true - Windows - $(IntDir)$(TargetName).lib - 0x11070000 - true - true - false - $(ProfileDir)..\..\bin12\lib - comctl32.lib;UxTheme.lib;Shlwapi.lib;PowrProf.lib;Rasapi32.lib;%(AdditionalDependencies) - - - - - OnlyExplicitInline - true - true - Full - Level3 - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - Size - Use - common.h - false - - - ..\..\include\msapi - NDEBUG;%(PreprocessorDefinitions) - - - true - true - Windows - $(IntDir)$(TargetName).lib - 0x11070000 - comctl32.lib;UxTheme.lib;Shlwapi.lib;PowrProf.lib;Rasapi32.lib;%(AdditionalDependencies) - true - true - false - $(ProfileDir)..\..\bin12\lib - - - - - NotUsing - - - - - Create - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/plugins/AutoShutdown/shutdown_12.vcxproj.filters b/plugins/AutoShutdown/shutdown_12.vcxproj.filters deleted file mode 100644 index 8a65402039..0000000000 --- a/plugins/AutoShutdown/shutdown_12.vcxproj.filters +++ /dev/null @@ -1,89 +0,0 @@ - - - - - {e2b24b11-cf5a-4c4d-b030-7c2712302456} - cpp;c;cxx;rc;def;r;odl;idl;hpj;bat - - - {88683126-7ad0-4693-9acf-7ce091d815e5} - h;hpp;hxx;hm;inl - - - {6fa287d2-ba8a-43ba-9cff-72ad37c5d522} - ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe - - - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - - - Resource Files - - - Resource Files - - - \ No newline at end of file diff --git a/plugins/AutoShutdown/src/cpuusage.cpp b/plugins/AutoShutdown/src/cpuusage.cpp index cd30482e6d..4e710e4e92 100644 --- a/plugins/AutoShutdown/src/cpuusage.cpp +++ b/plugins/AutoShutdown/src/cpuusage.cpp @@ -19,7 +19,7 @@ along with this program (Shutdown-License.txt); if not, write to the Free Softwa Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "common.h" +#include "stdafx.h" /************************* Stat Switch ********************************/ diff --git a/plugins/AutoShutdown/src/frame.cpp b/plugins/AutoShutdown/src/frame.cpp index c9843510f0..efcc1c4071 100644 --- a/plugins/AutoShutdown/src/frame.cpp +++ b/plugins/AutoShutdown/src/frame.cpp @@ -19,7 +19,7 @@ along with this program (Shutdown-License.txt); if not, write to the Free Softwa Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "common.h" +#include "stdafx.h" /* Show Frame */ extern HINSTANCE hInst; @@ -58,15 +58,6 @@ static LOGFONT* GetDefaultFont(LOGFONT *lf) return (LOGFONT*)NULL; } -static HICON SetFrameTitleIcon(WORD hFrame,HICON hNewIcon) -{ - HICON hPrevIcon; - hPrevIcon=(HICON)CallService(MS_CLIST_FRAMES_GETFRAMEOPTIONS,MAKEWPARAM(FO_ICON,hFrame),0); - CallService(MS_CLIST_FRAMES_SETFRAMEOPTIONS,MAKEWPARAM(FO_ICON,hFrame),(LPARAM)hNewIcon); - if ((int)hPrevIcon==-1) return (HICON)NULL; - return hPrevIcon; -} - static LRESULT CALLBACK ProgressBarSubclassProc(HWND hwndProgress,UINT msg,WPARAM wParam,LPARAM lParam) { switch(msg) { @@ -232,7 +223,6 @@ static LRESULT CALLBACK FrameWndProc(HWND hwndFrame,UINT msg,WPARAM wParam,LPARA UnhookEvent(dat->hHookIconsChanged); /* other childs are destroyed automatically */ if (dat->hwndToolTip != NULL) DestroyWindow(dat->hwndToolTip); - HICON hIcon=(HICON)SendMessage(dat->hwndIcon,STM_SETIMAGE,IMAGE_ICON,0); break; } case WM_NCDESTROY: @@ -585,7 +575,7 @@ void CloseCountdownFrame(void) /************************* Misc ***************************************/ -static int FrameModulesLoaded(WPARAM wParam,LPARAM lParam) +static int FrameModulesLoaded(WPARAM, LPARAM) { if (ServiceExists(MS_CLIST_FRAMES_ADDFRAME)) { LOGFONT lf; diff --git a/plugins/AutoShutdown/src/main.cpp b/plugins/AutoShutdown/src/main.cpp index 0f3cfc1fc4..7962e5fe6b 100644 --- a/plugins/AutoShutdown/src/main.cpp +++ b/plugins/AutoShutdown/src/main.cpp @@ -18,7 +18,7 @@ along with this program (Shutdown-License.txt); if not, write to the Free Softwa Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "common.h" +#include "stdafx.h" HINSTANCE hInst; int hLangpack; @@ -44,7 +44,7 @@ IconItem iconList[] = { LPGEN("Inactive"), "AutoShutdown_Inactive", IDI_INACTIVE }, }; -BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, VOID *pReserved) +BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD, VOID*) { hInst = hinstDLL; return TRUE; @@ -60,7 +60,7 @@ static int ShutdownModulesLoaded(WPARAM,LPARAM) return 0; } -extern "C" __declspec(dllexport) const PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion) +extern "C" __declspec(dllexport) const PLUGININFOEX* MirandaPluginInfoEx(DWORD) { return &pluginInfo; } diff --git a/plugins/AutoShutdown/src/options.cpp b/plugins/AutoShutdown/src/options.cpp index 3f50077c07..0fa9d4f5e3 100644 --- a/plugins/AutoShutdown/src/options.cpp +++ b/plugins/AutoShutdown/src/options.cpp @@ -19,7 +19,7 @@ along with this program (Shutdown-License.txt); if not, write to the Free Softwa Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "common.h" +#include "stdafx.h" /* Option Page */ static HANDLE hHookOptInit; @@ -103,7 +103,7 @@ static INT_PTR CALLBACK ShutdownOptDlgProc(HWND hwndDlg,UINT msg,WPARAM wParam,L return FALSE; } -static int ShutdownOptInit(WPARAM wParam, LPARAM lParam) +static int ShutdownOptInit(WPARAM wParam, LPARAM) { OPTIONSDIALOGPAGE odp = { 0 }; odp.hInstance = hInst; diff --git a/plugins/AutoShutdown/src/settingsdlg.cpp b/plugins/AutoShutdown/src/settingsdlg.cpp index f78516f66a..70170abfe1 100644 --- a/plugins/AutoShutdown/src/settingsdlg.cpp +++ b/plugins/AutoShutdown/src/settingsdlg.cpp @@ -19,7 +19,7 @@ along with this program (Shutdown-License.txt); if not, write to the Free Softwa Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "common.h" +#include "stdafx.h" /* Menu Item */ static HANDLE hServiceMenuCommand; @@ -180,7 +180,6 @@ static INT_PTR CALLBACK SettingsDlgProc(HWND hwndDlg,UINT msg,WPARAM wParam,LPAR case WM_DESTROY: { Utils_SaveWindowPosition(hwndDlg,NULL,"AutoShutdown","SettingsDlg_"); - HICON hIcon=(HICON)SendDlgItemMessage(hwndDlg,IDC_ICON_HEADER,STM_SETIMAGE,IMAGE_ICON,0); HFONT hFont=(HFONT)SendDlgItemMessage(hwndDlg,IDC_TEXT_HEADER,WM_GETFONT,0,0); SendDlgItemMessage(hwndDlg,IDC_TEXT_HEADER,WM_SETFONT,0,FALSE); /* no return value */ if (hFont != NULL) DeleteObject(hFont); @@ -396,7 +395,7 @@ static INT_PTR CALLBACK SettingsDlgProc(HWND hwndDlg,UINT msg,WPARAM wParam,LPAR /************************* Services ***********************************/ -static INT_PTR ServiceShowSettingsDialog(WPARAM wParam,LPARAM lParam) +static INT_PTR ServiceShowSettingsDialog(WPARAM, LPARAM) { if (hwndSettingsDlg != NULL) { /* already opened, bring to front */ SetForegroundWindow(hwndSettingsDlg); diff --git a/plugins/AutoShutdown/src/shutdownsvc.cpp b/plugins/AutoShutdown/src/shutdownsvc.cpp index dde2ed0716..3de69ba4d2 100644 --- a/plugins/AutoShutdown/src/shutdownsvc.cpp +++ b/plugins/AutoShutdown/src/shutdownsvc.cpp @@ -19,7 +19,7 @@ along with this program (Shutdown-License.txt); if not, write to the Free Softwa Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "common.h" +#include "stdafx.h" /* Shutdown Dialog */ static HWND hwndShutdownDlg; @@ -343,7 +343,6 @@ static INT_PTR CALLBACK ShutdownDlgProc(HWND hwndDlg,UINT msg,WPARAM wParam,LPAR /* reallow foreground window changes (WinMe/2000+) */ LockSetForegroundWindow(LSFW_UNLOCK); Utils_SaveWindowPosition(hwndDlg,NULL,"AutoShutdown","ConfirmDlg_"); - HICON hIcon=(HICON)SendDlgItemMessage(hwndDlg,IDC_ICON_HEADER,STM_SETIMAGE,IMAGE_ICON,0); HFONT hFont=(HFONT)SendDlgItemMessage(hwndDlg,IDC_TEXT_HEADER,WM_GETFONT,0,0); SendDlgItemMessage(hwndDlg,IDC_TEXT_HEADER,WM_SETFONT,0,FALSE); /* no return value */ if (hFont != NULL) DeleteObject(hFont); diff --git a/plugins/AutoShutdown/src/stdafx.cpp b/plugins/AutoShutdown/src/stdafx.cpp deleted file mode 100644 index c5fe5abaad..0000000000 --- a/plugins/AutoShutdown/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 "common.h" \ No newline at end of file diff --git a/plugins/AutoShutdown/src/stdafx.cxx b/plugins/AutoShutdown/src/stdafx.cxx new file mode 100644 index 0000000000..6fb37564b7 --- /dev/null +++ b/plugins/AutoShutdown/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/AutoShutdown/src/stdafx.h b/plugins/AutoShutdown/src/stdafx.h new file mode 100644 index 0000000000..03a39e306d --- /dev/null +++ b/plugins/AutoShutdown/src/stdafx.h @@ -0,0 +1,75 @@ +/* + +'AutoShutdown'-Plugin for Miranda IM + +Copyright 2004-2007 H. Herkenrath + +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 (Shutdown-License.txt); if not, write to the Free Software +Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +*/ + +#include /* for mktime(),time() */ +#include +#include +#include +#include +#include + +/* WinXP+: shutdown reason codes */ +#if defined(EWX_RESTARTAPPS) /* new MS Platform SDK */ + #include +#else + #define SHTDN_REASON_MAJOR_OTHER 0x00000000 + #define SHTDN_REASON_MINOR_OTHER 0x00000000 + #define SHTDN_REASON_FLAG_PLANNED 0x80000000 +#endif + +/* RAS */ +#include /* for RasEnumConnections(), RasHangUp() */ +#include /* error codes for RAS */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "../Utils/mir_fonts.h" + +#include +#include +#include + +#include "cpuusage.h" +#include "frame.h" +#include "options.h" +#include "settingsdlg.h" +#include "shutdownsvc.h" +#include "utils.h" +#include "watcher.h" +#include "resource.h" +#include "version.h" + +extern IconItem iconList[]; \ No newline at end of file diff --git a/plugins/AutoShutdown/src/utils.cpp b/plugins/AutoShutdown/src/utils.cpp index 28b5932079..933ca57446 100644 --- a/plugins/AutoShutdown/src/utils.cpp +++ b/plugins/AutoShutdown/src/utils.cpp @@ -19,7 +19,7 @@ along with this program (Shutdown-License.txt); if not, write to the Free Softwa Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "common.h" +#include "stdafx.h" /************************* String *********************************/ diff --git a/plugins/AutoShutdown/src/watcher.cpp b/plugins/AutoShutdown/src/watcher.cpp index bce511ce8f..8efdf3a5c4 100644 --- a/plugins/AutoShutdown/src/watcher.cpp +++ b/plugins/AutoShutdown/src/watcher.cpp @@ -19,7 +19,7 @@ along with this program (Shutdown-License.txt); if not, write to the Free Softwa Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "common.h" +#include "stdafx.h" /* Msg Shutdown */ static HANDLE hHookEventAdded; @@ -89,7 +89,7 @@ static TCHAR* GetMessageText(BYTE **ppBlob,DWORD *pcbBlob) return (WCHAR*)buf; } -static int MsgEventAdded(WPARAM wParam,LPARAM hDbEvent) +static int MsgEventAdded(WPARAM, LPARAM hDbEvent) { if (currentWatcherType & SDWTF_MESSAGE) { DBEVENTINFO dbe = { sizeof(dbe) }; @@ -118,7 +118,7 @@ static int MsgEventAdded(WPARAM wParam,LPARAM hDbEvent) static HANDLE *transfers; static int nTransfersCount; -static int ProtoAck(WPARAM wParam,LPARAM lParam) +static int ProtoAck(WPARAM, LPARAM lParam) { ACKDATA *ack=(ACKDATA*)lParam; if (ack->type != ACKTYPE_FILE) @@ -244,7 +244,7 @@ static int WeatherUpdated(WPARAM wParam,LPARAM lParam) /************************* Services ***********************************/ -INT_PTR ServiceStartWatcher(WPARAM wParam,LPARAM lParam) +INT_PTR ServiceStartWatcher(WPARAM, LPARAM lParam) { /* passing watcherType as lParam is only to be used internally, undocumented */ if (lParam==0) -- cgit v1.2.3