Zebediah Figura : include: Add initial IDL for cmnquery.h.
Alexandre Julliard
julliard at winehq.org
Wed Aug 2 15:32:00 CDT 2017
Module: wine
Branch: master
Commit: bc89730e51b713a3bf5bbcda3c30268818cba34a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=bc89730e51b713a3bf5bbcda3c30268818cba34a
Author: Zebediah Figura <zfigura at codeweavers.com>
Date: Tue Aug 1 10:03:36 2017 -0500
include: Add initial IDL for cmnquery.h.
Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
include/Makefile.in | 1 +
include/cmnquery.idl | 79 ++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 80 insertions(+)
diff --git a/include/Makefile.in b/include/Makefile.in
index 063c4ec..81c646e 100644
--- a/include/Makefile.in
+++ b/include/Makefile.in
@@ -24,6 +24,7 @@ IDL_SRCS = \
chprst.idl \
cmdbas.idl \
cmdtxt.idl \
+ cmnquery.idl \
colinf.idl \
comcat.idl \
commoncontrols.idl \
diff --git a/include/cmnquery.idl b/include/cmnquery.idl
new file mode 100644
index 0000000..f9d2991
--- /dev/null
+++ b/include/cmnquery.idl
@@ -0,0 +1,79 @@
+/*
+ * 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
+ */
+
+import "oaidl.idl";
+
+[
+ object,
+ uuid(1a3114b8-a62e-11d0-a6c5-00a0c906af45),
+ local
+]
+interface IPersistQuery : IPersist
+{
+ HRESULT WriteString([in] LPCWSTR section, [in] LPCWSTR name, [in] LPCWSTR value);
+
+ HRESULT ReadString([in] LPCWSTR section, [in] LPCWSTR name, [out, size_is(buflen)] LPWSTR buffer, [in] INT buflen);
+
+ HRESULT WriteInt([in] LPCWSTR section, [in] LPCWSTR name, [in] INT value);
+
+ HRESULT ReadInt([in] LPCWSTR section, [in] LPCWSTR name, [out] INT *value);
+
+ HRESULT WriteStruct([in] LPCWSTR section, [in] LPCWSTR name, [in] LPVOID value, [in] DWORD size);
+
+ HRESULT ReadStruct([in] LPCWSTR section, [in] LPCWSTR name, [out, size_is(buflen)] LPVOID buffer, [in] DWORD buflen);
+
+ HRESULT Clear();
+}
+
+cpp_quote("#define OQWF_OKCANCEL 0x00000001")
+cpp_quote("#define OQWF_DEFAULTFORM 0x00000002")
+cpp_quote("#define OQWF_SINGLESELECT 0x00000004")
+cpp_quote("#define OQWF_LOADQUERY 0x00000008")
+cpp_quote("#define OQWF_REMOVESCOPES 0x00000010")
+cpp_quote("#define OQWF_REMOVEFORMS 0x00000020")
+cpp_quote("#define OQWF_ISSUEONOPEN 0x00000040")
+cpp_quote("#define OQWF_SHOWOPTIONAL 0x00000080")
+cpp_quote("#define OQWF_SAVEQUERYONOK 0x00000200")
+cpp_quote("#define OQWF_HIDEMENUS 0x00000400")
+cpp_quote("#define OQWF_HIDESEARCHUI 0x00000800")
+cpp_quote("#define OQWF_PARAMISPROPERTYBAG 0x80000000")
+
+typedef struct {
+ DWORD cbStruct;
+ DWORD dwFlags;
+ CLSID clsidHandler;
+ LPVOID pHandlerParameters;
+ CLSID clsidDefaultForm;
+ IPersistQuery *pPersistQuery;
+ union {
+ void *pFormParameters;
+ IPropertyBag *ppbFormParameters;
+ };
+} OPENQUERYWINDOW, *LPOPENQUERYWINDOW;
+
+[
+ object,
+ uuid(ab50dec0-6f1d-11d0-a1c4-00aa00c16e65),
+ local
+]
+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);")
More information about the wine-cvs
mailing list