diff options
author | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2007-03-19 00:33:29 +0000 |
---|---|---|
committer | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2007-03-19 00:33:29 +0000 |
commit | 7083e5ea0d86de180a3233c0ce5ec17011fe3598 (patch) | |
tree | fb4c5cb2a4927c2cb48a32deac8dcdbeb5270cdc /tipper/tipper.cpp | |
parent | e2926efe749018b24db79a51cdd2e71226768dee (diff) |
implemented new GUID/interface API
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@126 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'tipper/tipper.cpp')
-rw-r--r-- | tipper/tipper.cpp | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/tipper/tipper.cpp b/tipper/tipper.cpp index c8363a3..7ed27ec 100644 --- a/tipper/tipper.cpp +++ b/tipper/tipper.cpp @@ -28,13 +28,9 @@ HANDLE hShowTipService = 0, hShowTipWService = 0, hHideTipService = 0; struct MM_INTERFACE memoryManagerInterface = {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,
@@ -42,7 +38,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
+{ 0xedae7137, 0x1b6a, 0x4b8f, { 0xaa, 0xb0, 0x3b, 0x5a, 0x2f, 0x8, 0xf4, 0x62 } } // {EDAE7137-1B6A-4b8f-AAB0-3B5A2F08F462}
+#else
+{ 0x785c25e3, 0xc906, 0x434b, { 0x97, 0x23, 0xe2, 0x44, 0xe1, 0xbe, 0xca, 0x2 } } // {785C25E3-C906-434b-9723-E244E1BECA02}
+#endif
};
PLUGINLINK *pluginLink = 0;
@@ -54,11 +56,19 @@ extern "C" BOOL APIENTRY DllMain( HMODULE hModule, DWORD ul_reason_for_call, LP 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_TOOLTIPS, MIID_LAST};
+__declspec(dllexport) const MUUID* MirandaPluginInterfaces(void)
+{
+ return interfaces;
+}
+
+
+
int ReloadFont(WPARAM wParam, LPARAM lParam) {
if(ServiceExists(MS_FONT_GETW)) {
|