OSDN Git Service

ae3d758a6d011a71d213d5a20fc9a345761ff765
[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
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31
32 typedef enum tagAUTOCOMPLETEOPTIONS {
33     ACO_NONE = 0x00,
34     ACO_AUTOSUGGEST = 0x01,
35     ACO_AUTOAPPEND = 0x02,
36     ACO_SEARCH = 0x04,
37     ACO_FILTERPREFIXES = 0x08,
38     ACO_USETAB = 0x10,
39     ACO_UPDOWNKEYDROPSLIST = 0x20,
40     ACO_RTLREADING = 0x40,
41 #if (_WIN32_WINNT >= 0x0600)
42     ACO_WORD_FILTER = 0x80,
43     ACO_NOPREFIXFILTERING = 0x100
44 #endif
45 } AUTOCOMPLETEOPTIONS;
46
47 #define INTERFACE IAutoComplete
48 DECLARE_INTERFACE_(IAutoComplete, IUnknown)
49 {
50         STDMETHOD(QueryInterface)(THIS_ REFIID,PVOID*) PURE;
51         STDMETHOD_(ULONG,AddRef)(THIS) PURE;
52         STDMETHOD_(ULONG,Release)(THIS) PURE;
53         STDMETHOD(Init)(THIS_ HWND,IUnknown*,LPCOLESTR,LPCOLESTR) PURE;
54         STDMETHOD(Enable)(THIS_ BOOL) PURE;
55 };
56 #undef INTERFACE
57 typedef IAutoComplete *LPAUTOCOMPLETE;
58
59 #ifdef COBJMACROS
60 #define IAutoComplete_QueryInterface(T,a,b) (T)->lpVtbl->QueryInterface(T,a,b)
61 #define IAutoComplete_AddRef(T) (T)->lpVtbl->AddRef(T)
62 #define IAutoComplete_Release(T) (T)->lpVtbl->Release(T)
63 #define IAutoComplete_Init(T,a,b,c,d) (T)->lpVtbl->Init(T,a,b,c,d)
64 #define IAutoComplete_Enable(T,a) (T)->lpVtbl->Enable(T,a)
65 #endif
66
67 #define INTERFACE IAutoComplete2
68 DECLARE_INTERFACE_(IAutoComplete2, IAutoComplete)
69 {
70         STDMETHOD(QueryInterface)(THIS_ REFIID,PVOID*) PURE;
71         STDMETHOD_(ULONG,AddRef)(THIS) PURE;
72         STDMETHOD_(ULONG,Release)(THIS) PURE;
73         STDMETHOD(Init)(THIS_ HWND,IUnknown*,LPCOLESTR,LPCOLESTR) PURE;
74         STDMETHOD(Enable)(THIS_ BOOL) PURE;
75         STDMETHOD(SetOptions)(THIS_ DWORD) PURE;
76         STDMETHOD(GetOptions)(THIS_ DWORD*) PURE;
77 };
78 #undef INTERFACE
79 typedef IAutoComplete2 *LPAUTOCOMPLETE2;
80
81 #ifdef COBJMACROS
82 #define IAutoComplete2_QueryInterface(T,a,b) (T)->lpVtbl->QueryInterface(T,a,b)
83 #define IAutoComplete2_AddRef(T) (T)->lpVtbl->AddRef(T)
84 #define IAutoComplete2_Release(T) (T)->lpVtbl->Release(T)
85 #define IAutoComplete2_Init(T,a,b,c,d) (T)->lpVtbl->Init(T,a,b,c,d)
86 #define IAutoComplete2_Enable(T,a) (T)->lpVtbl->Enable(T,a)
87 #define IAutoComplete2_SetOptions(T,a) (T)->lpVtbl->Enable(T,a)
88 #define IAutoComplete2_GetOptions(T,a) (T)->lpVtbl->Enable(T,a)
89 #endif
90
91 #ifdef __cplusplus
92 }
93 #endif
94
95 #endif /* _SHLDISP_H */