[PATCH 6/7] sapi: Register the classes from sapiddk.idl that would otherwise not get registered.

Huw Davies huw at codeweavers.com
Wed Sep 27 04:17:17 CDT 2017


Signed-off-by: Huw Davies <huw at codeweavers.com>
---
 dlls/sapi/Makefile.in      |  1 +
 dlls/sapi/sapi_classes.idl | 52 ++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 53 insertions(+)
 create mode 100644 dlls/sapi/sapi_classes.idl

diff --git a/dlls/sapi/Makefile.in b/dlls/sapi/Makefile.in
index e4a0746..99a0143 100644
--- a/dlls/sapi/Makefile.in
+++ b/dlls/sapi/Makefile.in
@@ -5,4 +5,5 @@ C_SRCS = \
 	main.c
 
 IDL_SRCS = \
+	sapi_classes.idl \
 	sapi_typelib.idl
diff --git a/dlls/sapi/sapi_classes.idl b/dlls/sapi/sapi_classes.idl
new file mode 100644
index 0000000..40886f5
--- /dev/null
+++ b/dlls/sapi/sapi_classes.idl
@@ -0,0 +1,52 @@
+/*
+ * Speech API (SAPI) classes.
+ *
+ * Copyright (C) 2017 Huw Davies
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+/*
+ * These are the classes from the typelib in sapiddk.idl.  They don't get
+ * registered because the typelib is not registered.
+ */
+
+#pragma makedep register
+
+[
+    uuid(d9f6ee60-58c9-458b-88e1-2f908fd7f87c),
+    helpstring("Data Key"),
+    progid("SAPI.SpDataKey.1"),
+    vi_progid("SAPI.SpDataKey"),
+    threading(both)
+]
+coclass SpDataKey
+{
+    interface ISpRegDataKey;
+    [default] interface ISpDataKey;
+}
+
+[
+    uuid(3918d75f-0acb-41f2-b733-92aa15bcecf6),
+    helpstring("Object Token Enumerator"),
+    progid("SAPI.SpObjectTokenEnum.1"),
+    vi_progid("SAPI.SpObjectTokenEnum"),
+    threading(both)
+]
+coclass SpObjectTokenEnum
+{
+    interface ISpObjectTokenEnumBuilder;
+    [default] interface IEnumSpObjectTokens;
+}
-- 
2.7.4




More information about the wine-patches mailing list