OSDN Git Service

Redo the filters based on assumptions discussed in mingw-dvlpr list.
[mingw/mingw-org-wsl.git] / include / shldisp.h
1 /**
2  * @file shldisp.h
3  * @copy 2012 MinGW.org project
4  *
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:
11  * 
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
14  * Software.
15  * 
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.
23  */
24 #ifndef _SHLDISP_H
25 #define _SHLDISP_H
26 #pragma GCC system_header
27 #include <_mingw.h>
28
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32
33 typedef enum tagAUTOCOMPLETEOPTIONS {
34     ACO_NONE = 0x00,
35     ACO_AUTOSUGGEST = 0x01,
36     ACO_AUTOAPPEND = 0x02,
37     ACO_SEARCH = 0x04,
38     ACO_FILTERPREFIXES = 0x08,
39     ACO_USETAB = 0x10,
40     ACO_UPDOWNKEYDROPSLIST = 0x20,
41     ACO_RTLREADING = 0x40,
42 #if (_WIN32_WINNT >= _WIN32_WINNT_VISTA)
43     ACO_WORD_FILTER = 0x80,
44     ACO_NOPREFIXFILTERING = 0x100
45 #endif
46 } AUTOCOMPLETEOPTIONS;
47
48 #define INTERFACE IAutoComplete
49 DECLARE_INTERFACE_(IAutoComplete, IUnknown)
50 {
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;
56 };
57 #undef INTERFACE
58 typedef IAutoComplete *LPAUTOCOMPLETE;
59
60 #ifdef COBJMACROS
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)
66 #endif
67
68 #define INTERFACE IAutoComplete2
69 DECLARE_INTERFACE_(IAutoComplete2, IAutoComplete)
70 {
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;
78 };
79 #undef INTERFACE
80 typedef IAutoComplete2 *LPAUTOCOMPLETE2;
81
82 #ifdef COBJMACROS
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)
90 #endif
91
92 #ifdef __cplusplus
93 }
94 #endif
95
96 #endif /* _SHLDISP_H */