diff options
author | Robert Pösel <robyer@seznam.cz> | 2013-10-29 21:18:10 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2013-10-29 21:18:10 +0000 |
commit | 8fa9881c798377013852e9b9e8a87ae8644a03a9 (patch) | |
tree | f412f6c2bad026519f78a7be0f58dea23cd57043 /plugins/SmartAutoAway/saani.cpp | |
parent | 366f71877c14fe9b452f435b1b8ed2ed1caf5115 (diff) |
Adopted SmartAutoAway plugin
First compilable version.
git-svn-id: http://svn.miranda-ng.org/main/trunk@6688 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SmartAutoAway/saani.cpp')
-rw-r--r-- | plugins/SmartAutoAway/saani.cpp | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/plugins/SmartAutoAway/saani.cpp b/plugins/SmartAutoAway/saani.cpp new file mode 100644 index 0000000000..348b21bae3 --- /dev/null +++ b/plugins/SmartAutoAway/saani.cpp @@ -0,0 +1,67 @@ +/*
+
+Miranda IM: the free IM client for Microsoft* Windows*
+
+Copyright 2000-2006 Miranda ICQ/IM project,
+all portions of this codebase are copyrighted to the people
+listed in contributors.txt.
+
+This program is free software; you can redistribute it and/or
+modify it under the terms of the GNU General Public License
+as published by the Free Software Foundation; either version 2
+of the License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+*/
+
+//#ifdef VCL_VC60
+#include "AggressiveOptimize.h"
+//#endif
+#include <windows.h>
+#include <newpluginapi.h>
+
+PLUGININFOEX pluginInfo = {
+ sizeof(PLUGININFOEX),
+ "Smart Auto Away NI",
+ PLUGIN_MAKE_VERSION(0, 0, 3, 3),
+ "Just to suppress the build-in \"Idle\" module",
+ "YB",
+ "y_b" /* these */ "@" /* fucking spammers */ "saaplugin.no-ip.info" /* gather everything */,
+ "© 2005-2009 YB; 2000-2006 Miranda-IM",
+ "http://saaplugin.no-ip.info/",
+ 0,
+ // 91bb7ad7-7ed8-40b9-b150-3f376b6b67fe
+ { 0x91bb7ad7,0x7ed8,0x40b9,{0xb1, 0x50, 0x3f, 0x37, 0x6b, 0x6b, 0x67, 0xfe}}
+};
+
+BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
+{
+ return TRUE;
+}
+
+extern "C" __declspec(dllexport) PLUGININFOEX * MirandaPluginInfoEx(DWORD mirandaVersion)
+{
+ //return 0;
+ pluginInfo.cbSize = sizeof( PLUGININFOEX );
+ return &pluginInfo;
+}
+
+extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = {MIID_IDLE, MIID_LAST};
+
+extern "C" int __declspec(dllexport) Load()
+{
+ return 0;
+}
+
+extern "C" int __declspec(dllexport) Unload(void)
+{
+// AutoAwayShutdown(0,0);
+ return 0; //if 1 we dont want to shutdown because we have hooked ME_SYSTEM_SHUTDOWN
+}
|