summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shhhonidle/common.h4
-rw-r--r--shhhonidle/shhhonidle.c18
2 files changed, 17 insertions, 5 deletions
diff --git a/shhhonidle/common.h b/shhhonidle/common.h
index c74ec46..47e55bf 100644
--- a/shhhonidle/common.h
+++ b/shhhonidle/common.h
@@ -23,3 +23,7 @@
extern HINSTANCE hInst;
extern PLUGINLINK *pluginLink;
+
+#ifndef MIID_SHHHONIDLE
+#define MIID_SHHHONIDLE {0x778fc97f, 0x1d26, 0x427e, { 0x8a, 0x7, 0x10, 0x1a, 0xfb, 0x79, 0x6b, 0x46}}
+#endif \ No newline at end of file
diff --git a/shhhonidle/shhhonidle.c b/shhhonidle/shhhonidle.c
index b91acfc..90f6235 100644
--- a/shhhonidle/shhhonidle.c
+++ b/shhhonidle/shhhonidle.c
@@ -10,17 +10,18 @@
HINSTANCE hInst;
PLUGINLINK *pluginLink;
-PLUGININFO pluginInfo={
- sizeof(PLUGININFO),
+PLUGININFOEX pluginInfo={
+ sizeof(PLUGININFOEX),
"Shhh on Idle",
- PLUGIN_MAKE_VERSION(0,0,1,3),
+ PLUGIN_MAKE_VERSION(0,0,2,0),
"Disable sounds (and optionally PopUps) when Miranda goes idle",
"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
+ { 0xe36dca71, 0x7b2, 0x4b98, { 0x99, 0xab, 0xa1, 0x89, 0x2d, 0x8e, 0x5c, 0xfc } } // {E36DCA71-07B2-4b98-99AB-A1892D8E5CFC}
};
BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved)
@@ -29,11 +30,18 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved)
return TRUE;
}
-__declspec(dllexport) PLUGININFO* MirandaPluginInfo(DWORD mirandaVersion)
+__declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
{
return &pluginInfo;
}
+static const MUUID interfaces[] = {MIID_SHHHONIDLE, MIID_LAST};
+__declspec(dllexport) const MUUID* MirandaPluginInterfaces(void)
+{
+ return interfaces;
+}
+
+
HANDLE hook_idle = 0;
BOOL is_idle = FALSE;
UINT alarm_timer_id = 0;