diff options
author | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2007-03-19 12:07:43 +0000 |
---|---|---|
committer | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2007-03-19 12:07:43 +0000 |
commit | 49cf9ad2b036f74e1c860825f5c1f7852581c312 (patch) | |
tree | 461d664f148e17212e13002987ca029ff739e1e4 /worldtime_protocol | |
parent | 78d9c5def7d5bac3e395e68ed68ae5c720381e89 (diff) |
added GUIDs
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@136 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'worldtime_protocol')
-rw-r--r-- | worldtime_protocol/common.h | 4 | ||||
-rw-r--r-- | worldtime_protocol/worldtimeproto.cpp | 16 | ||||
-rw-r--r-- | worldtime_protocol/worldtimeproto.h | 2 |
3 files changed, 16 insertions, 6 deletions
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);
|