summaryrefslogtreecommitdiff
path: root/ping
diff options
context:
space:
mode:
Diffstat (limited to 'ping')
-rw-r--r--ping/common.h4
-rw-r--r--ping/ping.cpp19
-rw-r--r--ping/ping.h2
3 files changed, 19 insertions, 6 deletions
diff --git a/ping/common.h b/ping/common.h
index b43eca2..aebbfc0 100644
--- a/ping/common.h
+++ b/ping/common.h
@@ -121,4 +121,8 @@ extern HINSTANCE hInst;
extern bool use_raw_ping;
+#ifndef MIID_PING
+#define MIID_PING {0x9cd1684e, 0xc520, 0x4b58, { 0x9a, 0x52, 0xae, 0x3d, 0x7a, 0x72, 0x4, 0x46}}
+#endif
+
#endif
diff --git a/ping/ping.cpp b/ping/ping.cpp
index c1cbfb5..90ebf36 100644
--- a/ping/ping.cpp
+++ b/ping/ping.cpp
@@ -10,17 +10,18 @@ HANDLE hFillListEvent = 0;
bool use_raw_ping = true;
// plugin stuff
-PLUGININFO pluginInfo={
- sizeof(PLUGININFO),
+PLUGININFOEX pluginInfo={
+ sizeof(PLUGININFOEX),
"Ping Plugin",
- PLUGIN_MAKE_VERSION(0, 7, 0, 1),
+ PLUGIN_MAKE_VERSION(0, 8, 0, 0),
"Ping labelled IP addresses or domain names.",
"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
+ { 0x760ea901, 0xc0c2, 0x446c, { 0x80, 0x29, 0x94, 0xc3, 0xbc, 0x47, 0xc4, 0x5e } } // {760EA901-C0C2-446c-8029-94C3BC47C45E}
};
extern "C" BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved)
@@ -29,11 +30,19 @@ extern "C" BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvRese
return TRUE;
}
-extern "C" PING_API PLUGININFO* MirandaPluginInfo(DWORD mirandaVersion)
+extern "C" PING_API PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
{
return &pluginInfo;
}
+static const MUUID interfaces[] = {MIID_PING, MIID_LAST};
+extern "C" __declspec(dllexport) const MUUID* MirandaPluginInterfaces(void)
+{
+ return interfaces;
+}
+
+
+
void CreatePluginServices() {
// general
CreateServiceFunction(PLUG "/Ping", PluginPing);
diff --git a/ping/ping.h b/ping/ping.h
index f38ecca..b309c41 100644
--- a/ping/ping.h
+++ b/ping/ping.h
@@ -33,7 +33,7 @@ http://miranda-icq.sourceforge.net/
// globals
extern PLUGINLINK *pluginLink;
-extern PLUGININFO pluginInfo;
+extern PLUGININFOEX pluginInfo;
extern "C" PING_API PLUGININFO* MirandaPluginInfo(DWORD mirandaVersion);
extern "C" PING_API int Load(PLUGINLINK *link);