diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2012-07-03 17:22:40 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2012-07-03 17:22:40 +0000 |
commit | ad4e888349c2d220828c93d2d50635ff23a6fc72 (patch) | |
tree | faec91eff1839928805c2fbfe6d04b37723dc028 /plugins/AutoShutdown | |
parent | 49566229022ee6e96eac0888f9c0501fcd92033b (diff) |
AutoShutdown:
plusified
git-svn-id: http://svn.miranda-ng.org/main/trunk@737 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/AutoShutdown')
-rw-r--r-- | plugins/AutoShutdown/common.h | 27 | ||||
-rw-r--r-- | plugins/AutoShutdown/cpuusage.cpp | 17 | ||||
-rw-r--r-- | plugins/AutoShutdown/frame.cpp | 4 | ||||
-rw-r--r-- | plugins/AutoShutdown/main.cpp | 72 | ||||
-rw-r--r-- | plugins/AutoShutdown/options.cpp | 2 | ||||
-rw-r--r-- | plugins/AutoShutdown/resource.rc | 1 | ||||
-rw-r--r-- | plugins/AutoShutdown/settingsdlg.cpp | 8 | ||||
-rw-r--r-- | plugins/AutoShutdown/shutdown.def | 11 | ||||
-rw-r--r-- | plugins/AutoShutdown/shutdown.dep | 394 | ||||
-rw-r--r-- | plugins/AutoShutdown/shutdown.dsp | 451 | ||||
-rw-r--r-- | plugins/AutoShutdown/shutdown.dsw | 29 | ||||
-rw-r--r-- | plugins/AutoShutdown/shutdown.mak | 435 | ||||
-rw-r--r-- | plugins/AutoShutdown/shutdown.sln | 29 | ||||
-rw-r--r-- | plugins/AutoShutdown/shutdown.vcxproj | 230 | ||||
-rw-r--r-- | plugins/AutoShutdown/shutdown.vcxproj.filters | 116 | ||||
-rw-r--r-- | plugins/AutoShutdown/shutdownsvc.cpp | 26 | ||||
-rw-r--r-- | plugins/AutoShutdown/utils.cpp | 20 | ||||
-rw-r--r-- | plugins/AutoShutdown/version.h | 18 | ||||
-rw-r--r-- | plugins/AutoShutdown/version.rc | 8 | ||||
-rw-r--r-- | plugins/AutoShutdown/watcher.cpp | 5 |
20 files changed, 442 insertions, 1461 deletions
diff --git a/plugins/AutoShutdown/common.h b/plugins/AutoShutdown/common.h index eec97b0873..2feca26b5f 100644 --- a/plugins/AutoShutdown/common.h +++ b/plugins/AutoShutdown/common.h @@ -21,16 +21,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include <stdio.h> /* for mir_sntprintf() */
#include <time.h> /* for mktime(),time() */
-#include <wchar.h> /* for _itow() */
#include <tchar.h>
-
-#define _WIN32_WINNT 0x0700
-#define __RPCASYNC_H__ /* VC6 shows warning there */
#include <windows.h>
-#pragma warning(disable:4201) /* nonstandard extension used : nameless struct/union */
#include <commctrl.h>
-#pragma warning(default:4201) /* nonstandard extension used : nameless struct/union */
-#include <win2k.h>
/* WinXP+: shutdown reason codes */
#if defined(EWX_RESTARTAPPS) /* new MS Platform SDK */
@@ -47,7 +40,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include <ras.h> /* for RasEnumConnections(), RasHangUp() */
#include <raserror.h> /* error codes for RAS */
-#define MIRANDA_VER 0x0702
+#define MIRANDA_VER 0x0A00
#include <newpluginapi.h>
#include <m_utils.h>
#include <m_database.h>
@@ -63,26 +56,28 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include <m_message.h>
#include <m_file.h>
#include <m_idle.h>
-#include <m_weather.h>
-#include <m_hddinfo.h>
+#include <win2k.h>
#include <m_cluiframes.h>
#include <m_clistint.h>
-#include <m_toptoolbar.h>
#include <m_fontservice.h>
-#include <m_hotkey.h>
-#include <m_hotkeysplus.h>
-#include <m_hotkeysservice.h>
#include <m_icolib.h>
#include <m_clc.h>
#include <m_genmenu.h>
+#include <m_button.h>
+
+#include <m_weather.h>
+#include <m_hddinfo.h>
+#include <m_toptoolbar.h>
+#include <m_hotkey.h>
+#include <m_hotkeysplus.h>
+#include <m_hotkeysservice.h>
#include <m_trigger.h>
#include <m_mwclc.h>
-#include <m_button.h>
#include <m_autoreplacer.h>
#include <m_magneticwindows.h>
#include <m_snappingwindows.h>
-
#include "m_shutdown.h"
+
#include "cpuusage.h"
#include "frame.h"
#include "options.h"
diff --git a/plugins/AutoShutdown/cpuusage.cpp b/plugins/AutoShutdown/cpuusage.cpp index 1270fe02ec..a1f4d4e5d3 100644 --- a/plugins/AutoShutdown/cpuusage.cpp +++ b/plugins/AutoShutdown/cpuusage.cpp @@ -117,8 +117,10 @@ static void Win9x_PollThread(struct CpuUsageThreadParams *param) }
#endif /* !_UNICODE */
-static void WinNT_PollThread(struct CpuUsageThreadParams *param)
+static void WinNT_PollThread(void *vparam)
{
+ CpuUsageThreadParams *param = (CpuUsageThreadParams*)vparam;
+
DWORD dwBufferSize=0,dwCount;
BYTE *pBuffer=NULL;
PERF_DATA_BLOCK *pPerfData=NULL;
@@ -143,8 +145,8 @@ static void WinNT_PollThread(struct CpuUsageThreadParams *param) dwCounterId=240; /* '% Total processor time' counter */
pwszInstanceName=NULL;
}
- _itow(dwObjectId,wszValueName,10);
- fSwitched=WinNT_PerfStatsSwitch(_T("PerfOS"),FALSE);
+ _itot_s(dwObjectId, wszValueName, 10);
+ fSwitched = WinNT_PerfStatsSwitch(_T("PerfOS"), FALSE);
/* poll */
for(;;) {
@@ -245,13 +247,10 @@ DWORD PollCpuUsage(CPUUSAGEAVAILPROC pfnDataAvailProc,LPARAM lParam,DWORD dwDela return 0;
}
/* start thread */
-#if defined(_UNICODE)
- if(mir_forkthread(WinNT_PollThread,param)!=-1)
-#else
- if(mir_forkthread(IsWinVerNT()?WinNT_PollThread:Win9x_PollThread,param)!=-1)
-#endif
+ if((int)mir_forkthread(WinNT_PollThread, param) != -1)
WaitForSingleObject(hFirstEvent,INFINITE); /* wait for first success */
- else mir_free(param); /* thread not started */
+ else
+ mir_free(param); /* thread not started */
CloseHandle(hFirstEvent);
return idThread;
}
diff --git a/plugins/AutoShutdown/frame.cpp b/plugins/AutoShutdown/frame.cpp index f9266b1906..8c288c5dba 100644 --- a/plugins/AutoShutdown/frame.cpp +++ b/plugins/AutoShutdown/frame.cpp @@ -87,7 +87,7 @@ static LRESULT CALLBACK ProgressBarSubclassProc(HWND hwndProgress,UINT msg,WPARA struct CountdownFrameWndData { /* sizeof=57, max cbClsExtra=40 on Win32 */
time_t countdown,settingLastTime;
HANDLE hHookColorsChanged,hHookFontsChanged,hHookIconsChanged;
- HANDLE hwndIcon,hwndProgress,hwndDesc,hwndTime,hwndToolTip;
+ HWND hwndIcon,hwndProgress,hwndDesc,hwndTime,hwndToolTip;
HBRUSH hbrBackground;
COLORREF clrBackground,clrText;
HFONT hFont;
@@ -459,7 +459,7 @@ static LRESULT CALLBACK FrameWndProc(HWND hwndFrame,UINT msg,WPARAM wParam,LPARA hdc=GetDC(dat->hwndTime);
if(hdc!=NULL) {
if(dat->hFont!=NULL)
- hFontPrev=SelectObject(hdc,dat->hFont);
+ hFontPrev = (HFONT)SelectObject(hdc,dat->hFont);
if(GetTextExtentPoint32(hdc,szOutput,lstrlen(szOutput),&size))
if(size.cx>=(rc.right-rc.left))
dat->flags&=FWPDF_TIMEISCLIPPED;
diff --git a/plugins/AutoShutdown/main.cpp b/plugins/AutoShutdown/main.cpp index d4f9a63480..22fab33c6d 100644 --- a/plugins/AutoShutdown/main.cpp +++ b/plugins/AutoShutdown/main.cpp @@ -1,5 +1,4 @@ /*
-
'AutoShutdown'-Plugin for Miranda IM
Copyright 2004-2007 H. Herkenrath
@@ -23,43 +22,30 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "version.h"
HINSTANCE hInst;
-PLUGINLINK *pluginLink;
-struct MM_INTERFACE mmi;
static HANDLE hHookModulesLoaded;
HANDLE hActiveIcon,hInactiveIcon;
+int hLangpack;
PLUGININFOEX pluginInfo={
sizeof(PLUGININFOEX),
"AutoShutdown",
PLUGIN_VERSION,
-#if defined(_DEBUG)
- "Development build not intended for release. ("__DATE__")",
-#else
"Adds the possibility to shutdown the computer when a specified event occurs.", /* autotranslated */
-#endif
"H. Herkenrath",
- PLUGIN_EMAIL, /* @ will be set later */
+ "hrathh@users.sourceforge.net", /* @ will be set later */
"© 2004-2007 H. Herkenrath",
- PLUGIN_WEBSITE,
+ "http://addons.miranda-im.org/details.php?action=viewfile&id=3056",
UNICODE_AWARE,
0,
-#if defined(_UNICODE)
// {9DE24579-5C5C-49aa-80E8-4D38E4344E63}
{0x9de24579,0x5c5c,0x49aa,{0x80,0xe8,0x4d,0x38,0xe4,0x34,0x4e,0x63}},
-#else
- // {7C0DD208-94D8-4283-879A-E6F86135B826}
- {0x7c0dd208,0x94d8,0x4283,{0x87,0x9a,0xe6,0xf8,0x61,0x35,0xb8,0x26}}
-#endif
};
+
static const MUUID interfaces[]={MIID_SHUTDOWN,MIID_LAST};
-BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,void *pReserved)
+BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, VOID *pReserved)
{
- UNREFERENCED_PARAMETER(pReserved);
- if(fdwReason==DLL_PROCESS_ATTACH)
- /* Do not call this function from a DLL that is linked to the static C run-time library (CRT).
- * The static CRT requires DLL_THREAD_ATTACH and DLL_THREAD_DETATCH notifications to function properly. */
- DisableThreadLibraryCalls(hInst=hinstDLL);
+ hInst = hinstDLL;
return TRUE;
}
@@ -106,50 +92,20 @@ static int ShutdownModulesLoaded(WPARAM wParam,LPARAM lParam) return 0;
}
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-__declspec(dllexport) const PLUGININFO* MirandaPluginInfo(DWORD mirandaVersion)
-{
- if(mirandaVersion<PLUGIN_MAKE_VERSION(0,1,0,1)) return NULL;
- pluginInfo.cbSize=sizeof(PLUGININFO); /* needed as v0.6 does equality check */
- /* email obfuscated, made .rdata writable */
- pluginInfo.authorEmail[PLUGIN_EMAIL_ATT_POS-1]='@';
- return (PLUGININFO*)&pluginInfo; /* header is the same */
-}
-
-__declspec(dllexport) const PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
+extern "C" __declspec(dllexport) const PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
{
- UNREFERENCED_PARAMETER(mirandaVersion);
- pluginInfo.cbSize=sizeof(PLUGININFOEX);
- /* email obfuscated, made .rdata writable */
- pluginInfo.authorEmail[PLUGIN_EMAIL_ATT_POS-1]='@';
return &pluginInfo;
}
-__declspec(dllexport) const MUUID* MirandaPluginInterfaces(void)
+extern "C" __declspec(dllexport) const MUUID* MirandaPluginInterfaces(void)
{
return interfaces;
}
-__declspec(dllexport) int Load(PLUGINLINK *link)
+extern "C" __declspec(dllexport) int Load(void)
{
+ mir_getLP(&pluginInfo);
INITCOMMONCONTROLSEX icc;
- pluginLink=link;
-
- /* existance of MS_SYSTEM_GETVERSION and MS_LANGPACK_TRANSLATESTRING
- * is checked in MirandaPluginInfo().
- * Not placed in MirandaPluginInfo() to avoid MessageBoxes on plugin options.
- * Using ANSI as LANG_UNICODE might not be supported. */
- if(CallService(MS_SYSTEM_GETVERSION,0,0)<NEEDED_MIRANDA_VERSION) {
- char szText[256];
- mir_snprintf(szText,sizeof(szText),Translate("The AutoShutdown plugin can not be loaded. It requires Miranda IM %hs or later."),NEEDED_MIRANDA_VERSION_STR);
- MessageBoxA(NULL,szText,Translate("AutoShutdown Plugin"),MB_OK|MB_ICONERROR|MB_SETFOREGROUND|MB_TOPMOST|MB_TASKMODAL);
- return 1;
- }
- if(!ServiceExists(MS_DB_CONTACT_GETSETTING_STR)) return 1; /* dbx3x v0.5.1.0 */
- if(mir_getMMI(&mmi)) return 1;
icc.dwSize=sizeof(icc);
icc.dwICC=ICC_DATE_CLASSES|ICC_UPDOWN_CLASS|ICC_PROGRESS_CLASS;
if(!InitCommonControlsEx(&icc)) return 1;
@@ -175,7 +131,7 @@ __declspec(dllexport) int Load(PLUGINLINK *link) return 0;
}
-__declspec(dllexport) int Unload(void)
+extern "C" __declspec(dllexport) int Unload(void)
{
UnhookEvent(hHookModulesLoaded);
@@ -185,8 +141,4 @@ __declspec(dllexport) int Unload(void) UninitFrame();
UninitShutdownSvc();
return 0;
-}
-
-#ifdef __cplusplus
-}
-#endif
+}
\ No newline at end of file diff --git a/plugins/AutoShutdown/options.cpp b/plugins/AutoShutdown/options.cpp index 2026038859..1e23b9005a 100644 --- a/plugins/AutoShutdown/options.cpp +++ b/plugins/AutoShutdown/options.cpp @@ -117,7 +117,7 @@ static int ShutdownOptInit(WPARAM wParam,LPARAM lParam) odp.ptszTab=_T("Automatic Shutdown"); /* autotranslated, can be made a tab */
odp.flags=ODPF_BOLDGROUPS|ODPF_EXPERTONLY|ODPF_TCHAR;
odp.pfnDlgProc=ShutdownOptDlgProc;
- CallService(MS_OPT_ADDPAGE,wParam,(LPARAM)&odp);
+ Options_AddPage(wParam, &odp);
return 0;
}
diff --git a/plugins/AutoShutdown/resource.rc b/plugins/AutoShutdown/resource.rc index a9bac86713..e35d776ac1 100644 --- a/plugins/AutoShutdown/resource.rc +++ b/plugins/AutoShutdown/resource.rc @@ -8,7 +8,6 @@ // Generated from the TEXTINCLUDE 2 resource.
//
#include <winres.h>
-#include <m_utils.h>
/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS
diff --git a/plugins/AutoShutdown/settingsdlg.cpp b/plugins/AutoShutdown/settingsdlg.cpp index 03f514d61b..24bceaa682 100644 --- a/plugins/AutoShutdown/settingsdlg.cpp +++ b/plugins/AutoShutdown/settingsdlg.cpp @@ -409,7 +409,7 @@ static WORD hToolbarButton; static int ToolbarLoaded(WPARAM wParam,LPARAM lParam)
{
- TTBButtonV2 ttbb;
+ TTBButton ttbb;
UNREFERENCED_PARAMETER(wParam);
UNREFERENCED_PARAMETER(lParam);
@@ -418,7 +418,7 @@ static int ToolbarLoaded(WPARAM wParam,LPARAM lParam) /* toptoolbar offers icolib support */
ttbb.hIconUp=(HICON)LoadImage(hInst,MAKEINTRESOURCE(IDI_ACTIVE),IMAGE_ICON,0,0,0);
ttbb.hIconDn=(HICON)LoadImage(hInst,MAKEINTRESOURCE(IDI_INACTIVE),IMAGE_ICON,0,0,0);
- ttbb.pszServiceUp=ttbb.pszServiceDown="AutoShutdown/MenuCommand";
+ ttbb.pszService="AutoShutdown/MenuCommand";
ttbb.dwFlags=TTBBF_VISIBLE|TTBBF_SHOWTOOLTIP;
ttbb.name=Translate("Start/Stop automatic shutdown");
@@ -457,7 +457,7 @@ void SetShutdownMenuItem(BOOL fActive) cmi.flags|=CMIM_NAME|CMIM_ICON;
CallService(MS_CLIST_MODIFYMENUITEM,(WPARAM)hMainMenuItem,(LPARAM)&cmi);
}
- else hMainMenuItem=(HANDLE)CallService(MS_CLIST_ADDMAINMENUITEM,0,(LPARAM)&cmi);
+ else hMainMenuItem = Menu_AddMainMenuItem(&cmi);
/* tray menu */
cmi.position=899999;
@@ -465,7 +465,7 @@ void SetShutdownMenuItem(BOOL fActive) cmi.flags|=CMIM_NAME|CMIM_ICON;
CallService(MS_CLIST_MODIFYMENUITEM,(WPARAM)hTrayMenuItem,(LPARAM)&cmi);
}
- else hTrayMenuItem=(HANDLE)CallService(MS_CLIST_ADDTRAYMENUITEM,0,(LPARAM)&cmi);
+ else hTrayMenuItem = Menu_AddTrayMenuItem(&cmi);
IcoLib_ReleaseIcon(cmi.hIcon);
}
diff --git a/plugins/AutoShutdown/shutdown.def b/plugins/AutoShutdown/shutdown.def deleted file mode 100644 index 09d13e6c16..0000000000 --- a/plugins/AutoShutdown/shutdown.def +++ /dev/null @@ -1,11 +0,0 @@ -LIBRARY shutdown BASE=0x11070000
-SECTIONS
- ; obfuscated email address
- .rdata READ WRITE
-EXPORTS
- MirandaPluginInfo PRIVATE
- Load PRIVATE
- Unload PRIVATE
- ; v0.8 support
- MirandaPluginInfoEx PRIVATE
- MirandaPluginInterfaces PRIVATE
diff --git a/plugins/AutoShutdown/shutdown.dep b/plugins/AutoShutdown/shutdown.dep deleted file mode 100644 index ec15869669..0000000000 --- a/plugins/AutoShutdown/shutdown.dep +++ /dev/null @@ -1,394 +0,0 @@ -# Microsoft Developer Studio erstellte Abhängigkeitsdatei, einbezogen von shutdown.mak
-
-.\cpuusage.c : \
- ".\common.h"\
- ".\cpuusage.h"\
- ".\frame.h"\
- ".\include\m_autoreplacer.h"\
- ".\include\m_button.h"\
- ".\include\m_clc.h"\
- ".\include\m_clist.h"\
- ".\include\m_clistint.h"\
- ".\include\m_clui.h"\
- ".\include\m_cluiframes.h"\
- ".\include\m_database.h"\
- ".\include\m_file.h"\
- ".\include\m_fontservice.h"\
- ".\include\m_genmenu.h"\
- ".\include\m_hddinfo.h"\
- ".\include\m_hotkey.h"\
- ".\include\m_hotkeysplus.h"\
- ".\include\m_hotkeysservice.h"\
- ".\include\m_icolib.h"\
- ".\include\m_idle.h"\
- ".\include\m_langpack.h"\
- ".\include\m_magneticwindows.h"\
- ".\include\m_message.h"\
- ".\include\m_mwclc.h"\
- ".\include\m_options.h"\
- ".\include\m_plugins.h"\
- ".\include\m_protocols.h"\
- ".\include\m_protosvc.h"\
- ".\include\m_skin.h"\
- ".\include\m_snappingwindows.h"\
- ".\include\m_system.h"\
- ".\include\m_toptoolbar.h"\
- ".\include\m_trigger.h"\
- ".\include\m_utils.h"\
- ".\include\m_weather.h"\
- ".\include\newpluginapi.h"\
- ".\include\statusmodes.h"\
- ".\include\win2k.h"\
- ".\m_shutdown.h"\
- ".\options.h"\
- ".\settingsdlg.h"\
- ".\shutdownsvc.h"\
- ".\utils.h"\
- ".\watcher.h"\
- "e:\vc98\include\basetsd.h"\
-
-
-.\frame.c : \
- ".\common.h"\
- ".\cpuusage.h"\
- ".\frame.h"\
- ".\include\m_autoreplacer.h"\
- ".\include\m_button.h"\
- ".\include\m_clc.h"\
- ".\include\m_clist.h"\
- ".\include\m_clistint.h"\
- ".\include\m_clui.h"\
- ".\include\m_cluiframes.h"\
- ".\include\m_database.h"\
- ".\include\m_file.h"\
- ".\include\m_fontservice.h"\
- ".\include\m_genmenu.h"\
- ".\include\m_hddinfo.h"\
- ".\include\m_hotkey.h"\
- ".\include\m_hotkeysplus.h"\
- ".\include\m_hotkeysservice.h"\
- ".\include\m_icolib.h"\
- ".\include\m_idle.h"\
- ".\include\m_langpack.h"\
- ".\include\m_magneticwindows.h"\
- ".\include\m_message.h"\
- ".\include\m_mwclc.h"\
- ".\include\m_options.h"\
- ".\include\m_plugins.h"\
- ".\include\m_protocols.h"\
- ".\include\m_protosvc.h"\
- ".\include\m_skin.h"\
- ".\include\m_snappingwindows.h"\
- ".\include\m_system.h"\
- ".\include\m_toptoolbar.h"\
- ".\include\m_trigger.h"\
- ".\include\m_utils.h"\
- ".\include\m_weather.h"\
- ".\include\newpluginapi.h"\
- ".\include\statusmodes.h"\
- ".\include\win2k.h"\
- ".\m_shutdown.h"\
- ".\options.h"\
- ".\settingsdlg.h"\
- ".\shutdownsvc.h"\
- ".\utils.h"\
- ".\watcher.h"\
- "e:\vc98\include\basetsd.h"\
-
-
-.\main.c : \
- ".\common.h"\
- ".\cpuusage.h"\
- ".\frame.h"\
- ".\include\m_autoreplacer.h"\
- ".\include\m_button.h"\
- ".\include\m_clc.h"\
- ".\include\m_clist.h"\
- ".\include\m_clistint.h"\
- ".\include\m_clui.h"\
- ".\include\m_cluiframes.h"\
- ".\include\m_database.h"\
- ".\include\m_file.h"\
- ".\include\m_fontservice.h"\
- ".\include\m_genmenu.h"\
- ".\include\m_hddinfo.h"\
- ".\include\m_hotkey.h"\
- ".\include\m_hotkeysplus.h"\
- ".\include\m_hotkeysservice.h"\
- ".\include\m_icolib.h"\
- ".\include\m_idle.h"\
- ".\include\m_langpack.h"\
- ".\include\m_magneticwindows.h"\
- ".\include\m_message.h"\
- ".\include\m_mwclc.h"\
- ".\include\m_options.h"\
- ".\include\m_plugins.h"\
- ".\include\m_protocols.h"\
- ".\include\m_protosvc.h"\
- ".\include\m_skin.h"\
- ".\include\m_snappingwindows.h"\
- ".\include\m_system.h"\
- ".\include\m_toptoolbar.h"\
- ".\include\m_trigger.h"\
- ".\include\m_utils.h"\
- ".\include\m_weather.h"\
- ".\include\newpluginapi.h"\
- ".\include\statusmodes.h"\
- ".\include\win2k.h"\
- ".\m_shutdown.h"\
- ".\options.h"\
- ".\settingsdlg.h"\
- ".\shutdownsvc.h"\
- ".\utils.h"\
- ".\version.h"\
- ".\watcher.h"\
- "e:\vc98\include\basetsd.h"\
-
-
-.\options.c : \
- ".\common.h"\
- ".\cpuusage.h"\
- ".\frame.h"\
- ".\include\m_autoreplacer.h"\
- ".\include\m_button.h"\
- ".\include\m_clc.h"\
- ".\include\m_clist.h"\
- ".\include\m_clistint.h"\
- ".\include\m_clui.h"\
- ".\include\m_cluiframes.h"\
- ".\include\m_database.h"\
- ".\include\m_file.h"\
- ".\include\m_fontservice.h"\
- ".\include\m_genmenu.h"\
- ".\include\m_hddinfo.h"\
- ".\include\m_hotkey.h"\
- ".\include\m_hotkeysplus.h"\
- ".\include\m_hotkeysservice.h"\
- ".\include\m_icolib.h"\
- ".\include\m_idle.h"\
- ".\include\m_langpack.h"\
- ".\include\m_magneticwindows.h"\
- ".\include\m_message.h"\
- ".\include\m_mwclc.h"\
- ".\include\m_options.h"\
- ".\include\m_plugins.h"\
- ".\include\m_protocols.h"\
- ".\include\m_protosvc.h"\
- ".\include\m_skin.h"\
- ".\include\m_snappingwindows.h"\
- ".\include\m_system.h"\
- ".\include\m_toptoolbar.h"\
- ".\include\m_trigger.h"\
- ".\include\m_utils.h"\
- ".\include\m_weather.h"\
- ".\include\newpluginapi.h"\
- ".\include\statusmodes.h"\
- ".\include\win2k.h"\
- ".\m_shutdown.h"\
- ".\options.h"\
- ".\settingsdlg.h"\
- ".\shutdownsvc.h"\
- ".\utils.h"\
- ".\watcher.h"\
- "e:\vc98\include\basetsd.h"\
-
-
-.\settingsdlg.c : \
- ".\common.h"\
- ".\cpuusage.h"\
- ".\frame.h"\
- ".\include\m_autoreplacer.h"\
- ".\include\m_button.h"\
- ".\include\m_clc.h"\
- ".\include\m_clist.h"\
- ".\include\m_clistint.h"\
- ".\include\m_clui.h"\
- ".\include\m_cluiframes.h"\
- ".\include\m_database.h"\
- ".\include\m_file.h"\
- ".\include\m_fontservice.h"\
- ".\include\m_genmenu.h"\
- ".\include\m_hddinfo.h"\
- ".\include\m_hotkey.h"\
- ".\include\m_hotkeysplus.h"\
- ".\include\m_hotkeysservice.h"\
- ".\include\m_icolib.h"\
- ".\include\m_idle.h"\
- ".\include\m_langpack.h"\
- ".\include\m_magneticwindows.h"\
- ".\include\m_message.h"\
- ".\include\m_mwclc.h"\
- ".\include\m_options.h"\
- ".\include\m_plugins.h"\
- ".\include\m_protocols.h"\
- ".\include\m_protosvc.h"\
- ".\include\m_skin.h"\
- ".\include\m_snappingwindows.h"\
- ".\include\m_system.h"\
- ".\include\m_toptoolbar.h"\
- ".\include\m_trigger.h"\
- ".\include\m_utils.h"\
- ".\include\m_weather.h"\
- ".\include\newpluginapi.h"\
- ".\include\statusmodes.h"\
- ".\include\win2k.h"\
- ".\m_shutdown.h"\
- ".\options.h"\
- ".\settingsdlg.h"\
- ".\shutdownsvc.h"\
- ".\utils.h"\
- ".\watcher.h"\
- "e:\vc98\include\basetsd.h"\
-
-
-.\shutdownsvc.c : \
- ".\common.h"\
- ".\cpuusage.h"\
- ".\frame.h"\
- ".\include\m_autoreplacer.h"\
- ".\include\m_button.h"\
- ".\include\m_clc.h"\
- ".\include\m_clist.h"\
- ".\include\m_clistint.h"\
- ".\include\m_clui.h"\
- ".\include\m_cluiframes.h"\
- ".\include\m_database.h"\
- ".\include\m_file.h"\
- ".\include\m_fontservice.h"\
- ".\include\m_genmenu.h"\
- ".\include\m_hddinfo.h"\
- ".\include\m_hotkey.h"\
- ".\include\m_hotkeysplus.h"\
- ".\include\m_hotkeysservice.h"\
- ".\include\m_icolib.h"\
- ".\include\m_idle.h"\
- ".\include\m_langpack.h"\
- ".\include\m_magneticwindows.h"\
- ".\include\m_message.h"\
- ".\include\m_mwclc.h"\
- ".\include\m_options.h"\
- ".\include\m_plugins.h"\
- ".\include\m_protocols.h"\
- ".\include\m_protosvc.h"\
- ".\include\m_skin.h"\
- ".\include\m_snappingwindows.h"\
- ".\include\m_system.h"\
- ".\include\m_toptoolbar.h"\
- ".\include\m_trigger.h"\
- ".\include\m_utils.h"\
- ".\include\m_weather.h"\
- ".\include\newpluginapi.h"\
- ".\include\statusmodes.h"\
- ".\include\win2k.h"\
- ".\m_shutdown.h"\
- ".\options.h"\
- ".\settingsdlg.h"\
- ".\shutdownsvc.h"\
- ".\utils.h"\
- ".\watcher.h"\
- "e:\vc98\include\basetsd.h"\
-
-
-.\utils.c : \
- ".\common.h"\
- ".\cpuusage.h"\
- ".\frame.h"\
- ".\include\m_autoreplacer.h"\
- ".\include\m_button.h"\
- ".\include\m_clc.h"\
- ".\include\m_clist.h"\
- ".\include\m_clistint.h"\
- ".\include\m_clui.h"\
- ".\include\m_cluiframes.h"\
- ".\include\m_database.h"\
- ".\include\m_file.h"\
- ".\include\m_fontservice.h"\
- ".\include\m_genmenu.h"\
- ".\include\m_hddinfo.h"\
- ".\include\m_hotkey.h"\
- ".\include\m_hotkeysplus.h"\
- ".\include\m_hotkeysservice.h"\
- ".\include\m_icolib.h"\
- ".\include\m_idle.h"\
- ".\include\m_langpack.h"\
- ".\include\m_magneticwindows.h"\
- ".\include\m_message.h"\
- ".\include\m_mwclc.h"\
- ".\include\m_options.h"\
- ".\include\m_plugins.h"\
- ".\include\m_protocols.h"\
- ".\include\m_protosvc.h"\
- ".\include\m_skin.h"\
- ".\include\m_snappingwindows.h"\
- ".\include\m_system.h"\
- ".\include\m_toptoolbar.h"\
- ".\include\m_trigger.h"\
- ".\include\m_utils.h"\
- ".\include\m_weather.h"\
- ".\include\newpluginapi.h"\
- ".\include\statusmodes.h"\
- ".\include\win2k.h"\
- ".\m_shutdown.h"\
- ".\options.h"\
- ".\settingsdlg.h"\
- ".\shutdownsvc.h"\
- ".\utils.h"\
- ".\watcher.h"\
- "e:\vc98\include\basetsd.h"\
-
-
-.\watcher.c : \
- ".\common.h"\
- ".\cpuusage.h"\
- ".\frame.h"\
- ".\include\m_autoreplacer.h"\
- ".\include\m_button.h"\
- ".\include\m_clc.h"\
- ".\include\m_clist.h"\
- ".\include\m_clistint.h"\
- ".\include\m_clui.h"\
- ".\include\m_cluiframes.h"\
- ".\include\m_database.h"\
- ".\include\m_file.h"\
- ".\include\m_fontservice.h"\
- ".\include\m_genmenu.h"\
- ".\include\m_hddinfo.h"\
- ".\include\m_hotkey.h"\
- ".\include\m_hotkeysplus.h"\
- ".\include\m_hotkeysservice.h"\
- ".\include\m_icolib.h"\
- ".\include\m_idle.h"\
- ".\include\m_langpack.h"\
- ".\include\m_magneticwindows.h"\
- ".\include\m_message.h"\
- ".\include\m_mwclc.h"\
- ".\include\m_options.h"\
- ".\include\m_plugins.h"\
- ".\include\m_protocols.h"\
- ".\include\m_protosvc.h"\
- ".\include\m_skin.h"\
- ".\include\m_snappingwindows.h"\
- ".\include\m_system.h"\
- ".\include\m_toptoolbar.h"\
- ".\include\m_trigger.h"\
- ".\include\m_utils.h"\
- ".\include\m_weather.h"\
- ".\include\newpluginapi.h"\
- ".\include\statusmodes.h"\
- ".\include\win2k.h"\
- ".\m_shutdown.h"\
- ".\options.h"\
- ".\settingsdlg.h"\
- ".\shutdownsvc.h"\
- ".\utils.h"\
- ".\watcher.h"\
- "e:\vc98\include\basetsd.h"\
-
-
-.\resource.rc : \
- ".\include\m_utils.h"\
- ".\res\active.ico"\
- ".\res\header.ico"\
- ".\res\inactive.ico"\
- ".\version.rc"\
-
diff --git a/plugins/AutoShutdown/shutdown.dsp b/plugins/AutoShutdown/shutdown.dsp deleted file mode 100644 index 52d65badfa..0000000000 --- a/plugins/AutoShutdown/shutdown.dsp +++ /dev/null @@ -1,451 +0,0 @@ -# Microsoft Developer Studio Project File - Name="shutdown" - Package Owner=<4>
-# Microsoft Developer Studio Generated Build File, Format Version 6.00
-# ** NICHT BEARBEITEN **
-
-# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
-
-CFG=shutdown - Win32 Release
-!MESSAGE Dies ist kein gültiges Makefile. Zum Erstellen dieses Projekts mit NMAKE
-!MESSAGE verwenden Sie den Befehl "Makefile exportieren" und führen Sie den Befehl
-!MESSAGE
-!MESSAGE NMAKE /f "shutdown.mak".
-!MESSAGE
-!MESSAGE Sie können beim Ausführen von NMAKE eine Konfiguration angeben
-!MESSAGE durch Definieren des Makros CFG in der Befehlszeile. Zum Beispiel:
-!MESSAGE
-!MESSAGE NMAKE /f "shutdown.mak" CFG="shutdown - Win32 Release"
-!MESSAGE
-!MESSAGE Für die Konfiguration stehen zur Auswahl:
-!MESSAGE
-!MESSAGE "shutdown - Win32 Release" (basierend auf "Win32 (x86) Dynamic-Link Library")
-!MESSAGE "shutdown - Win32 Debug" (basierend auf "Win32 (x86) Dynamic-Link Library")
-!MESSAGE "shutdown - Win32 Release Unicode" (basierend auf "Win32 (x86) Dynamic-Link Library")
-!MESSAGE "shutdown - Win32 Debug Unicode" (basierend auf "Win32 (x86) Dynamic-Link Library")
-!MESSAGE
-
-# Begin Project
-# PROP AllowPerConfigDependencies 0
-# PROP Scc_ProjName ""
-# PROP Scc_LocalPath ""
-CPP=cl.exe
-MTL=midl.exe
-RSC=rc.exe
-
-!IF "$(CFG)" == "shutdown - Win32 Release"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 0
-# PROP BASE Output_Dir "release/ANSI"
-# PROP BASE Intermediate_Dir "temp/Release/ANSI"
-# PROP BASE Target_Dir "release/ANSI"
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 0
-# PROP Output_Dir "temp/Release/ANSI"
-# PROP Intermediate_Dir "temp/Release/ANSI"
-# PROP Ignore_Export_Lib 1
-# PROP Target_Dir "release/ANSI"
-# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "SHUTDOWN_EXPORTS" /YX /FD /c
-# ADD CPP /nologo /MD /W4 /GX /O2 /I ".\include" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "STRICT" /D "SHUTDOWN_EXPORTS" /U "NO_STRICT" /FR /FD /opt:nowin98 /c
-# SUBTRACT CPP /YX
-# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
-# ADD MTL /nologo /D "NDEBUG" /win32
-# SUBTRACT MTL /mktyplib203 /Oicf
-# ADD BASE RSC /l 0x1009 /d "NDEBUG"
-# ADD RSC /l 0x409 /i ".\include" /d "NDEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386
-# ADD LINK32 kernel32.lib comctl32.lib gdi32.lib user32.lib shell32.lib advapi32.lib /nologo /base:"0x11070000" /dll /pdb:"./release/ANSI/shutdown.pdb" /map:"release/ANSI/shutdown.map" /debug /machine:I386 /nodefaultlib:"uuid.lib" /nodefaultlib:"OLDNAMES" /def:"shutdown.def" /out:"./release/ANSI/shutdown.dll" /mapinfo:lines /opt:nowin98 /ignore:4078 /RELEASE
-# SUBTRACT LINK32 /pdb:none
-
-!ELSEIF "$(CFG)" == "shutdown - Win32 Debug"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 1
-# PROP BASE Output_Dir "temp/Debug/ANSI"
-# PROP BASE Intermediate_Dir "temp/Debug/ANSI"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 1
-# PROP Output_Dir "temp/Debug/ANSI"
-# PROP Intermediate_Dir "temp/Debug/ANSI"
-# PROP Ignore_Export_Lib 1
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "SHUTDOWN_EXPORTS" /YX /FD /GZ /c
-# ADD CPP /nologo /MTd /W4 /Gm /Gi /GR /GX /ZI /Od /I ".\include" /D "_DEBUG" /D "WIN32" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "STRICT" /D "SHUTDOWN_EXPORTS" /U "NO_STRICT" /FR /FD /GZ /c
-# SUBTRACT CPP /WX /YX
-# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
-# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
-# SUBTRACT MTL /Oicf
-# ADD BASE RSC /l 0x1009 /d "_DEBUG"
-# ADD RSC /l 0x409 /i ".\include" /d "_DEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /pdbtype:sept
-# ADD LINK32 kernel32.lib comctl32.lib gdi32.lib user32.lib shell32.lib advapi32.lib /nologo /base:"0x11070000" /dll /pdb:"D:/Miranda IM/ANSI/Plugins/shutdown.pdb" /map /debug /machine:I386 /nodefaultlib:"uuid.lib" /nodefaultlib:"OLDNAMES" /def:"shutdown.def" /out:"D:/Miranda IM/ANSI/Plugins/shutdown.dll" /pdbtype:sept
-# SUBTRACT LINK32 /verbose /pdb:none
-
-!ELSEIF "$(CFG)" == "shutdown - Win32 Release Unicode"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 0
-# PROP BASE Output_Dir "release/Unicode"
-# PROP BASE Intermediate_Dir "temp/Release/Unicode"
-# PROP BASE Target_Dir "release/Unicode"
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 0
-# PROP Output_Dir "temp/Release/Unicode"
-# PROP Intermediate_Dir "temp/Release/Unicode"
-# PROP Ignore_Export_Lib 1
-# PROP Target_Dir "release/Unicode"
-# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "SHUTDOWN_EXPORTS" /YX /FD /c
-# ADD CPP /nologo /MD /W4 /GX /O2 /I ".\include" /D "NDEBUG" /D "UNICODE" /D "_UNICODE" /D "WIN32" /D "_WINDOWS" /D "_USRDLL" /D "STRICT" /D "SHUTDOWN_EXPORTS" /U "_MBCS" /U "NO_STRICT" /FR /FD /opt:nowin98 /c
-# SUBTRACT CPP /YX
-# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
-# ADD MTL /nologo /D "NDEBUG" /win32
-# SUBTRACT MTL /mktyplib203 /Oicf
-# ADD BASE RSC /l 0x1009 /d "NDEBUG" /d "_UNICODE" /d "UNICODE"
-# ADD RSC /l 0x409 /i ".\include" /d "NDEBUG" /d "_UNICODE" /d "UNICODE"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386
-# ADD LINK32 kernel32.lib comctl32.lib gdi32.lib user32.lib shell32.lib advapi32.lib /nologo /base:"0x11070000" /dll /pdb:"./release/Unicode/shutdown.pdb" /map:"release/Unicode/shutdown.map" /debug /machine:I386 /nodefaultlib:"uuid.lib" /nodefaultlib:"OLDNAMES" /def:"shutdown.def" /out:"./release/Unicode/shutdown.dll" /mapinfo:lines /opt:nowin98 /ignore:4078 /RELEASE
-# SUBTRACT LINK32 /pdb:none
-
-!ELSEIF "$(CFG)" == "shutdown - Win32 Debug Unicode"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 1
-# PROP BASE Output_Dir "temp/Debug/Unicode"
-# PROP BASE Intermediate_Dir "temp/Debug/Unicode"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 1
-# PROP Output_Dir "temp/Debug/Unicode"
-# PROP Intermediate_Dir "temp/Debug/Unicode"
-# PROP Ignore_Export_Lib 1
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "SHUTDOWN_EXPORTS" /YX /FD /GZ /c
-# ADD CPP /nologo /MTd /W4 /Gm /Gi /GR /GX /ZI /Od /I ".\include" /D "_DEBUG" /D "UNICODE" /D "_UNICODE" /D "WIN32" /D "_WINDOWS" /D "_USRDLL" /D "STRICT" /D "SHUTDOWN_EXPORTS" /U "_MBCS" /U "NO_STRICT" /FR /FD /GZ /c
-# SUBTRACT CPP /WX /YX
-# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
-# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
-# SUBTRACT MTL /Oicf
-# ADD BASE RSC /l 0x1009 /d "_DEBUG" /d "_UNICODE" /d "UNICODE"
-# ADD RSC /l 0x409 /i ".\include" /d "_DEBUG" /d "_UNICODE" /d "UNICODE"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /pdbtype:sept
-# ADD LINK32 kernel32.lib comctl32.lib gdi32.lib user32.lib shell32.lib advapi32.lib /nologo /base:"0x11070000" /dll /pdb:"D:/Miranda IM/Unicode/Plugins/shutdown.pdb" /map /debug /machine:I386 /nodefaultlib:"uuid.lib" /nodefaultlib:"OLDNAMES" /def:"shutdown.def" /out:"D:/Miranda IM/Unicode/Plugins/shutdown.dll" /pdbtype:sept
-# SUBTRACT LINK32 /pdb:none /nodefaultlib
-
-!ENDIF
-
-# Begin Target
-
-# Name "shutdown - Win32 Release"
-# Name "shutdown - Win32 Debug"
-# Name "shutdown - Win32 Release Unicode"
-# Name "shutdown - Win32 Debug Unicode"
-# Begin Group "Source Files"
-
-# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
-# Begin Source File
-
-SOURCE=.\cpuusage.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\frame.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\main.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\options.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\settingsdlg.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\shutdownsvc.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\utils.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\watcher.c
-# End Source File
-# End Group
-# Begin Group "Header Files"
-
-# PROP Default_Filter "h;hpp;hxx;hm;inl"
-# Begin Source File
-
-SOURCE=.\common.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\cpuusage.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\frame.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\m_shutdown.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\options.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\settingsdlg.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\shutdownsvc.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\utils.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\watcher.h
-# End Source File
-# End Group
-# Begin Group "Resource Files"
-
-# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
-# Begin Source File
-
-SOURCE=.\res\active.ico
-# End Source File
-# Begin Source File
-
-SOURCE=.\res\header.ico
-# End Source File
-# Begin Source File
-
-SOURCE=.\res\inactive.ico
-# End Source File
-# Begin Source File
-
-SOURCE=.\resource.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\resource.rc
-# End Source File
-# Begin Source File
-
-SOURCE=.\version.h
-# End Source File
-# End Group
-# Begin Group "Documentation"
-
-# PROP Default_Filter "txt"
-# Begin Source File
-
-SOURCE=.\Extensions\countdown.wav
-# End Source File
-# Begin Source File
-
-SOURCE=.\m_shutdown.inc
-# End Source File
-# Begin Source File
-
-SOURCE=".\docs\Shutdown-Developer.txt"
-# End Source File
-# Begin Source File
-
-SOURCE=".\docs\Shutdown-License.txt"
-# End Source File
-# Begin Source File
-
-SOURCE=".\docs\Shutdown-Readme.txt"
-# End Source File
-# Begin Source File
-
-SOURCE=".\docs\Shutdown-Translation.txt"
-# End Source File
-# End Group
-# Begin Group "SDK"
-
-# PROP Default_Filter "*.h"
-# Begin Source File
-
-SOURCE=.\include\m_autoreplacer.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\include\m_button.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\include\m_clc.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\include\m_clist.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\include\m_clistint.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\include\m_clui.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\include\m_cluiframes.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\include\m_database.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\include\m_file.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\include\m_fontservice.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\include\m_genmenu.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\include\m_hddinfo.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\include\m_hotkey.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\include\m_hotkeysplus.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\include\m_hotkeysservice.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\include\m_icolib.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\include\m_idle.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\include\m_langpack.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\include\m_magneticwindows.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\include\m_message.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\include\m_mwclc.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\include\m_options.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\include\m_plugins.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\include\m_protocols.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\include\m_protomod.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\include\m_protosvc.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\include\m_skin.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\include\m_snappingwindows.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\include\m_system.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\include\m_toptoolbar.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\include\m_trigger.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\include\m_updater.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\include\m_utils.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\include\m_weather.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\include\newpluginapi.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\include\statusmodes.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\include\win2k.h
-# End Source File
-# End Group
-# Begin Source File
-
-SOURCE=.\Info_Src.txt
-# End Source File
-# Begin Source File
-
-SOURCE=.\License_Appendix.txt
-# End Source File
-# End Target
-# End Project
diff --git a/plugins/AutoShutdown/shutdown.dsw b/plugins/AutoShutdown/shutdown.dsw deleted file mode 100644 index b5435be4b4..0000000000 --- a/plugins/AutoShutdown/shutdown.dsw +++ /dev/null @@ -1,29 +0,0 @@ -Microsoft Developer Studio Workspace File, Format Version 6.00
-# WARNUNG: DIESE ARBEITSBEREICHSDATEI DARF NICHT BEARBEITET ODER GELÖSCHT WERDEN!
-
-###############################################################################
-
-Project: "shutdown"=".\shutdown.dsp" - Package Owner=<4>
-
-Package=<5>
-{{{
-}}}
-
-Package=<4>
-{{{
-}}}
-
-###############################################################################
-
-Global:
-
-Package=<5>
-{{{
-}}}
-
-Package=<3>
-{{{
-}}}
-
-###############################################################################
-
diff --git a/plugins/AutoShutdown/shutdown.mak b/plugins/AutoShutdown/shutdown.mak deleted file mode 100644 index daaa0217de..0000000000 --- a/plugins/AutoShutdown/shutdown.mak +++ /dev/null @@ -1,435 +0,0 @@ -# Microsoft Developer Studio Generated NMAKE File, Based on shutdown.dsp
-!IF "$(CFG)" == ""
-CFG=shutdown - Win32 Release
-!MESSAGE Keine Konfiguration angegeben. shutdown - Win32 Release wird als Standard verwendet.
-!ENDIF
-
-!IF "$(CFG)" != "shutdown - Win32 Release" && "$(CFG)" != "shutdown - Win32 Debug" && "$(CFG)" != "shutdown - Win32 Release Unicode" && "$(CFG)" != "shutdown - Win32 Debug Unicode"
-!MESSAGE Ungltige Konfiguration "$(CFG)" angegeben.
-!MESSAGE Sie k”nnen beim Ausfhren von NMAKE eine Konfiguration angeben
-!MESSAGE durch Definieren des Makros CFG in der Befehlszeile. Zum Beispiel:
-!MESSAGE
-!MESSAGE NMAKE /f "shutdown.mak" CFG="shutdown - Win32 Release"
-!MESSAGE
-!MESSAGE Fr die Konfiguration stehen zur Auswahl:
-!MESSAGE
-!MESSAGE "shutdown - Win32 Release" (basierend auf "Win32 (x86) Dynamic-Link Library")
-!MESSAGE "shutdown - Win32 Debug" (basierend auf "Win32 (x86) Dynamic-Link Library")
-!MESSAGE "shutdown - Win32 Release Unicode" (basierend auf "Win32 (x86) Dynamic-Link Library")
-!MESSAGE "shutdown - Win32 Debug Unicode" (basierend auf "Win32 (x86) Dynamic-Link Library")
-!MESSAGE
-!ERROR Eine ungltige Konfiguration wurde angegeben.
-!ENDIF
-
-!IF "$(OS)" == "Windows_NT"
-NULL=
-!ELSE
-NULL=nul
-!ENDIF
-
-CPP=cl.exe
-MTL=midl.exe
-RSC=rc.exe
-
-!IF "$(CFG)" == "shutdown - Win32 Release"
-
-OUTDIR=.\temp/Release/ANSI
-INTDIR=.\temp/Release/ANSI
-# Begin Custom Macros
-OutDir=.\temp/Release/ANSI
-# End Custom Macros
-
-ALL : ".\release\ANSI\shutdown.dll" "$(OUTDIR)\shutdown.bsc"
-
-
-CLEAN :
- -@erase "$(INTDIR)\cpuusage.obj"
- -@erase "$(INTDIR)\cpuusage.sbr"
- -@erase "$(INTDIR)\frame.obj"
- -@erase "$(INTDIR)\frame.sbr"
- -@erase "$(INTDIR)\main.obj"
- -@erase "$(INTDIR)\main.sbr"
- -@erase "$(INTDIR)\options.obj"
- -@erase "$(INTDIR)\options.sbr"
- -@erase "$(INTDIR)\resource.res"
- -@erase "$(INTDIR)\settingsdlg.obj"
- -@erase "$(INTDIR)\settingsdlg.sbr"
- -@erase "$(INTDIR)\shutdownsvc.obj"
- -@erase "$(INTDIR)\shutdownsvc.sbr"
- -@erase "$(INTDIR)\utils.obj"
- -@erase "$(INTDIR)\utils.sbr"
- -@erase "$(INTDIR)\vc60.idb"
- -@erase "$(INTDIR)\watcher.obj"
- -@erase "$(INTDIR)\watcher.sbr"
- -@erase "$(OUTDIR)\shutdown.bsc"
- -@erase "$(OUTDIR)\shutdown.exp"
- -@erase ".\release\ANSI\shutdown.dll"
- -@erase ".\release\ANSI\shutdown.pdb"
-
-"$(OUTDIR)" :
- if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
-
-CPP_PROJ=/nologo /MD /W4 /GX /O2 /I ".\include" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "STRICT" /D "SHUTDOWN_EXPORTS" /U "NO_STRICT" /FR"$(INTDIR)\\" /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /opt:nowin98 /c
-MTL_PROJ=/nologo /D "NDEBUG" /win32
-RSC_PROJ=/l 0x409 /fo"$(INTDIR)\resource.res" /i ".\include" /d "NDEBUG"
-BSC32=bscmake.exe
-BSC32_FLAGS=/nologo /o"$(OUTDIR)\shutdown.bsc"
-BSC32_SBRS= \
- "$(INTDIR)\cpuusage.sbr" \
- "$(INTDIR)\frame.sbr" \
- "$(INTDIR)\main.sbr" \
- "$(INTDIR)\options.sbr" \
- "$(INTDIR)\settingsdlg.sbr" \
- "$(INTDIR)\shutdownsvc.sbr" \
- "$(INTDIR)\utils.sbr" \
- "$(INTDIR)\watcher.sbr"
-
-"$(OUTDIR)\shutdown.bsc" : "$(OUTDIR)" $(BSC32_SBRS)
- $(BSC32) @<<
- $(BSC32_FLAGS) $(BSC32_SBRS)
-<<
-
-LINK32=link.exe
-LINK32_FLAGS=kernel32.lib comctl32.lib gdi32.lib user32.lib shell32.lib advapi32.lib /nologo /base:"0x11070000" /dll /incremental:no /pdb:"./release/ANSI/shutdown.pdb" /debug /machine:I386 /nodefaultlib:"uuid.lib" /nodefaultlib:"OLDNAMES" /def:"shutdown.def" /out:"./release/ANSI/shutdown.dll" /implib:"$(OUTDIR)\shutdown.lib" /opt:nowin98 /ignore:4078 /RELEASE
-LINK32_OBJS= \
- "$(INTDIR)\cpuusage.obj" \
- "$(INTDIR)\frame.obj" \
- "$(INTDIR)\main.obj" \
- "$(INTDIR)\options.obj" \
- "$(INTDIR)\settingsdlg.obj" \
- "$(INTDIR)\shutdownsvc.obj" \
- "$(INTDIR)\utils.obj" \
- "$(INTDIR)\watcher.obj" \
- "$(INTDIR)\resource.res"
-
-".\release\ANSI\shutdown.dll" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
- $(LINK32) @<<
- $(LINK32_FLAGS) $(LINK32_OBJS)
-<<
-
-!ELSEIF "$(CFG)" == "shutdown - Win32 Debug"
-
-OUTDIR=.\temp/Debug/ANSI
-INTDIR=.\temp/Debug/ANSI
-# Begin Custom Macros
-OutDir=.\temp/Debug/ANSI
-# End Custom Macros
-
-ALL : "..\Miranda IM\ANSI\Plugins\shutdown.dll" "$(OUTDIR)\shutdown.bsc"
-
-
-CLEAN :
- -@erase "$(INTDIR)\cpuusage.obj"
- -@erase "$(INTDIR)\cpuusage.sbr"
- -@erase "$(INTDIR)\frame.obj"
- -@erase "$(INTDIR)\frame.sbr"
- -@erase "$(INTDIR)\main.obj"
- -@erase "$(INTDIR)\main.sbr"
- -@erase "$(INTDIR)\options.obj"
- -@erase "$(INTDIR)\options.sbr"
- -@erase "$(INTDIR)\resource.res"
- -@erase "$(INTDIR)\settingsdlg.obj"
- -@erase "$(INTDIR)\settingsdlg.sbr"
- -@erase "$(INTDIR)\shutdownsvc.obj"
- -@erase "$(INTDIR)\shutdownsvc.sbr"
- -@erase "$(INTDIR)\utils.obj"
- -@erase "$(INTDIR)\utils.sbr"
- -@erase "$(INTDIR)\vc60.idb"
- -@erase "$(INTDIR)\vc60.pdb"
- -@erase "$(INTDIR)\watcher.obj"
- -@erase "$(INTDIR)\watcher.sbr"
- -@erase "$(OUTDIR)\shutdown.bsc"
- -@erase "$(OUTDIR)\shutdown.exp"
- -@erase "$(OUTDIR)\shutdown.map"
- -@erase "..\Miranda IM\ANSI\Plugins\shutdown.dll"
- -@erase "..\Miranda IM\ANSI\Plugins\shutdown.ilk"
- -@erase "..\Miranda IM\ANSI\Plugins\shutdown.pdb"
-
-"$(OUTDIR)" :
- if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
-
-CPP_PROJ=/nologo /MTd /W4 /Gm /Gi /GR /GX /ZI /Od /I ".\include" /D "_DEBUG" /D "WIN32" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "STRICT" /D "SHUTDOWN_EXPORTS" /U "NO_STRICT" /FR"$(INTDIR)\\" /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /GZ /c
-MTL_PROJ=/nologo /D "_DEBUG" /mktyplib203 /win32
-RSC_PROJ=/l 0x409 /fo"$(INTDIR)\resource.res" /i ".\include" /d "_DEBUG"
-BSC32=bscmake.exe
-BSC32_FLAGS=/nologo /o"$(OUTDIR)\shutdown.bsc"
-BSC32_SBRS= \
- "$(INTDIR)\cpuusage.sbr" \
- "$(INTDIR)\frame.sbr" \
- "$(INTDIR)\main.sbr" \
- "$(INTDIR)\options.sbr" \
- "$(INTDIR)\settingsdlg.sbr" \
- "$(INTDIR)\shutdownsvc.sbr" \
- "$(INTDIR)\utils.sbr" \
- "$(INTDIR)\watcher.sbr"
-
-"$(OUTDIR)\shutdown.bsc" : "$(OUTDIR)" $(BSC32_SBRS)
- $(BSC32) @<<
- $(BSC32_FLAGS) $(BSC32_SBRS)
-<<
-
-LINK32=link.exe
-LINK32_FLAGS=kernel32.lib comctl32.lib gdi32.lib user32.lib shell32.lib advapi32.lib /nologo /base:"0x11070000" /dll /incremental:yes /pdb:"C:/Dokumente und Einstellungen/bib-nutzer/Desktop/Miranda IM/ANSI/Plugins/shutdown.pdb" /map:"$(INTDIR)\shutdown.map" /debug /machine:I386 /nodefaultlib:"uuid.lib" /nodefaultlib:"OLDNAMES" /def:"shutdown.def" /out:"C:/Dokumente und Einstellungen/bib-nutzer/Desktop/Miranda IM/ANSI/Plugins/shutdown.dll" /implib:"$(OUTDIR)\shutdown.lib" /pdbtype:sept
-LINK32_OBJS= \
- "$(INTDIR)\cpuusage.obj" \
- "$(INTDIR)\frame.obj" \
- "$(INTDIR)\main.obj" \
- "$(INTDIR)\options.obj" \
- "$(INTDIR)\settingsdlg.obj" \
- "$(INTDIR)\shutdownsvc.obj" \
- "$(INTDIR)\utils.obj" \
- "$(INTDIR)\watcher.obj" \
- "$(INTDIR)\resource.res"
-
-"..\Miranda IM\ANSI\Plugins\shutdown.dll" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
- $(LINK32) @<<
- $(LINK32_FLAGS) $(LINK32_OBJS)
-<<
-
-!ELSEIF "$(CFG)" == "shutdown - Win32 Release Unicode"
-
-OUTDIR=.\temp/Release/Unicode
-INTDIR=.\temp/Release/Unicode
-# Begin Custom Macros
-OutDir=.\temp/Release/Unicode
-# End Custom Macros
-
-ALL : ".\release\Unicode\shutdown.dll" "$(OUTDIR)\shutdown.bsc"
-
-
-CLEAN :
- -@erase "$(INTDIR)\cpuusage.obj"
- -@erase "$(INTDIR)\cpuusage.sbr"
- -@erase "$(INTDIR)\frame.obj"
- -@erase "$(INTDIR)\frame.sbr"
- -@erase "$(INTDIR)\main.obj"
- -@erase "$(INTDIR)\main.sbr"
- -@erase "$(INTDIR)\options.obj"
- -@erase "$(INTDIR)\options.sbr"
- -@erase "$(INTDIR)\resource.res"
- -@erase "$(INTDIR)\settingsdlg.obj"
- -@erase "$(INTDIR)\settingsdlg.sbr"
- -@erase "$(INTDIR)\shutdownsvc.obj"
- -@erase "$(INTDIR)\shutdownsvc.sbr"
- -@erase "$(INTDIR)\utils.obj"
- -@erase "$(INTDIR)\utils.sbr"
- -@erase "$(INTDIR)\vc60.idb"
- -@erase "$(INTDIR)\watcher.obj"
- -@erase "$(INTDIR)\watcher.sbr"
- -@erase "$(OUTDIR)\shutdown.bsc"
- -@erase "$(OUTDIR)\shutdown.exp"
- -@erase ".\release\Unicode\shutdown.dll"
- -@erase ".\release\Unicode\shutdown.pdb"
-
-"$(OUTDIR)" :
- if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
-
-CPP_PROJ=/nologo /MD /W4 /GX /O2 /I ".\include" /D "NDEBUG" /D "UNICODE" /D "_UNICODE" /D "WIN32" /D "_WINDOWS" /D "_USRDLL" /D "STRICT" /D "SHUTDOWN_EXPORTS" /U "_MBCS" /U "NO_STRICT" /FR"$(INTDIR)\\" /Fp"$(INTDIR)\shutdown.pch" /YX"common.h" /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /opt:nowin98 /c
-MTL_PROJ=/nologo /D "NDEBUG" /win32
-RSC_PROJ=/l 0x409 /fo"$(INTDIR)\resource.res" /i ".\include" /d "NDEBUG" /d "_UNICODE" /d "UNICODE"
-BSC32=bscmake.exe
-BSC32_FLAGS=/nologo /o"$(OUTDIR)\shutdown.bsc"
-BSC32_SBRS= \
- "$(INTDIR)\cpuusage.sbr" \
- "$(INTDIR)\frame.sbr" \
- "$(INTDIR)\main.sbr" \
- "$(INTDIR)\options.sbr" \
- "$(INTDIR)\settingsdlg.sbr" \
- "$(INTDIR)\shutdownsvc.sbr" \
- "$(INTDIR)\utils.sbr" \
- "$(INTDIR)\watcher.sbr"
-
-"$(OUTDIR)\shutdown.bsc" : "$(OUTDIR)" $(BSC32_SBRS)
- $(BSC32) @<<
- $(BSC32_FLAGS) $(BSC32_SBRS)
-<<
-
-LINK32=link.exe
-LINK32_FLAGS=kernel32.lib comctl32.lib gdi32.lib user32.lib shell32.lib advapi32.lib /nologo /base:"0x11070000" /dll /incremental:no /pdb:"./release/Unicode/shutdown.pdb" /debug /machine:I386 /nodefaultlib:"uuid.lib" /nodefaultlib:"OLDNAMES" /def:"shutdown.def" /out:"./release/Unicode/shutdown.dll" /implib:"$(OUTDIR)\shutdown.lib" /opt:nowin98 /ignore:4078 /RELEASE
-LINK32_OBJS= \
- "$(INTDIR)\cpuusage.obj" \
- "$(INTDIR)\frame.obj" \
- "$(INTDIR)\main.obj" \
- "$(INTDIR)\options.obj" \
- "$(INTDIR)\settingsdlg.obj" \
- "$(INTDIR)\shutdownsvc.obj" \
- "$(INTDIR)\utils.obj" \
- "$(INTDIR)\watcher.obj" \
- "$(INTDIR)\resource.res"
-
-".\release\Unicode\shutdown.dll" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
- $(LINK32) @<<
- $(LINK32_FLAGS) $(LINK32_OBJS)
-<<
-
-!ELSEIF "$(CFG)" == "shutdown - Win32 Debug Unicode"
-
-OUTDIR=.\temp/Debug/Unicode
-INTDIR=.\temp/Debug/Unicode
-# Begin Custom Macros
-OutDir=.\temp/Debug/Unicode
-# End Custom Macros
-
-ALL : "..\Miranda IM\Unicode\Plugins\shutdown.dll" "$(OUTDIR)\shutdown.bsc"
-
-
-CLEAN :
- -@erase "$(INTDIR)\cpuusage.obj"
- -@erase "$(INTDIR)\cpuusage.sbr"
- -@erase "$(INTDIR)\frame.obj"
- -@erase "$(INTDIR)\frame.sbr"
- -@erase "$(INTDIR)\main.obj"
- -@erase "$(INTDIR)\main.sbr"
- -@erase "$(INTDIR)\options.obj"
- -@erase "$(INTDIR)\options.sbr"
- -@erase "$(INTDIR)\resource.res"
- -@erase "$(INTDIR)\settingsdlg.obj"
- -@erase "$(INTDIR)\settingsdlg.sbr"
- -@erase "$(INTDIR)\shutdownsvc.obj"
- -@erase "$(INTDIR)\shutdownsvc.sbr"
- -@erase "$(INTDIR)\utils.obj"
- -@erase "$(INTDIR)\utils.sbr"
- -@erase "$(INTDIR)\vc60.idb"
- -@erase "$(INTDIR)\vc60.pdb"
- -@erase "$(INTDIR)\watcher.obj"
- -@erase "$(INTDIR)\watcher.sbr"
- -@erase "$(OUTDIR)\shutdown.bsc"
- -@erase "$(OUTDIR)\shutdown.exp"
- -@erase "$(OUTDIR)\shutdown.map"
- -@erase "..\Miranda IM\Unicode\Plugins\shutdown.dll"
- -@erase "..\Miranda IM\Unicode\Plugins\shutdown.ilk"
- -@erase "..\Miranda IM\Unicode\Plugins\shutdown.pdb"
-
-"$(OUTDIR)" :
- if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
-
-CPP_PROJ=/nologo /MTd /W4 /Gm /Gi /GR /GX /ZI /Od /I ".\include" /D "_DEBUG" /D "UNICODE" /D "_UNICODE" /D "WIN32" /D "_WINDOWS" /D "_USRDLL" /D "STRICT" /D "SHUTDOWN_EXPORTS" /U "_MBCS" /U "NO_STRICT" /FR"$(INTDIR)\\" /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /GZ /c
-MTL_PROJ=/nologo /D "_DEBUG" /mktyplib203 /win32
-RSC_PROJ=/l 0x409 /fo"$(INTDIR)\resource.res" /i ".\include" /d "_DEBUG" /d "_UNICODE" /d "UNICODE"
-BSC32=bscmake.exe
-BSC32_FLAGS=/nologo /o"$(OUTDIR)\shutdown.bsc"
-BSC32_SBRS= \
- "$(INTDIR)\cpuusage.sbr" \
- "$(INTDIR)\frame.sbr" \
- "$(INTDIR)\main.sbr" \
- "$(INTDIR)\options.sbr" \
- "$(INTDIR)\settingsdlg.sbr" \
- "$(INTDIR)\shutdownsvc.sbr" \
- "$(INTDIR)\utils.sbr" \
- "$(INTDIR)\watcher.sbr"
-
-"$(OUTDIR)\shutdown.bsc" : "$(OUTDIR)" $(BSC32_SBRS)
- $(BSC32) @<<
- $(BSC32_FLAGS) $(BSC32_SBRS)
-<<
-
-LINK32=link.exe
-LINK32_FLAGS=kernel32.lib comctl32.lib gdi32.lib user32.lib shell32.lib advapi32.lib /nologo /base:"0x11070000" /dll /incremental:yes /pdb:"C:/Dokumente und Einstellungen/bib-nutzer/Desktop/Miranda IM/Unicode/Plugins/shutdown.pdb" /map:"$(INTDIR)\shutdown.map" /debug /machine:I386 /nodefaultlib:"uuid.lib" /nodefaultlib:"OLDNAMES" /def:"shutdown.def" /out:"C:/Dokumente und Einstellungen/bib-nutzer/Desktop/Miranda IM/Unicode/Plugins/shutdown.dll" /implib:"$(OUTDIR)\shutdown.lib" /pdbtype:sept
-LINK32_OBJS= \
- "$(INTDIR)\cpuusage.obj" \
- "$(INTDIR)\frame.obj" \
- "$(INTDIR)\main.obj" \
- "$(INTDIR)\options.obj" \
- "$(INTDIR)\settingsdlg.obj" \
- "$(INTDIR)\shutdownsvc.obj" \
- "$(INTDIR)\utils.obj" \
- "$(INTDIR)\watcher.obj" \
- "$(INTDIR)\resource.res"
-
-"..\Miranda IM\Unicode\Plugins\shutdown.dll" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
- $(LINK32) @<<
- $(LINK32_FLAGS) $(LINK32_OBJS)
-<<
-
-!ENDIF
-
-.c{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cpp{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cxx{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.c{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cpp{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cxx{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-
-!IF "$(NO_EXTERNAL_DEPS)" != "1"
-!IF EXISTS("shutdown.dep")
-!INCLUDE "shutdown.dep"
-!ELSE
-!MESSAGE Warning: cannot find "shutdown.dep"
-!ENDIF
-!ENDIF
-
-
-!IF "$(CFG)" == "shutdown - Win32 Release" || "$(CFG)" == "shutdown - Win32 Debug" || "$(CFG)" == "shutdown - Win32 Release Unicode" || "$(CFG)" == "shutdown - Win32 Debug Unicode"
-SOURCE=.\cpuusage.c
-
-"$(INTDIR)\cpuusage.obj" "$(INTDIR)\cpuusage.sbr" : $(SOURCE) "$(INTDIR)"
-
-
-SOURCE=.\frame.c
-
-"$(INTDIR)\frame.obj" "$(INTDIR)\frame.sbr" : $(SOURCE) "$(INTDIR)"
-
-
-SOURCE=.\main.c
-
-"$(INTDIR)\main.obj" "$(INTDIR)\main.sbr" : $(SOURCE) "$(INTDIR)"
-
-
-SOURCE=.\options.c
-
-"$(INTDIR)\options.obj" "$(INTDIR)\options.sbr" : $(SOURCE) "$(INTDIR)"
-
-
-SOURCE=.\settingsdlg.c
-
-"$(INTDIR)\settingsdlg.obj" "$(INTDIR)\settingsdlg.sbr" : $(SOURCE) "$(INTDIR)"
-
-
-SOURCE=.\shutdownsvc.c
-
-"$(INTDIR)\shutdownsvc.obj" "$(INTDIR)\shutdownsvc.sbr" : $(SOURCE) "$(INTDIR)"
-
-
-SOURCE=.\utils.c
-
-"$(INTDIR)\utils.obj" "$(INTDIR)\utils.sbr" : $(SOURCE) "$(INTDIR)"
-
-
-SOURCE=.\watcher.c
-
-"$(INTDIR)\watcher.obj" "$(INTDIR)\watcher.sbr" : $(SOURCE) "$(INTDIR)"
-
-
-SOURCE=.\resource.rc
-
-"$(INTDIR)\resource.res" : $(SOURCE) "$(INTDIR)"
- $(RSC) $(RSC_PROJ) $(SOURCE)
-
-
-
-!ENDIF
-
diff --git a/plugins/AutoShutdown/shutdown.sln b/plugins/AutoShutdown/shutdown.sln new file mode 100644 index 0000000000..e600edfc59 --- /dev/null +++ b/plugins/AutoShutdown/shutdown.sln @@ -0,0 +1,29 @@ +
+Microsoft Visual Studio Solution File, Format Version 11.00
+# Visual Studio 2010
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "AutoShutdown", "shutdown.vcxproj", "{F8776664-EFE8-CDD6-ACFD-3136E7FE2724}"
+EndProject
+Global
+ GlobalSection(DPCodeReviewSolutionGUID) = preSolution
+ DPCodeReviewSolutionGUID = {00000000-0000-0000-0000-000000000000}
+ EndGlobalSection
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Win32 = Debug|Win32
+ Debug|x64 = Debug|x64
+ Release|Win32 = Release|Win32
+ Release|x64 = Release|x64
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {F8776664-EFE8-CDD6-ACFD-3136E7FE2724}.Debug|Win32.ActiveCfg = Debug|Win32
+ {F8776664-EFE8-CDD6-ACFD-3136E7FE2724}.Debug|Win32.Build.0 = Debug|Win32
+ {F8776664-EFE8-CDD6-ACFD-3136E7FE2724}.Debug|x64.ActiveCfg = Debug|x64
+ {F8776664-EFE8-CDD6-ACFD-3136E7FE2724}.Debug|x64.Build.0 = Debug|x64
+ {F8776664-EFE8-CDD6-ACFD-3136E7FE2724}.Release|Win32.ActiveCfg = Release|Win32
+ {F8776664-EFE8-CDD6-ACFD-3136E7FE2724}.Release|Win32.Build.0 = Release|Win32
+ {F8776664-EFE8-CDD6-ACFD-3136E7FE2724}.Release|x64.ActiveCfg = Release|x64
+ {F8776664-EFE8-CDD6-ACFD-3136E7FE2724}.Release|x64.Build.0 = Release|x64
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
diff --git a/plugins/AutoShutdown/shutdown.vcxproj b/plugins/AutoShutdown/shutdown.vcxproj new file mode 100644 index 0000000000..72cbdb3c79 --- /dev/null +++ b/plugins/AutoShutdown/shutdown.vcxproj @@ -0,0 +1,230 @@ +<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <ItemGroup Label="ProjectConfigurations">
+ <ProjectConfiguration Include="Debug|Win32">
+ <Configuration>Debug</Configuration>
+ <Platform>Win32</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Debug|x64">
+ <Configuration>Debug</Configuration>
+ <Platform>x64</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Release|Win32">
+ <Configuration>Release</Configuration>
+ <Platform>Win32</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Release|x64">
+ <Configuration>Release</Configuration>
+ <Platform>x64</Platform>
+ </ProjectConfiguration>
+ </ItemGroup>
+ <PropertyGroup Label="Globals">
+ <ProjectName>AutoShutdown</ProjectName>
+ <ProjectGuid>{F8776664-EFE8-CDD6-ACFD-3136E7FE2724}</ProjectGuid>
+ </PropertyGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
+ <ConfigurationType>DynamicLibrary</ConfigurationType>
+ <CharacterSet>Unicode</CharacterSet>
+ <WholeProgramOptimization>true</WholeProgramOptimization>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
+ <ConfigurationType>DynamicLibrary</ConfigurationType>
+ <CharacterSet>Unicode</CharacterSet>
+ <WholeProgramOptimization>true</WholeProgramOptimization>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
+ <ConfigurationType>DynamicLibrary</ConfigurationType>
+ <CharacterSet>Unicode</CharacterSet>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
+ <ConfigurationType>DynamicLibrary</ConfigurationType>
+ <CharacterSet>Unicode</CharacterSet>
+ </PropertyGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+ <ImportGroup Label="ExtensionSettings">
+ </ImportGroup>
+ <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ </ImportGroup>
+ <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ </ImportGroup>
+ <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ </ImportGroup>
+ <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ </ImportGroup>
+ <PropertyGroup Label="UserMacros" />
+ <PropertyGroup>
+ <_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
+ <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(SolutionDir)$(Configuration)\Plugins\</OutDir>
+ <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(SolutionDir)$(Configuration)\Obj\$(ProjectName)\</IntDir>
+ <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(SolutionDir)$(Configuration)\Plugins\</OutDir>
+ <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(SolutionDir)$(Configuration)\Obj\$(ProjectName)\</IntDir>
+ <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(SolutionDir)$(Configuration)64\Plugins\</OutDir>
+ <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\</IntDir>
+ <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(SolutionDir)$(Configuration)64\Plugins\</OutDir>
+ <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\</IntDir>
+ <IgnoreImportLibrary>true</IgnoreImportLibrary>
+ </PropertyGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+ <ClCompile>
+ <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
+ <FunctionLevelLinking>false</FunctionLevelLinking>
+ <Optimization>Disabled</Optimization>
+ <WarningLevel>Level3</WarningLevel>
+ <MinimalRebuild>true</MinimalRebuild>
+ <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
+ <AdditionalIncludeDirectories>..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;SHUTDOWN_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>common.h</PrecompiledHeaderFile>
+ </ClCompile>
+ <ResourceCompile>
+ <AdditionalIncludeDirectories>..\..\include\msapi</AdditionalIncludeDirectories>
+ <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ </ResourceCompile>
+ <Link>
+ <LinkDLL>true</LinkDLL>
+ <GenerateDebugInformation>true</GenerateDebugInformation>
+ <SubSystem>Windows</SubSystem>
+ <ImportLibrary>$(IntDir)$(TargetName).lib</ImportLibrary>
+ <BaseAddress>0x11070000</BaseAddress>
+ <AdditionalDependencies>comctl32.lib;%(AdditionalDependencies)</AdditionalDependencies>
+ <RandomizedBaseAddress>false</RandomizedBaseAddress>
+ <AdditionalLibraryDirectories>$(SolutionDir)\lib</AdditionalLibraryDirectories>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
+ <ClCompile>
+ <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
+ <FunctionLevelLinking>false</FunctionLevelLinking>
+ <Optimization>Disabled</Optimization>
+ <WarningLevel>Level3</WarningLevel>
+ <AdditionalIncludeDirectories>..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <PreprocessorDefinitions>WIN64;_DEBUG;_WINDOWS;_USRDLL;SHUTDOWN_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>common.h</PrecompiledHeaderFile>
+ </ClCompile>
+ <ResourceCompile>
+ <AdditionalIncludeDirectories>..\..\include\msapi</AdditionalIncludeDirectories>
+ <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ </ResourceCompile>
+ <Link>
+ <LinkDLL>true</LinkDLL>
+ <GenerateDebugInformation>true</GenerateDebugInformation>
+ <SubSystem>Windows</SubSystem>
+ <ImportLibrary>$(IntDir)$(TargetName).lib</ImportLibrary>
+ <BaseAddress>0x11070000</BaseAddress>
+ <AdditionalDependencies>comctl32.lib;%(AdditionalDependencies)</AdditionalDependencies>
+ <RandomizedBaseAddress>false</RandomizedBaseAddress>
+ <AdditionalLibraryDirectories>$(SolutionDir)\lib</AdditionalLibraryDirectories>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+ <ClCompile>
+ <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
+ <StringPooling>true</StringPooling>
+ <FunctionLevelLinking>true</FunctionLevelLinking>
+ <Optimization>Full</Optimization>
+ <WarningLevel>Level3</WarningLevel>
+ <AdditionalIncludeDirectories>..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;SHUTDOWN_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <FavorSizeOrSpeed>Size</FavorSizeOrSpeed>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>common.h</PrecompiledHeaderFile>
+ </ClCompile>
+ <ResourceCompile>
+ <AdditionalIncludeDirectories>..\..\include\msapi</AdditionalIncludeDirectories>
+ <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ </ResourceCompile>
+ <Link>
+ <LinkDLL>true</LinkDLL>
+ <GenerateDebugInformation>true</GenerateDebugInformation>
+ <SubSystem>Windows</SubSystem>
+ <ImportLibrary>$(IntDir)$(TargetName).lib</ImportLibrary>
+ <BaseAddress>0x11070000</BaseAddress>
+ <OptimizeReferences>true</OptimizeReferences>
+ <EnableCOMDATFolding>true</EnableCOMDATFolding>
+ <RandomizedBaseAddress>false</RandomizedBaseAddress>
+ <AdditionalLibraryDirectories>$(SolutionDir)\lib</AdditionalLibraryDirectories>
+ <AdditionalDependencies>comctl32.lib;%(AdditionalDependencies)</AdditionalDependencies>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
+ <ClCompile>
+ <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
+ <StringPooling>true</StringPooling>
+ <FunctionLevelLinking>true</FunctionLevelLinking>
+ <Optimization>Full</Optimization>
+ <WarningLevel>Level3</WarningLevel>
+ <AdditionalIncludeDirectories>..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <PreprocessorDefinitions>WIN64;NDEBUG;_WINDOWS;_USRDLL;SHUTDOWN_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <FavorSizeOrSpeed>Size</FavorSizeOrSpeed>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>common.h</PrecompiledHeaderFile>
+ </ClCompile>
+ <ResourceCompile>
+ <AdditionalIncludeDirectories>..\..\include\msapi</AdditionalIncludeDirectories>
+ <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ </ResourceCompile>
+ <Link>
+ <LinkDLL>true</LinkDLL>
+ <GenerateDebugInformation>true</GenerateDebugInformation>
+ <SubSystem>Windows</SubSystem>
+ <ImportLibrary>$(IntDir)$(TargetName).lib</ImportLibrary>
+ <BaseAddress>0x11070000</BaseAddress>
+ <AdditionalDependencies>comctl32.lib;%(AdditionalDependencies)</AdditionalDependencies>
+ <OptimizeReferences>true</OptimizeReferences>
+ <EnableCOMDATFolding>true</EnableCOMDATFolding>
+ <RandomizedBaseAddress>false</RandomizedBaseAddress>
+ <AdditionalLibraryDirectories>$(SolutionDir)\lib</AdditionalLibraryDirectories>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemGroup>
+ <ClCompile Include="cpuusage.cpp" />
+ <ClCompile Include="frame.cpp" />
+ <ClCompile Include="main.cpp">
+ <PrecompiledHeader>Create</PrecompiledHeader>
+ </ClCompile>
+ <ClCompile Include="options.cpp" />
+ <ClCompile Include="settingsdlg.cpp" />
+ <ClCompile Include="shutdownsvc.cpp" />
+ <ClCompile Include="utils.cpp" />
+ <ClCompile Include="watcher.cpp" />
+ </ItemGroup>
+ <ItemGroup>
+ <ClInclude Include="common.h" />
+ <ClInclude Include="cpuusage.h" />
+ <ClInclude Include="frame.h" />
+ <ClInclude Include="options.h" />
+ <ClInclude Include="settingsdlg.h" />
+ <ClInclude Include="shutdownsvc.h" />
+ <ClInclude Include="utils.h" />
+ <ClInclude Include="watcher.h" />
+ <ClInclude Include="resource.h" />
+ <ClInclude Include="version.h" />
+ </ItemGroup>
+ <ItemGroup>
+ <CustomBuild Include="res\active.ico" />
+ <CustomBuild Include="res\header.ico" />
+ <CustomBuild Include="res\inactive.ico" />
+ <CustomBuild Include="docs\Shutdown-Developer.txt" />
+ <CustomBuild Include="docs\Shutdown-License.txt" />
+ <CustomBuild Include="docs\Shutdown-Readme.txt" />
+ <CustomBuild Include="docs\Shutdown-Translation.txt" />
+ <CustomBuild Include="Info_Src.txt" />
+ <CustomBuild Include="License_Appendix.txt" />
+ </ItemGroup>
+ <ItemGroup>
+ <ResourceCompile Include="resource.rc" />
+ <ResourceCompile Include="version.rc" />
+ </ItemGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
+ <ImportGroup Label="ExtensionTargets">
+ </ImportGroup>
+</Project>
\ 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..a71c6cd42b --- /dev/null +++ b/plugins/AutoShutdown/shutdown.vcxproj.filters @@ -0,0 +1,116 @@ +<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <ItemGroup>
+ <Filter Include="Source Files">
+ <UniqueIdentifier>{e2b24b11-cf5a-4c4d-b030-7c2712302456}</UniqueIdentifier>
+ <Extensions>cpp;c;cxx;rc;def;r;odl;idl;hpj;bat</Extensions>
+ </Filter>
+ <Filter Include="Header Files">
+ <UniqueIdentifier>{88683126-7ad0-4693-9acf-7ce091d815e5}</UniqueIdentifier>
+ <Extensions>h;hpp;hxx;hm;inl</Extensions>
+ </Filter>
+ <Filter Include="Resource Files">
+ <UniqueIdentifier>{6fa287d2-ba8a-43ba-9cff-72ad37c5d522}</UniqueIdentifier>
+ <Extensions>ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe</Extensions>
+ </Filter>
+ <Filter Include="Documentation">
+ <UniqueIdentifier>{616559cd-4d97-4708-949b-89d8e3778330}</UniqueIdentifier>
+ <Extensions>txt</Extensions>
+ </Filter>
+ </ItemGroup>
+ <ItemGroup>
+ <ClCompile Include="cpuusage.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="frame.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="main.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="options.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="settingsdlg.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="shutdownsvc.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="utils.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="watcher.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ </ItemGroup>
+ <ItemGroup>
+ <ClInclude Include="common.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
+ <ClInclude Include="cpuusage.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
+ <ClInclude Include="frame.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
+ <ClInclude Include="options.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
+ <ClInclude Include="settingsdlg.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
+ <ClInclude Include="shutdownsvc.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
+ <ClInclude Include="utils.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
+ <ClInclude Include="watcher.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
+ <ClInclude Include="resource.h">
+ <Filter>Resource Files</Filter>
+ </ClInclude>
+ <ClInclude Include="version.h">
+ <Filter>Resource Files</Filter>
+ </ClInclude>
+ </ItemGroup>
+ <ItemGroup>
+ <ResourceCompile Include="resource.rc">
+ <Filter>Resource Files</Filter>
+ </ResourceCompile>
+ <ResourceCompile Include="version.rc">
+ <Filter>Resource Files</Filter>
+ </ResourceCompile>
+ </ItemGroup>
+ <ItemGroup>
+ <CustomBuild Include="res\active.ico">
+ <Filter>Resource Files</Filter>
+ </CustomBuild>
+ <CustomBuild Include="res\header.ico">
+ <Filter>Resource Files</Filter>
+ </CustomBuild>
+ <CustomBuild Include="res\inactive.ico">
+ <Filter>Resource Files</Filter>
+ </CustomBuild>
+ <CustomBuild Include="docs\Shutdown-Developer.txt">
+ <Filter>Documentation</Filter>
+ </CustomBuild>
+ <CustomBuild Include="docs\Shutdown-License.txt">
+ <Filter>Documentation</Filter>
+ </CustomBuild>
+ <CustomBuild Include="docs\Shutdown-Readme.txt">
+ <Filter>Documentation</Filter>
+ </CustomBuild>
+ <CustomBuild Include="docs\Shutdown-Translation.txt">
+ <Filter>Documentation</Filter>
+ </CustomBuild>
+ <CustomBuild Include="Info_Src.txt">
+ <Filter>Documentation</Filter>
+ </CustomBuild>
+ <CustomBuild Include="License_Appendix.txt">
+ <Filter>Documentation</Filter>
+ </CustomBuild>
+ </ItemGroup>
+</Project>
\ No newline at end of file diff --git a/plugins/AutoShutdown/shutdownsvc.cpp b/plugins/AutoShutdown/shutdownsvc.cpp index 2b519cc512..52df4159d9 100644 --- a/plugins/AutoShutdown/shutdownsvc.cpp +++ b/plugins/AutoShutdown/shutdownsvc.cpp @@ -120,7 +120,7 @@ static BOOL IsShutdownTypeEnabled(BYTE shutdownType) bReturn=TRUE;
if(RegOpenKeyEx(HKEY_CURRENT_USER,_T("Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer"),0,KEY_QUERY_VALUE,&hKey)==ERROR_SUCCESS) {
dwSize=sizeof(dwSetting);
- if(RegQueryValueEx(hKey,_T("NoLogOff"),0,NULL,(void*)&dwSetting,&dwSize)==ERROR_SUCCESS)
+ if(RegQueryValueEx(hKey, _T("NoLogOff"), 0, NULL, (LPBYTE)&dwSetting, &dwSize) == ERROR_SUCCESS)
if(dwSetting) bReturn=FALSE;
RegCloseKey(hKey);
}
@@ -136,7 +136,7 @@ static BOOL IsShutdownTypeEnabled(BYTE shutdownType) bReturn=TRUE;
if(RegOpenKeyEx(HKEY_CURRENT_USER,_T("Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System"),0,KEY_QUERY_VALUE,&hKey)==ERROR_SUCCESS) {
dwSize=sizeof(dwSetting);
- if(!RegQueryValueEx(hKey,_T("DisableLockWorkstation"),0,NULL,(void*)&dwSetting,&dwSize))
+ if(!RegQueryValueEx(hKey, _T("DisableLockWorkstation"), 0, NULL, (LPBYTE)&dwSetting, &dwSize))
if(dwSetting) bReturn=FALSE;
RegCloseKey(hKey);
}
@@ -216,23 +216,23 @@ static DWORD ShutdownNow(BYTE shutdownType) /* save old settings */
dwSize=sizeof(szScreenSaveActive); /* in bytes */
ZeroMemory(&szScreenSaveActive,dwSize);
- RegQueryValueEx(hKey,_T("ScreenSaveActive"),0,NULL,(void*)szScreenSaveActive,&dwSize);
+ RegQueryValueEx(hKey, _T("ScreenSaveActive"), 0, NULL, (LPBYTE)szScreenSaveActive, &dwSize);
dwSize=sizeof(szScreenSaverIsSecure); /* in bytes */
ZeroMemory(&szScreenSaverIsSecure, dwSize);
- RegQueryValueEx(hKey,_T("ScreenSaverIsSecure"),0,NULL,(void*)szScreenSaverIsSecure,&dwSize);
+ RegQueryValueEx(hKey, _T("ScreenSaverIsSecure"), 0, NULL, (LPBYTE)szScreenSaverIsSecure, &dwSize);
dwSize=sizeof(szScrnsaveExe); /* in bytes */
- ZeroMemory(&szScrnsaveExe,dwSize);
- RegQueryValueEx(hKey,_T("SCRNSAVE.EXE"),0,NULL,(void*)szScrnsaveExe,&dwSize);
+ ZeroMemory(&szScrnsaveExe, dwSize);
+ RegQueryValueEx(hKey, _T("SCRNSAVE.EXE"), 0, NULL, (LPBYTE)szScrnsaveExe, &dwSize);
/* set LOGON.SCR data */
- if(!RegSetValueEx(hKey,_T("ScreenSaveActive"),0,REG_SZ,(void*)_T("1"),2) &&
- !RegSetValueEx(hKey,_T("ScreenSaverIsSecure"),0,REG_SZ,(void*)"1",2) &&
- !RegSetValueEx(hKey,_T("SCRNSAVE.EXE"),0,REG_SZ,(void*)_T("LOGIN.SCR"),10))
- SendMessage(GetForegroundWindow(),WM_SYSCOMMAND,SC_SCREENSAVE,0);
+ if(!RegSetValueEx(hKey, _T("ScreenSaveActive"), 0, REG_SZ, (LPBYTE)_T("1"), 2) &&
+ !RegSetValueEx(hKey, _T("ScreenSaverIsSecure"), 0, REG_SZ, (LPBYTE)"1", 2) &&
+ !RegSetValueEx(hKey, _T("SCRNSAVE.EXE"), 0, REG_SZ, (LPBYTE)_T("LOGIN.SCR"), 10))
+ SendMessage(GetForegroundWindow(), WM_SYSCOMMAND, SC_SCREENSAVE, 0);
else dwErrCode=GetLastError();
/* restore old settings */
- RegSetValueEx(hKey,_T("ScreenSaveActive"),0,REG_SZ,(void*)szScreenSaveActive,(lstrlen(szScreenSaveActive)+1)*sizeof(TCHAR));
- RegSetValueEx(hKey,_T("ScreenSaverIsSecure"),0,REG_SZ,(void*)szScreenSaverIsSecure,(lstrlen(szScreenSaverIsSecure)+1)*sizeof(TCHAR));
- RegSetValueEx(hKey,_T("SCRNSAVE.EXE"),0,REG_SZ,(void*)szScrnsaveExe,(lstrlen(szScrnsaveExe)+1)*sizeof(TCHAR));
+ RegSetValueEx(hKey, _T("ScreenSaveActive"), 0, REG_SZ, (BYTE*)szScreenSaveActive, (lstrlen(szScreenSaveActive)+1)*sizeof(TCHAR));
+ RegSetValueEx(hKey, _T("ScreenSaverIsSecure"), 0, REG_SZ, (BYTE*)szScreenSaverIsSecure, (lstrlen(szScreenSaverIsSecure)+1)*sizeof(TCHAR));
+ RegSetValueEx(hKey, _T("SCRNSAVE.EXE"), 0, REG_SZ, (BYTE*)szScrnsaveExe, (lstrlen(szScrnsaveExe)+1)*sizeof(TCHAR));
RegCloseKey(hKey);
} else dwErrCode=GetLastError();
} else dwErrCode=GetLastError();
diff --git a/plugins/AutoShutdown/utils.cpp b/plugins/AutoShutdown/utils.cpp index b9bbddbc01..d9ea4a879e 100644 --- a/plugins/AutoShutdown/utils.cpp +++ b/plugins/AutoShutdown/utils.cpp @@ -87,8 +87,9 @@ void TrimString(TCHAR *pszStr) /************************* Error Output ***************************/
-static void MessageBoxIndirectFree(MSGBOXPARAMSA *mbp)
+static void MessageBoxIndirectFree(void *param)
{
+ MSGBOXPARAMSA *mbp = (MSGBOXPARAMSA*)param;
MessageBoxIndirectA(mbp);
mir_free((char*)mbp->lpszCaption); /* does NULL check */
mir_free((char*)mbp->lpszText); /* does NULL check */
@@ -129,7 +130,7 @@ void ShowInfoMessage(BYTE flags,const char *pszTitle,const char *pszTextFmt,...) case NIIF_WARNING: mbp->dwStyle|=MB_ICONWARNING; break;
case NIIF_ERROR: mbp->dwStyle|=MB_ICONERROR;
}
- mir_forkthread(MessageBoxIndirectFree,mbp);
+ mir_forkthread(MessageBoxIndirectFree, mbp);
}
// LocalFree() the return value
@@ -163,8 +164,8 @@ BOOL SystemTimeToTimeStamp(SYSTEMTIME *st,time_t *timestamp) BOOL TimeStampToSystemTime(time_t timestamp,SYSTEMTIME *st)
{
- struct tm *ts;
- ts=localtime(×tamp); /* statically alloced, local time correction */
+ struct tm *ts = {0};
+ localtime_s(ts, ×tamp); /* statically alloced, local time correction */
if(ts==NULL) return FALSE;
st->wMilliseconds=0; /* 0-999 (not given in tm) */
st->wSecond=(WORD)ts->tm_sec; /* 0-59 */
@@ -265,7 +266,8 @@ int FontService_RegisterFont(const char *pszDbModule,const char *pszDbName,const fid.deffontsettings.charset=plfDefault->lfCharSet;
lstrcpyn(fid.deffontsettings.szFace,plfDefault->lfFaceName,SIZEOF(fid.deffontsettings.szFace)); /* buffer safe */
}
- return CallService(MS_FONT_REGISTERT,(WPARAM)&fid,(LPARAM)&fid);
+ FontRegisterT(&fid);
+ return 0;
}
int FontService_GetFont(const TCHAR *pszSection,const TCHAR *pszDescription,COLORREF *pclr,LOGFONT *plf)
@@ -288,7 +290,8 @@ int FontService_RegisterColor(const char *pszDbModule,const char *pszDbName,cons lstrcpynA(cid.setting,pszDbName,sizeof(cid.setting)); /* buffer safe */
lstrcpyn(cid.group,pszSection,SIZEOF(cid.group)); /* buffer safe */
lstrcpyn(cid.name,pszDescription,SIZEOF(cid.name)); /* buffer safe */
- return CallService(MS_COLOUR_REGISTERT,(WPARAM)&cid,0);
+ ColourRegisterT(&cid);
+ return 0;
}
int FontService_GetColor(const TCHAR *pszSection,const TCHAR *pszDescription,COLORREF *pclr)
@@ -320,7 +323,7 @@ HANDLE IcoLib_AddIconRes(const char *pszDbName,const TCHAR *pszSection,const TCH sid.flags=SIDF_SORTED|SIDF_ALL_TCHAR;
if(!GetModuleFileName(hInst,szFileName,SIZEOF(szFileName)))
return NULL;
- return (HANDLE)CallService(MS_SKIN2_ADDICON,0,(LPARAM)&sid);
+ return Skin_AddIcon(&sid);
}
HICON IcoLib_GetIcon(const char *pszDbName)
@@ -355,7 +358,8 @@ int SkinAddNewSoundBundled(const char *pszDbName,const char *pszSection,const ch CloseHandle(hFile);
}
}
- return CallService(MS_SKIN_ADDNEWSOUND,0,(LPARAM)&ssd);
+ Skin_AddSound(&ssd);
+ return 0;
}
/* workaround for 'Hotkey Service' plugin because it has needs an event catcher */
diff --git a/plugins/AutoShutdown/version.h b/plugins/AutoShutdown/version.h index cba1fe2c93..70dd82fe01 100644 --- a/plugins/AutoShutdown/version.h +++ b/plugins/AutoShutdown/version.h @@ -19,22 +19,6 @@ 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.
*/
-#define NEEDED_MIRANDA_VERSION PLUGIN_MAKE_VERSION(0,7,0,16)
-#define NEEDED_MIRANDA_VERSION_STR "0.7 alpha build #16"
#define PLUGIN_VERSION PLUGIN_MAKE_VERSION(1,4,0,2)
#define FILE_VERSION 1,4,0,2
-
-#if defined(_DEBUG)
- #define FILE_VERSION_STR "1.4.0.3 alpha"
-#else
- #define FILE_VERSION_STR "1.4.0.2"
-#endif
-
-#define PLUGIN_EMAIL "hrathh users.sourceforge.net"
-#define PLUGIN_EMAIL_ATT_POS 7 /* position of the @-sign in the email adress above */
-
-#if defined(_UNICODE)
- #define PLUGIN_WEBSITE "http://addons.miranda-im.org/details.php?action=viewfile&id=3056"
-#else
- #define PLUGIN_WEBSITE "http://addons.miranda-im.org/details.php?action=viewfile&id=1086"
-#endif
+#define FILE_VERSION_STR "1.4.0.2"
diff --git a/plugins/AutoShutdown/version.rc b/plugins/AutoShutdown/version.rc index 97f35498c3..55d209f055 100644 --- a/plugins/AutoShutdown/version.rc +++ b/plugins/AutoShutdown/version.rc @@ -1,5 +1,3 @@ -#ifndef _MAC
-
#include "version.h"
/////////////////////////////////////////////////////////////////////////////
@@ -27,11 +25,7 @@ BEGIN VALUE "Comments", "Licensed under the terms of the GNU General Public License"
VALUE "FileDescription", "AutoShutdown Plugin for Miranda IM"
VALUE "FileVersion", FILE_VERSION_STR
-#ifdef _UNICODE
- VALUE "InternalName", "AutoShutdown (Unicode)"
-#else
VALUE "InternalName", "AutoShutdown"
-#endif
VALUE "LegalCopyright", "Copyright © 2004-2007 H. Herkenrath"
VALUE "OriginalFilename", "shutdown.dll"
VALUE "ProductName", "Automatic Shutdown"
@@ -43,8 +37,6 @@ BEGIN VALUE "Translation", 0x0, 1200
END
END
-
-#endif // !_MAC
diff --git a/plugins/AutoShutdown/watcher.cpp b/plugins/AutoShutdown/watcher.cpp index 75a2881e98..ad9422e439 100644 --- a/plugins/AutoShutdown/watcher.cpp +++ b/plugins/AutoShutdown/watcher.cpp @@ -43,8 +43,9 @@ static HANDLE hHookModulesLoaded; static WORD currentWatcherType;
-static void __stdcall MainThreadMapping(HANDLE *phDoneEvent)
+static void __stdcall MainThreadMapping(void *param)
{
+ HANDLE *phDoneEvent = (HANDLE*)param;
ServiceShutdown(0,TRUE); /* ensure main thread (for cpu usage shutdown) */
ServiceStopWatcher(0,0);
if(*phDoneEvent!=NULL) SetEvent(*phDoneEvent);
@@ -54,7 +55,7 @@ static void __inline ShutdownAndStopWatcher(void) {
HANDLE hDoneEvent;
hDoneEvent=CreateEvent(NULL,FALSE,FALSE,NULL);
- if(CallFunctionAsync(MainThreadMapping,&hDoneEvent))
+ if(CallFunctionAsync(MainThreadMapping, &hDoneEvent))
if(hDoneEvent!=NULL) WaitForSingleObject(hDoneEvent,INFINITE);
if(hDoneEvent!=NULL) CloseHandle(hDoneEvent);
}
|