source: Daodan/MSYS2/mingw32/i686-w64-mingw32/include/cmnquery.h@ 1194

Last change on this file since 1194 was 1166, checked in by rossy, 3 years ago

Daodan: Replace MinGW build env with an up-to-date MSYS2 env

File size: 4.1 KB
RevLine 
[1166]1/**
2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the mingw-w64 runtime package.
4 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
5 */
6#ifndef __cmnquery_h
7#define __cmnquery_h
8
9DEFINE_GUID(IID_IQueryForm,0x8cfcee30,0x39bd,0x11d0,0xb8,0xd1,0x0,0xa0,0x24,0xab,0x2d,0xbb);
10DEFINE_GUID(IID_IPersistQuery,0x1a3114b8,0xa62e,0x11d0,0xa6,0xc5,0x0,0xa0,0xc9,0x06,0xaf,0x45);
11DEFINE_GUID(CLSID_CommonQuery,0x83bc5ec0,0x6f2a,0x11d0,0xa1,0xc4,0x0,0xaa,0x00,0xc1,0x6e,0x65);
12DEFINE_GUID(IID_ICommonQuery,0xab50dec0,0x6f1d,0x11d0,0xa1,0xc4,0x0,0xaa,0x00,0xc1,0x6e,0x65);
13
14#ifndef GUID_DEFS_ONLY
15#define QUERYFORM_CHANGESFORMLIST 0x000000001
16#define QUERYFORM_CHANGESOPTFORMLIST 0x000000002
17
18#define CQFF_NOGLOBALPAGES 0x0000001
19#define CQFF_ISOPTIONAL 0x0000002
20
21typedef struct {
22 DWORD cbStruct;
23 DWORD dwFlags;
24 CLSID clsid;
25 HICON hIcon;
26 LPCWSTR pszTitle;
27} CQFORM,*LPCQFORM;
28
29typedef HRESULT (CALLBACK *LPCQADDFORMSPROC)(LPARAM lParam,LPCQFORM pForm);
30
31struct _cqpage;
32typedef struct _cqpage CQPAGE,*LPCQPAGE;
33typedef HRESULT (CALLBACK *LPCQADDPAGESPROC)(LPARAM lParam,REFCLSID clsidForm,LPCQPAGE pPage);
34typedef HRESULT (CALLBACK *LPCQPAGEPROC)(LPCQPAGE pPage,HWND hwnd,UINT uMsg,WPARAM wParam,LPARAM lParam);
35
36struct _cqpage {
37 DWORD cbStruct;
38 DWORD dwFlags;
39 LPCQPAGEPROC pPageProc;
40 HINSTANCE hInstance;
41 INT idPageName;
42 INT idPageTemplate;
43 DLGPROC pDlgProc;
44 LPARAM lParam;
45};
46
47#undef INTERFACE
48#define INTERFACE IQueryForm
49DECLARE_INTERFACE_(IQueryForm,IUnknown) {
50 STDMETHOD(QueryInterface)(THIS_ REFIID riid,LPVOID *ppvObj) PURE;
51 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
52 STDMETHOD_(ULONG,Release)(THIS) PURE;
53 STDMETHOD(Initialize)(THIS_ HKEY hkForm) PURE;
54 STDMETHOD(AddForms)(THIS_ LPCQADDFORMSPROC pAddFormsProc,LPARAM lParam) PURE;
55 STDMETHOD(AddPages)(THIS_ LPCQADDPAGESPROC pAddPagesProc,LPARAM lParam) PURE;
56};
57
58#define CQPM_INITIALIZE 0x00000001
59#define CQPM_RELEASE 0x00000002
60#define CQPM_ENABLE 0x00000003
61#define CQPM_GETPARAMETERS 0x00000005
62#define CQPM_CLEARFORM 0x00000006
63#define CQPM_PERSIST 0x00000007
64#define CQPM_HELP 0x00000008
65#define CQPM_SETDEFAULTPARAMETERS 0x00000009
66
67#define CQPM_HANDLERSPECIFIC 0x10000000
68
69#undef INTERFACE
70#define INTERFACE IPersistQuery
71DECLARE_INTERFACE_(IPersistQuery,IPersist) {
72 STDMETHOD(QueryInterface)(THIS_ REFIID riid,LPVOID *ppvObj) PURE;
73 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
74 STDMETHOD_(ULONG,Release)(THIS) PURE;
75 STDMETHOD(GetClassID)(THIS_ CLSID *pClassID) PURE;
76 STDMETHOD(WriteString)(THIS_ LPCWSTR pSection,LPCWSTR pValueName,LPCWSTR pValue) PURE;
77 STDMETHOD(ReadString)(THIS_ LPCWSTR pSection,LPCWSTR pValueName,LPWSTR pBuffer,INT cchBuffer) PURE;
78 STDMETHOD(WriteInt)(THIS_ LPCWSTR pSection,LPCWSTR pValueName,INT value) PURE;
79 STDMETHOD(ReadInt)(THIS_ LPCWSTR pSection,LPCWSTR pValueName,LPINT pValue) PURE;
80 STDMETHOD(WriteStruct)(THIS_ LPCWSTR pSection,LPCWSTR pValueName,LPVOID pStruct,DWORD cbStruct) PURE;
81 STDMETHOD(ReadStruct)(THIS_ LPCWSTR pSection,LPCWSTR pValueName,LPVOID pStruct,DWORD cbStruct) PURE;
82 STDMETHOD(Clear)(THIS) PURE;
83};
84
85#define OQWF_OKCANCEL 0x00000001
86#define OQWF_DEFAULTFORM 0x00000002
87#define OQWF_SINGLESELECT 0x00000004
88#define OQWF_LOADQUERY 0x00000008
89#define OQWF_REMOVESCOPES 0x00000010
90#define OQWF_REMOVEFORMS 0x00000020
91#define OQWF_ISSUEONOPEN 0x00000040
92#define OQWF_SHOWOPTIONAL 0x00000080
93#define OQWF_SAVEQUERYONOK 0x00000200
94#define OQWF_HIDEMENUS 0x00000400
95#define OQWF_HIDESEARCHUI 0x00000800
96
97#define OQWF_PARAMISPROPERTYBAG 0x80000000
98
99typedef struct {
100 DWORD cbStruct;
101 DWORD dwFlags;
102 CLSID clsidHandler;
103 LPVOID pHandlerParameters;
104 CLSID clsidDefaultForm;
105 IPersistQuery *pPersistQuery;
106 __C89_NAMELESS union {
107 void *pFormParameters;
108 IPropertyBag *ppbFormParameters;
109 };
110} OPENQUERYWINDOW,*LPOPENQUERYWINDOW;
111
112#undef INTERFACE
113#define INTERFACE ICommonQuery
114DECLARE_INTERFACE_(ICommonQuery,IUnknown) {
115 STDMETHOD(QueryInterface)(THIS_ REFIID riid,LPVOID *ppvObj) PURE;
116 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
117 STDMETHOD_(ULONG,Release)(THIS) PURE;
118 STDMETHOD(OpenQueryWindow)(THIS_ HWND hwndParent,LPOPENQUERYWINDOW pQueryWnd,IDataObject **ppDataObject) PURE;
119};
120#endif
121#endif
Note: See TracBrowser for help on using the repository browser.