wined3d: Don't take the upload path for blits to formats requiring conversion.
[wine.git] / include / cmnquery.idl
blobf9d2991adc1a42deb5838fe8381d29de3eb6b99e
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";
22 object,
23 uuid(1a3114b8-a62e-11d0-a6c5-00a0c906af45),
24 local
26 interface IPersistQuery : IPersist
28 HRESULT WriteString([in] LPCWSTR section, [in] LPCWSTR name, [in] LPCWSTR value);
30 HRESULT ReadString([in] LPCWSTR section, [in] LPCWSTR name, [out, size_is(buflen)] LPWSTR buffer, [in] INT buflen);
32 HRESULT WriteInt([in] LPCWSTR section, [in] LPCWSTR name, [in] INT value);
34 HRESULT ReadInt([in] LPCWSTR section, [in] LPCWSTR name, [out] INT *value);
36 HRESULT WriteStruct([in] LPCWSTR section, [in] LPCWSTR name, [in] LPVOID value, [in] DWORD size);
38 HRESULT ReadStruct([in] LPCWSTR section, [in] LPCWSTR name, [out, size_is(buflen)] LPVOID buffer, [in] DWORD buflen);
40 HRESULT Clear();
43 cpp_quote("#define OQWF_OKCANCEL 0x00000001")
44 cpp_quote("#define OQWF_DEFAULTFORM 0x00000002")
45 cpp_quote("#define OQWF_SINGLESELECT 0x00000004")
46 cpp_quote("#define OQWF_LOADQUERY 0x00000008")
47 cpp_quote("#define OQWF_REMOVESCOPES 0x00000010")
48 cpp_quote("#define OQWF_REMOVEFORMS 0x00000020")
49 cpp_quote("#define OQWF_ISSUEONOPEN 0x00000040")
50 cpp_quote("#define OQWF_SHOWOPTIONAL 0x00000080")
51 cpp_quote("#define OQWF_SAVEQUERYONOK 0x00000200")
52 cpp_quote("#define OQWF_HIDEMENUS 0x00000400")
53 cpp_quote("#define OQWF_HIDESEARCHUI 0x00000800")
54 cpp_quote("#define OQWF_PARAMISPROPERTYBAG 0x80000000")
56 typedef struct {
57 DWORD cbStruct;
58 DWORD dwFlags;
59 CLSID clsidHandler;
60 LPVOID pHandlerParameters;
61 CLSID clsidDefaultForm;
62 IPersistQuery *pPersistQuery;
63 union {
64 void *pFormParameters;
65 IPropertyBag *ppbFormParameters;
67 } OPENQUERYWINDOW, *LPOPENQUERYWINDOW;
70 object,
71 uuid(ab50dec0-6f1d-11d0-a1c4-00aa00c16e65),
72 local
74 interface ICommonQuery : IUnknown
76 HRESULT OpenQueryWindow([in] HWND parent, [in] LPOPENQUERYWINDOW query_window, [out] IDataObject **data_object);
79 cpp_quote("DEFINE_GUID(CLSID_CommonQuery, 0x83bc5ec0, 0x6f2a, 0x11d0, 0xa1,0xc4, 0x00,0xaa,0x00,0xc1,0x6e,0x65);")