3 * @copy 2012 MinGW.org project
5 * Permission is hereby granted, free of charge, to any person obtaining a
6 * copy of this software and associated documentation files (the "Software"),
7 * to deal in the Software without restriction, including without limitation
8 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9 * and/or sell copies of the Software, and to permit persons to whom the
10 * Software is furnished to do so, subject to the following conditions:
12 * The above copyright notice and this permission notice (including the next
13 * paragraph) shall be included in all copies or substantial portions of the
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22 * DEALINGS IN THE SOFTWARE.
26 #pragma GCC system_header
33 typedef enum tagAUTOCOMPLETEOPTIONS {
35 ACO_AUTOSUGGEST = 0x01,
36 ACO_AUTOAPPEND = 0x02,
38 ACO_FILTERPREFIXES = 0x08,
40 ACO_UPDOWNKEYDROPSLIST = 0x20,
41 ACO_RTLREADING = 0x40,
42 #if (_WIN32_WINNT >= _WIN32_WINNT_VISTA)
43 ACO_WORD_FILTER = 0x80,
44 ACO_NOPREFIXFILTERING = 0x100
46 } AUTOCOMPLETEOPTIONS;
48 #define INTERFACE IAutoComplete
49 DECLARE_INTERFACE_(IAutoComplete, IUnknown)
51 STDMETHOD(QueryInterface)(THIS_ REFIID,PVOID*) PURE;
52 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
53 STDMETHOD_(ULONG,Release)(THIS) PURE;
54 STDMETHOD(Init)(THIS_ HWND,IUnknown*,LPCOLESTR,LPCOLESTR) PURE;
55 STDMETHOD(Enable)(THIS_ BOOL) PURE;
58 typedef IAutoComplete *LPAUTOCOMPLETE;
61 #define IAutoComplete_QueryInterface(T,a,b) (T)->lpVtbl->QueryInterface(T,a,b)
62 #define IAutoComplete_AddRef(T) (T)->lpVtbl->AddRef(T)
63 #define IAutoComplete_Release(T) (T)->lpVtbl->Release(T)
64 #define IAutoComplete_Init(T,a,b,c,d) (T)->lpVtbl->Init(T,a,b,c,d)
65 #define IAutoComplete_Enable(T,a) (T)->lpVtbl->Enable(T,a)
68 #define INTERFACE IAutoComplete2
69 DECLARE_INTERFACE_(IAutoComplete2, IAutoComplete)
71 STDMETHOD(QueryInterface)(THIS_ REFIID,PVOID*) PURE;
72 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
73 STDMETHOD_(ULONG,Release)(THIS) PURE;
74 STDMETHOD(Init)(THIS_ HWND,IUnknown*,LPCOLESTR,LPCOLESTR) PURE;
75 STDMETHOD(Enable)(THIS_ BOOL) PURE;
76 STDMETHOD(SetOptions)(THIS_ DWORD) PURE;
77 STDMETHOD(GetOptions)(THIS_ DWORD*) PURE;
80 typedef IAutoComplete2 *LPAUTOCOMPLETE2;
83 #define IAutoComplete2_QueryInterface(T,a,b) (T)->lpVtbl->QueryInterface(T,a,b)
84 #define IAutoComplete2_AddRef(T) (T)->lpVtbl->AddRef(T)
85 #define IAutoComplete2_Release(T) (T)->lpVtbl->Release(T)
86 #define IAutoComplete2_Init(T,a,b,c,d) (T)->lpVtbl->Init(T,a,b,c,d)
87 #define IAutoComplete2_Enable(T,a) (T)->lpVtbl->Enable(T,a)
88 #define IAutoComplete2_SetOptions(T,a) (T)->lpVtbl->Enable(T,a)
89 #define IAutoComplete2_GetOptions(T,a) (T)->lpVtbl->Enable(T,a)
96 #endif /* _SHLDISP_H */