#include <windef.h>
#include <shlobj.h>
#include <shlwapi.h>
#include <browseui_undoc.h>
#include <shlwapi_undoc.h>
#include <shlguid_undoc.h>
#include <atlbase.h>
#include <atlcom.h>
#include <wine/debug.h>
Go to the source code of this file.
◆ AUTOCOMPLETE_KEY
#define AUTOCOMPLETE_KEY L"Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\AutoComplete" |
◆ RUN_MRU_KEY
#define RUN_MRU_KEY L"Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\RunMRU" |
◆ TYPED_URLS_KEY
#define TYPED_URLS_KEY L"Software\\Microsoft\\Internet Explorer\\TypedURLs" |
◆ AutoComplete_AdaptFlags()
Definition at line 134 of file autocomp.cpp.
138{
139#define AUTOCOMPLETE_KEY L"Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\AutoComplete"
140 DWORD dwSHACF = *pdwSHACF, dwACO = 0, dwACLO = 0;
143
147 {
148 dwACO |= ACO_AUTOAPPEND;
149 }
150
154 {
155 dwACO |= ACO_AUTOSUGGEST;
156 }
157
162
163 static BOOL s_bAlwaysUseTab = 99;
164 if (s_bAlwaysUseTab == 99)
166
168 dwACO |= ACO_USETAB;
169
171 dwACO |= ACO_RTLREADING;
172
173 *pdwSHACF = dwSHACF;
174 *pdwACO = dwACO;
175 *pdwACLO = dwACLO;
176}
BOOL WINAPI SHRegGetBoolUSValueW(LPCWSTR pszSubKey, LPCWSTR pszValue, BOOL fIgnoreHKCU, BOOL fDefault)
#define SHACF_AUTOSUGGEST_FORCE_ON
#define SHACF_AUTOAPPEND_FORCE_ON
#define SHACF_FILESYS_ONLY
#define SHACF_FILESYS_DIRS
#define SHACF_AUTOAPPEND_FORCE_OFF
#define SHACF_AUTOSUGGEST_FORCE_OFF
#define GetWindowLongPtrW
Referenced by SHAutoComplete().
◆ AutoComplete_AddMRU()
static HRESULT AutoComplete_AddMRU |
( |
CComPtr< IObjMgr > |
pManager, |
|
|
LPCWSTR |
pszKey |
|
) |
| |
|
static |
Definition at line 20 of file autocomp.cpp.
21{
22 CComPtr<IACLCustomMRU> pMRU;
24 IID_IACLCustomMRU, (
LPVOID *)&pMRU);
26 {
27 ERR(
"CoCreateInstance(CLSID_ACLMRU) failed with 0x%08lX\n",
hr);
29 }
30
31 hr = pMRU->Initialize(pszKey,
'z' -
'a' + 1);
33 {
34 ERR(
"pMRU->Initialize(%ls) failed with 0x%08lX\n", pszKey,
hr);
36 }
37
38 hr = pManager->Append(pMRU);
40 ERR(
"pManager->Append for '%ls' failed with 0x%08lX\n", pszKey,
hr);
42}
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
Referenced by AutoComplete_LoadList().
◆ AutoComplete_LoadList()
Definition at line 65 of file autocomp.cpp.
66{
67
68 CComPtr<IUnknown>
pList;
72 {
73 ERR(
"CoCreateInstance(CLSID_ACLMulti) failed with 0x%08lX\n",
hr);
75 }
76
77 CComPtr<IObjMgr> pManager;
80 {
81 ERR(
"pList->QueryInterface failed: 0x%08lX\n",
hr);
83 }
84
86 {
87
88#define RUN_MRU_KEY L"Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\RunMRU"
89#define TYPED_URLS_KEY L"Software\\Microsoft\\Internet Explorer\\TypedURLs"
92 }
93
95 {
96
97 CComPtr<IUnknown> pHistory;
101 {
102 pManager->Append(pHistory);
103
105 }
106 else
107 {
108 ERR(
"CLSID_ACLHistory hr:%08lX\n",
hr);
109 }
110 }
111
113 {
114
115 CComPtr<IUnknown> pISF;
119 {
120 pManager->Append(pISF);
121
123 }
124 else
125 {
126 ERR(
"CLSID_ACListISF hr:%08lX\n",
hr);
127 }
128 }
129
131}
virtual _Must_inspect_result_ NTSTATUS QueryInterface(__in FxQueryInterfaceParams *Params)
static HRESULT IUnknown_AddOptions(CComPtr< IUnknown > punk, DWORD dwACLO)
static HRESULT AutoComplete_AddMRU(CComPtr< IObjMgr > pManager, LPCWSTR pszKey)
Referenced by SHAutoComplete().
◆ IUnknown_AddOptions()
◆ SHAutoComplete()
Definition at line 191 of file autocomp.cpp.
192{
194
197
198
201 {
202 ERR(
"Out of memory\n");
204 }
205
206
207 CComPtr<IAutoComplete2> pAC2;
209 IID_IAutoComplete2, (
LPVOID *)&pAC2);
211 {
212 ERR(
"CoCreateInstance(CLSID_AutoComplete) failed: 0x%lX\n",
hr);
214 }
215
216
219 {
220
223 pAC2->SetOptions(dwACO);
224 else
225 ERR(
"IAutoComplete2::Init failed: 0x%lX\n",
hr);
226 }
227
229}
HMODULE WINAPI SHPinDllOfCLSID(REFIID refiid)
static VOID AutoComplete_AdaptFlags(IN HWND hwndEdit, IN OUT LPDWORD pdwSHACF, OUT LPDWORD pdwACO, OUT LPDWORD pdwACLO)
static CComPtr< IUnknown > AutoComplete_LoadList(DWORD dwSHACF, DWORD dwACLO)
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
Referenced by BrFolder_OnInitDialog(), CHSourceDlgProc(), CAddressEditBox::Init(), CShellLink::OnInitDialog(), PickIconProc(), RunDlgProc(), and WelcomeDlgProc().
◆ WINE_DEFAULT_DEBUG_CHANNEL()
WINE_DEFAULT_DEBUG_CHANNEL |
( |
shell |
| ) |
|