kernelbase: Do not forcefully reset console_flags to 0.
[wine/zf.git] / include / cmnquery.idl
blob2b89f843a7efe13b59742c3741f44cc3f86c1910
1 /*
2 * Copyright 2017 Zebediah Figura for CodeWeavers
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 import "oaidl.idl";
21 #ifndef __WIDL__
22 #define threading(model)
23 #define progid(str)
24 #define vi_progid(str)
25 #endif
28 object,
29 uuid(1a3114b8-a62e-11d0-a6c5-00a0c906af45),
30 local
32 interface IPersistQuery : IPersist
34 HRESULT WriteString([in] LPCWSTR section, [in] LPCWSTR name, [in] LPCWSTR value);
36 HRESULT ReadString([in] LPCWSTR section, [in] LPCWSTR name, [out, size_is(buflen)] LPWSTR buffer, [in] INT buflen);
38 HRESULT WriteInt([in] LPCWSTR section, [in] LPCWSTR name, [in] INT value);
40 HRESULT ReadInt([in] LPCWSTR section, [in] LPCWSTR name, [out] INT *value);
42 HRESULT WriteStruct([in] LPCWSTR section, [in] LPCWSTR name, [in] LPVOID value, [in] DWORD size);
44 HRESULT ReadStruct([in] LPCWSTR section, [in] LPCWSTR name, [out, size_is(buflen)] LPVOID buffer, [in] DWORD buflen);
46 HRESULT Clear();
49 cpp_quote("#define OQWF_OKCANCEL 0x00000001")
50 cpp_quote("#define OQWF_DEFAULTFORM 0x00000002")
51 cpp_quote("#define OQWF_SINGLESELECT 0x00000004")
52 cpp_quote("#define OQWF_LOADQUERY 0x00000008")
53 cpp_quote("#define OQWF_REMOVESCOPES 0x00000010")
54 cpp_quote("#define OQWF_REMOVEFORMS 0x00000020")
55 cpp_quote("#define OQWF_ISSUEONOPEN 0x00000040")
56 cpp_quote("#define OQWF_SHOWOPTIONAL 0x00000080")
57 cpp_quote("#define OQWF_SAVEQUERYONOK 0x00000200")
58 cpp_quote("#define OQWF_HIDEMENUS 0x00000400")
59 cpp_quote("#define OQWF_HIDESEARCHUI 0x00000800")
60 cpp_quote("#define OQWF_PARAMISPROPERTYBAG 0x80000000")
62 typedef struct {
63 DWORD cbStruct;
64 DWORD dwFlags;
65 CLSID clsidHandler;
66 LPVOID pHandlerParameters;
67 CLSID clsidDefaultForm;
68 IPersistQuery *pPersistQuery;
69 union {
70 void *pFormParameters;
71 IPropertyBag *ppbFormParameters;
73 } OPENQUERYWINDOW, *LPOPENQUERYWINDOW;
76 object,
77 uuid(ab50dec0-6f1d-11d0-a1c4-00aa00c16e65),
78 local
80 interface ICommonQuery : IUnknown
82 HRESULT OpenQueryWindow([in] HWND parent, [in] LPOPENQUERYWINDOW query_window, [out] IDataObject **data_object);
86 threading(apartment),
87 uuid(83bc5ec0-6f2a-11d0-a1c4-00aa00c16e65)
89 coclass CommonQuery { interface ICommonQuery; }