summaryrefslogtreecommitdiff
path: root/plugins/w7ui/main.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2012-05-17 17:37:22 +0000
committerKirill Volinsky <mataes2007@gmail.com>2012-05-17 17:37:22 +0000
commit78d71d2cad6f243c6ff31d41380b8c5b58407de5 (patch)
treed0c05983b315352c5e66d23420da4b8fd8b5aff4 /plugins/w7ui/main.cpp
parenta9e8daee448c229aa3f8ded0c5f5c0fe7aa42529 (diff)
added some plugins
git-svn-id: http://svn.miranda-ng.org/main/trunk@20 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/w7ui/main.cpp')
-rw-r--r--plugins/w7ui/main.cpp93
1 files changed, 93 insertions, 0 deletions
diff --git a/plugins/w7ui/main.cpp b/plugins/w7ui/main.cpp
new file mode 100644
index 0000000000..a8763a60a6
--- /dev/null
+++ b/plugins/w7ui/main.cpp
@@ -0,0 +1,93 @@
+/*
+Miranda core extensions
+
+Copyright 2000-2007 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.
+*/
+
+#include "headers.h"
+#include <win2k.h>
+
+int LoadW7UI();
+int UnloadW7UI();
+
+PLUGINLINK* pluginLink;
+HINSTANCE g_hInst;
+
+struct LIST_INTERFACE li;
+struct MM_INTERFACE mmi;
+
+// {3625ACB8-794C-4727-88EA-76DBBAC6D200}
+#define MIID_W7UI { 0x3625acb8, 0x794c, 0x4727, { 0x88, 0xea, 0x76, 0xdb, 0xba, 0xc6, 0xd2, 0x0 } }
+
+
+PLUGININFOEX pluginInfo = {
+ sizeof(PLUGININFOEX),
+ "Windows 7 UI",
+ PLUGIN_MAKE_VERSION(0, 0, 0, 1),
+ "Provides support for Windows 7 Taskbar feautures such as Aero Peek, Overlay icons, Jump Lists, Progress Bar",
+ "nullbie, persei",
+ "nullbie@miranda.im",
+ "2009 Victor Pavlychko, Vitaliy Igonin",
+ "http://nullbie.miranda.im",
+ UNICODE_AWARE,
+ 0, // replace internal version (if any)
+#ifdef _UNICODE
+ // {D38EEB0B-B8EE-4177-B9E5-91EBE101E054}
+ { 0xd38eeb0b, 0xb8ee, 0x4177, { 0xb9, 0xe5, 0x91, 0xeb, 0xe1, 0x1, 0xe0, 0x54 } }
+#else
+ // {DEB3FAFA-6B24-4db3-AA34-9EC27B868B50}
+ { 0xdeb3fafa, 0x6b24, 0x4db3, { 0xaa, 0x34, 0x9e, 0xc2, 0x7b, 0x86, 0x8b, 0x50 } }
+#endif
+};
+
+BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
+{
+ g_hInst = hinstDLL;
+ return TRUE;
+}
+
+extern "C" __declspec(dllexport) PLUGININFOEX *MirandaPluginInfoEx(DWORD mirandaVersion)
+{
+ return &pluginInfo;
+}
+
+extern "C" __declspec(dllexport) const MUUID *MirandaPluginInterfaces(void)
+{
+ static const MUUID interfaces[] = { MIID_W7UI, MIID_LAST };
+ return interfaces;
+}
+
+extern "C" __declspec(dllexport) int Load(PLUGINLINK * link)
+{
+ if (!IsWinVer7Plus()) return 1;
+
+ pluginLink = link;
+ mir_getLI(&li);
+ mir_getMMI(&mmi);
+
+ LoadW7UI();
+
+ return 0;
+}
+
+extern "C" __declspec(dllexport) int Unload(void)
+{
+ UnloadW7UI();
+ return 0;
+}