[PATCH v2] dsquery: Register CommonQuery coclass.

Zebediah Figura zfigura at codeweavers.com
Fri Sep 15 11:41:39 CDT 2017


v2: specify the coclass in the header
Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
---
 dlls/dsquery/Makefile.in |  3 +++
 dlls/dsquery/dsquery.idl | 23 +++++++++++++++++++++++
 include/cmnquery.idl     |  6 +++++-
 3 files changed, 31 insertions(+), 1 deletion(-)
 create mode 100644 dlls/dsquery/dsquery.idl

diff --git a/dlls/dsquery/Makefile.in b/dlls/dsquery/Makefile.in
index 8fbe92dfc8..611e601157 100644
--- a/dlls/dsquery/Makefile.in
+++ b/dlls/dsquery/Makefile.in
@@ -3,3 +3,6 @@ IMPORTS = uuid
 
 C_SRCS = \
 	main.c
+
+IDL_SRCS = \
+	dsquery.idl
diff --git a/dlls/dsquery/dsquery.idl b/dlls/dsquery/dsquery.idl
new file mode 100644
index 0000000000..22300edf06
--- /dev/null
+++ b/dlls/dsquery/dsquery.idl
@@ -0,0 +1,23 @@
+/*
+ * COM Classes for dsquery
+ *
+ * Copyright 2017 Zebediah Figura for CodeWeavers
+ *
+ * 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
+ */
+
+#pragma makedep register
+
+#include "cmnquery.idl"
diff --git a/include/cmnquery.idl b/include/cmnquery.idl
index f9d2991adc..5c2d73651a 100644
--- a/include/cmnquery.idl
+++ b/include/cmnquery.idl
@@ -76,4 +76,8 @@ interface ICommonQuery : IUnknown
     HRESULT OpenQueryWindow([in] HWND parent, [in] LPOPENQUERYWINDOW query_window, [out] IDataObject **data_object);
 }
 
-cpp_quote("DEFINE_GUID(CLSID_CommonQuery, 0x83bc5ec0, 0x6f2a, 0x11d0, 0xa1,0xc4, 0x00,0xaa,0x00,0xc1,0x6e,0x65);")
+[
+    threading(apartment),
+    uuid(83bc5ec0-6f2a-11d0-a1c4-00aa00c16e65)
+]
+coclass CommonQuery { interface ICommonQuery; }
-- 
2.14.1




More information about the wine-patches mailing list