diff options
author | mataes2007 <mataes2007@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb> | 2011-11-26 12:49:09 +0000 |
---|---|---|
committer | mataes2007 <mataes2007@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb> | 2011-11-26 12:49:09 +0000 |
commit | 308b14daa23b11367b677d24194f35cbb6a7dbec (patch) | |
tree | 2a30985f29749384253b5eab1c3d70d4a0cab2c1 /kbdnotify/main.c | |
parent | 93d3575dff1db593b516821478510a4fecf0649e (diff) |
updated KeyboardNotify
git-svn-id: http://miranda-plugins.googlecode.com/svn/trunk@212 e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb
Diffstat (limited to 'kbdnotify/main.c')
-rw-r--r-- | kbdnotify/main.c | 78 |
1 files changed, 52 insertions, 26 deletions
diff --git a/kbdnotify/main.c b/kbdnotify/main.c index 033b95b..8e9fdff 100644 --- a/kbdnotify/main.c +++ b/kbdnotify/main.c @@ -65,6 +65,8 @@ History ------- + 1.5.7.7:
+ [!] Added support for Miranda 0.8.x.x.
1.5.7.6:
[!] Fixed bug in Ignore module.
1.5.7.5:
@@ -195,20 +197,20 @@ #include "EnumProc.h"
#include "utils.h"
#include "m_kbdnotify.h"
-#include "../headers_c/newpluginapi.h"
-#include "../headers_c/m_database.h"
-#include "../headers_c/m_options.h" -#include "../headers_c/m_clist.h" -#include "../headers_c/m_system.h" -#include "../headers_c/m_langpack.h" -#include "../headers_c/m_protocols.h" -#include "../headers_c/m_protosvc.h" -#include "../headers_c/m_contacts.h" -#include "../headers_c/m_message.h" -#include "../headers_c/m_utils.h" -#include "../headers_c/m_icq.h" -#include "../headers_c/m_metacontacts.h" -#include "../headers_c/m_updater.h" +#include <newpluginapi.h>
+#include <m_database.h>
+#include <m_options.h> +#include <m_clist.h> +#include <m_system.h> +#include <m_langpack.h> +#include <m_protocols.h> +#include <m_protosvc.h> +#include <m_contacts.h> +#include <m_message.h> +#include <m_utils.h> +#include <m_icq.h> +#include "m_metacontacts.h" +#include "m_updater.h" #pragma comment(lib, "advapi32.lib") #define NCONVERS_BLINKID ((HANDLE)123456) //nconvers' random identifier used to flash an icon for "incoming message" on contact list @@ -306,18 +308,20 @@ char *szMetaProto = NULL; BYTE bMetaProtoEnabled = 0; -PLUGININFO pluginInfo={ +PLUGININFOEX pluginInfo={ sizeof(PLUGININFO), "Keyboard Notify Ext.", - PLUGIN_MAKE_VERSION(1,5,7,6), + PLUGIN_MAKE_VERSION(1,5,7,7), "Flashes your keyboard LEDs when a message has arrived", "TioDuke", "tioduke@yahoo.ca", - "© 2002-2003 M.Öberg, 2004 Std, 2005-2006 TioDuke", + "© 2002-2003 M.Öberg, 2004 Std, 2005-2008 TioDuke", "http://addons.miranda-im.org/", 0, //not transient - 0 //doesn't replace anything built-in -}; + 0, //doesn't replace anything built-in + {0x119d7288, 0x2050, 0x448d, { 0x99, 0x00, 0xd8, 0x6a, 0xc7, 0x04, 0x26, 0xbf }} //{119D7288-2050-448d-9900-D86AC70426BF}
+};
+
int InitializeOptions(WPARAM,LPARAM); @@ -1139,13 +1143,35 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) -__declspec(dllexport) PLUGININFO* MirandaPluginInfo(DWORD mirandaVersion) -{ - - return &pluginInfo; - -} - +__declspec(dllexport) PLUGININFO* MirandaPluginInfo(DWORD mirandaVersion)
+{
+
+ pluginInfo.cbSize = sizeof(PLUGININFO);
+ return (PLUGININFO*)&pluginInfo;
+
+}
+
+
+
+__declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
+{
+
+ pluginInfo.cbSize = sizeof(PLUGININFOEX);
+ return &pluginInfo;
+
+}
+
+
+
+#define MIID_KBDNOTIFY {0x119d7288, 0x2050, 0x448d, { 0x99, 0x00, 0xd8, 0x6a, 0xc7, 0x04, 0x26, 0xbf }}
+static const MUUID interfaces[] = {MIID_KBDNOTIFY, MIID_LAST};
+__declspec(dllexport) const MUUID* MirandaPluginInterfaces(void)
+{
+
+ return interfaces;
+
+}
+
int __declspec(dllexport) Load(PLUGINLINK *link) |