diff options
-rw-r--r-- | worldtime/WorldTime.cpp | 19 | ||||
-rw-r--r-- | worldtime/WorldTime.h | 2 | ||||
-rw-r--r-- | worldtime/common.h | 5 | ||||
-rw-r--r-- | worldtime_protocol/common.h | 4 | ||||
-rw-r--r-- | worldtime_protocol/worldtimeproto.cpp | 16 | ||||
-rw-r--r-- | worldtime_protocol/worldtimeproto.h | 2 |
6 files changed, 36 insertions, 12 deletions
diff --git a/worldtime/WorldTime.cpp b/worldtime/WorldTime.cpp index 63bc7b7..e327261 100644 --- a/worldtime/WorldTime.cpp +++ b/worldtime/WorldTime.cpp @@ -4,17 +4,18 @@ HINSTANCE hInst;
PLUGINLINK *pluginLink;
-PLUGININFO pluginInfo={
- sizeof(PLUGININFO),
+PLUGININFOEX pluginInfo={
+ sizeof(PLUGININFOEX),
"World Time",
- PLUGIN_MAKE_VERSION(0, 2, 6, 7),
+ PLUGIN_MAKE_VERSION(0, 3, 0, 0),
"Display world times.",
"Scott Ellis",
"mail@scottellis.com.au",
"© 2004 Scott Ellis",
"http://scottellis.com.au/",
0, //not transient
- 0 //doesn't replace anything built-in
+ 0, //doesn't replace anything built-in
+ { 0x6e8c83d3, 0x418e, 0x4cec, { 0xb3, 0x4e, 0xed, 0x61, 0x3f, 0x51, 0xae, 0x58 } } // {6E8C83D3-418E-4cec-B34E-ED613F51AE58}
};
int winver = 0;
@@ -40,11 +41,19 @@ extern "C" BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvRese return TRUE;
}
-extern "C" WORLDTIME_API PLUGININFO* MirandaPluginInfo(DWORD mirandaVersion)
+extern "C" WORLDTIME_API PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
{
return &pluginInfo;
}
+static const MUUID interfaces[] = {MIID_WORLDTIME, MIID_LAST};
+extern "C" __declspec(dllexport) const MUUID* MirandaPluginInterfaces(void)
+{
+ return interfaces;
+}
+
+
+
void CreatePluginServices() {
}
diff --git a/worldtime/WorldTime.h b/worldtime/WorldTime.h index 5300f73..b0205b5 100644 --- a/worldtime/WorldTime.h +++ b/worldtime/WorldTime.h @@ -35,7 +35,7 @@ extern HINSTANCE hInst;
extern PLUGINLINK *pluginLink;
-extern PLUGININFO pluginInfo;
+extern PLUGININFOEX pluginInfo;
extern "C" WORLDTIME_API PLUGININFO* MirandaPluginInfo(DWORD mirandaVersion);
extern "C" WORLDTIME_API int Load(PLUGINLINK *link);
diff --git a/worldtime/common.h b/worldtime/common.h index 11d06b6..cb5a041 100644 --- a/worldtime/common.h +++ b/worldtime/common.h @@ -21,6 +21,11 @@ #include <shellapi.h>
#include <commctrl.h>
+
+#ifndef MIID_WORLDTIME
+#define MIID_WORLDTIME {0x5e436914, 0x3258, 0x4dfa, { 0x8a, 0xd9, 0xf2, 0xcd, 0x26, 0x43, 0x6f, 0x1}}
+#endif
+
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
diff --git a/worldtime_protocol/common.h b/worldtime_protocol/common.h index da1e9da..cde473e 100644 --- a/worldtime_protocol/common.h +++ b/worldtime_protocol/common.h @@ -35,4 +35,8 @@ extern HINSTANCE hInst;
+#ifndef MIID_WORLDTIME
+#define MIID_WORLDTIME {0x5e436914, 0x3258, 0x4dfa, { 0x8a, 0xd9, 0xf2, 0xcd, 0x26, 0x43, 0x6f, 0x1}}
+#endif
+
#endif
diff --git a/worldtime_protocol/worldtimeproto.cpp b/worldtime_protocol/worldtimeproto.cpp index 657c6ea..9feb943 100644 --- a/worldtime_protocol/worldtimeproto.cpp +++ b/worldtime_protocol/worldtimeproto.cpp @@ -109,17 +109,18 @@ int GetStatus(WPARAM wParam,LPARAM lParam) }
// plugin stuff
-PLUGININFO pluginInfo={
- sizeof(PLUGININFO),
+PLUGININFOEX pluginInfo={
+ sizeof(PLUGININFOEX),
"World Time Protocol",
- PLUGIN_MAKE_VERSION(0, 0, 6, 0),
+ PLUGIN_MAKE_VERSION(0, 1, 0, 0),
"Adds 'contacts' showing the time at specified locations around the world.",
"Scott Ellis",
"mail@scottellis.com.au",
"© 2005 Scott Ellis",
"http://www.scottellis.com.au/",
0, //not transient
- 0 //doesn't replace anything built-in
+ 0, //doesn't replace anything built-in
+ {0x2d27ffb5, 0x7117, 0x4445, { 0xa4, 0x23, 0x1d, 0xeb, 0x5a, 0xb, 0x29, 0xf2}} // {2D27FFB5-7117-4445-A423-1DEB5A0B29F2}
};
BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved)
@@ -128,11 +129,16 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved) return TRUE;
}
-extern "C" WORLDTIMEPROTO_API PLUGININFO* MirandaPluginInfo(DWORD mirandaVersion)
+extern "C" WORLDTIMEPROTO_API PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
{
return &pluginInfo;
}
+static const MUUID interfaces[] = {MIID_PROTOCOL, MIID_WORLDTIME, MIID_LAST};
+extern "C" __declspec(dllexport) const MUUID* MirandaPluginInterfaces(void)
+{
+ return interfaces;
+}
int ContactDblClick(WPARAM wParam, LPARAM lParam) {
char *proto = (char *)CallService(MS_PROTO_GETCONTACTBASEPROTO, wParam, 0);
diff --git a/worldtime_protocol/worldtimeproto.h b/worldtime_protocol/worldtimeproto.h index 4e80710..61a4036 100644 --- a/worldtime_protocol/worldtimeproto.h +++ b/worldtime_protocol/worldtimeproto.h @@ -33,7 +33,7 @@ http://miranda-icq.sourceforge.net/ // globals
extern PLUGINLINK *pluginLink;
-extern PLUGININFO pluginInfo;
+extern PLUGININFOEX pluginInfo;
extern "C" WORLDTIMEPROTO_API PLUGININFO* MirandaPluginInfo(DWORD mirandaVersion);
extern "C" WORLDTIMEPROTO_API int Load(PLUGINLINK *link);
|