mlang: Give the CLSIDs their proper names.

Francois Gouget fgouget at free.fr
Wed Aug 9 12:02:01 CDT 2006


Move CLSID_CMultiLanguage and CLSID_CMLangConvertCharset to mlang.idl.
Leave CLSID_CMLangString in regsvr.c as MSDN claims it is not supported anymore.

---
 dlls/mlang/regsvr.c |   14 +++++++-------
 include/mlang.idl   |    9 +++++++++
 2 files changed, 16 insertions(+), 7 deletions(-)

diff --git a/dlls/mlang/regsvr.c b/dlls/mlang/regsvr.c
index ea83b1d..35a80a9 100644
--- a/dlls/mlang/regsvr.c
+++ b/dlls/mlang/regsvr.c
@@ -30,15 +30,15 @@ #include "winreg.h"
 #include "winerror.h"
 
 #include "objbase.h"
-#include "initguid.h"
+#include "mlang.h"
 
 #include "wine/debug.h"
+#include "initguid.h"
 
 WINE_DEFAULT_DEBUG_CHANNEL(mlang);
 
-DEFINE_GUID( CLSID_MLANGSupport, 0x275c23e2,0x3747,0x11d0,0x9f,0xea,0x00,0xaa,0x00,0x3f,0x86,0x46 );
-DEFINE_GUID( CLSID_MLANGString, 0xc04d65cf, 0xb70d, 0x11d0, 0xb1,0x88, 0x00,0xaa,0x00,0x38,0xc9,0x69);
-DEFINE_GUID( CLSID_MLANGCharSet, 0xd66d6f99,0xcdaa,0x11d0,0xb8,0x22,0x00,0xC0,0x4f,0xc9,0xb3,0x1f );
+/* This one should probably be defined in mlang.idl but MSDN claims it is no longer supported */
+DEFINE_GUID(CLSID_CMLangString, 0xc04d65cf, 0xb70d, 0x11d0, 0xb1,0x88, 0x00,0xaa,0x00,0x38,0xc9,0x69);
 
 /*
  * Near the bottom of this file are the exported DllRegisterServer and
@@ -509,21 +509,21 @@ static LONG recursive_delete_keyW(HKEY b
  */
 static struct regsvr_coclass const coclass_list[] = {
     {
-        &CLSID_MLANGSupport,
+        &CLSID_CMultiLanguage,
         "Multi Language Support",
         NULL,
         "mlang.dll",
         "Both"
     },
     {
-        &CLSID_MLANGString,
+        &CLSID_CMLangString,
         "Multi Language String",
         NULL,
         "mlang.dll",
         "Both"
     },
     {
-        &CLSID_MLANGCharSet,
+        &CLSID_CMLangConvertCharset,
         "Multi Language ConvertCharset",
         NULL,
         "mlang.dll",
diff --git a/include/mlang.idl b/include/mlang.idl
index 11bfa2e..0aaea87 100644
--- a/include/mlang.idl
+++ b/include/mlang.idl
@@ -235,6 +235,7 @@ interface IEnumCodePage : IUnknown
 
 [
   object,
+  uuid(d66d6f98-cdaa-11d0-b822-00c04fc9b31f),
   pointer_default(unique)
 ]
 interface IMLangConvertCharset : IUnknown
@@ -273,6 +274,14 @@ interface IMLangConvertCharset : IUnknow
 }
 
 [
+    uuid(d66d6f99-cdaa-11d0-b822-00c04fc9b31f)
+]
+coclass CMLangConvertCharset
+{
+    [default] interface IMLangConvertCharset;
+};
+
+[
   object,
   uuid(3dc39d1d-c030-11d0-b81b-00c04fc9b31f),
   pointer_default(unique)
-- 
1.4.1




More information about the wine-patches mailing list