diff options
author | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2007-03-19 11:57:07 +0000 |
---|---|---|
committer | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2007-03-19 11:57:07 +0000 |
commit | 78d9c5def7d5bac3e395e68ed68ae5c720381e89 (patch) | |
tree | fe7dd183e11787b23a7bed5b61738e839e7157c2 | |
parent | cc04e0a66468b3d34f7b1cc7c9bec35d921e6c86 (diff) |
added GUIDs
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@135 4f64403b-2f21-0410-a795-97e2b3489a10
-rw-r--r-- | shhhonidle/common.h | 4 | ||||
-rw-r--r-- | shhhonidle/shhhonidle.c | 18 |
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;
|