From 8fa9881c798377013852e9b9e8a87ae8644a03a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Tue, 29 Oct 2013 21:18:10 +0000 Subject: Adopted SmartAutoAway plugin First compilable version. git-svn-id: http://svn.miranda-ng.org/main/trunk@6688 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/SmartAutoAway/saani.cpp | 67 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 plugins/SmartAutoAway/saani.cpp (limited to 'plugins/SmartAutoAway/saani.cpp') 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 +#include + +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 +} -- cgit v1.2.3