diff options
author | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2007-03-19 00:33:39 +0000 |
---|---|---|
committer | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2007-03-19 00:33:39 +0000 |
commit | a788cc5902dda036c81b6e0ee25b742cf62d3a1b (patch) | |
tree | b88e8bd1557133ab8f9c0c87f468e28d1aa60808 /yapp/popups2.cpp | |
parent | 7083e5ea0d86de180a3233c0ce5ec17011fe3598 (diff) |
implemented new GUID/interface API
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@127 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'yapp/popups2.cpp')
-rw-r--r-- | yapp/popups2.cpp | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/yapp/popups2.cpp b/yapp/popups2.cpp index aebb041..b31c503 100644 --- a/yapp/popups2.cpp +++ b/yapp/popups2.cpp @@ -32,13 +32,9 @@ COLORREF colFirstLine = RGB(255, 0, 0), colSecondLine = 0, colTime = RGB(0, 0, 2 // hooked here so it's in the main thread
HANDLE hAvChangeEvent = 0;
-PLUGININFO pluginInfo={
+PLUGININFOEX pluginInfo={
sizeof(PLUGININFO),
-#ifndef _UNICODE
- __PLUGIN_NAME " (ANSI)",
-#else
__PLUGIN_NAME,
-#endif
PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM),
__DESC,
__AUTHOR,
@@ -46,7 +42,13 @@ PLUGININFO pluginInfo={ __COPYRIGHT,
__AUTHORWEB,
UNICODE_AWARE, //not transient
- 0 //doesn't replace anything built-in
+ 0, //doesn't replace anything built-in
+
+#ifndef _UNICODE
+ { 0xefd15f16, 0x7ae4, 0x40d7, { 0xa8, 0xe3, 0xa4, 0x11, 0xed, 0x74, 0x7b, 0xd5 } } // {EFD15F16-7AE4-40d7-A8E3-A411ED747BD5}
+#else
+ { 0x563780ef, 0xac7e, 0x40ba, { 0xa8, 0xa, 0xd, 0xcd, 0x4f, 0xd2, 0xf, 0x9 } } // {563780EF-AC7E-40ba-A80A-0DCD4FD20F09}
+#endif
};
PLUGINLINK *pluginLink = 0;
@@ -58,11 +60,18 @@ extern "C" BOOL APIENTRY DllMain( HMODULE hModule, DWORD ul_reason_for_call, LP return TRUE;
}
-extern "C" POPUPS2_API PLUGININFO* MirandaPluginInfo(DWORD mirandaVersion)
+extern "C" POPUPS2_API PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
{
return &pluginInfo;
}
+static const MUUID interfaces[] = {MIID_POPUPS, MIID_LAST};
+__declspec(dllexport) const MUUID* MirandaPluginInterfaces(void)
+{
+ return interfaces;
+}
+
+
int ReloadFont(WPARAM wParam, LPARAM lParam) {
if(ServiceExists(MS_FONT_GETW)) {
|