Commit bc89730e authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

include: Add initial IDL for cmnquery.h.

parent eb32d1a5
......@@ -24,6 +24,7 @@ IDL_SRCS = \
chprst.idl \
cmdbas.idl \
cmdtxt.idl \
cmnquery.idl \
colinf.idl \
comcat.idl \
commoncontrols.idl \
......
/*
* 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);")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment