summaryrefslogtreecommitdiff
path: root/last_contact/LastContact.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'last_contact/LastContact.cpp')
-rw-r--r--last_contact/LastContact.cpp18
1 files changed, 13 insertions, 5 deletions
diff --git a/last_contact/LastContact.cpp b/last_contact/LastContact.cpp
index 6bb0fb2..6cf9e09 100644
--- a/last_contact/LastContact.cpp
+++ b/last_contact/LastContact.cpp
@@ -49,17 +49,18 @@ void stack_update(MessageWindowEventData *data) {
windowDataStack[stackTop] = *data;
}
-PLUGININFO pluginInfo={
- sizeof(PLUGININFO),
+PLUGININFOEX pluginInfo={
+ sizeof(PLUGININFOEX),
MODULE,
- PLUGIN_MAKE_VERSION(0,0,0,5),
+ PLUGIN_MAKE_VERSION(0,0,1,0),
"Re-open the last open message window using a configurable hot key.",
"Scott Ellis",
"mail@scottellis.com.au",
"© 2006 Scott Ellis",
"http://scottellis.com.au",
0, //not transient
- 0 //doesn't replace anything built-in
+ 0, //doesn't replace anything built-in
+ { 0x199db5f3, 0x888d, 0x42df, { 0x96, 0x5, 0xc1, 0x79, 0xd, 0x7b, 0xba, 0xbd } } // {199DB5F3-888D-42df-9605-C1790D7BBABD}
};
extern "C" BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved)
@@ -68,11 +69,18 @@ extern "C" BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvRese
return TRUE;
}
-extern "C" __declspec(dllexport) PLUGININFO* MirandaPluginInfo(DWORD mirandaVersion)
+extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
{
return &pluginInfo;
}
+static const MUUID interfaces[] = {MIID_LASTCONTACT, MIID_LAST};
+extern "C" __declspec(dllexport) const MUUID* MirandaPluginInterfaces(void)
+{
+ return interfaces;
+}
+
+
int WindowEvent(WPARAM wParam, LPARAM lParam) {
MessageWindowEventData *wd = (MessageWindowEventData *)lParam;