22 CComPtr<IACLCustomMRU> pMRU;
24 IID_IACLCustomMRU, (
LPVOID *)&pMRU);
27 ERR(
"CoCreateInstance(CLSID_ACLMRU) failed with 0x%08lX\n",
hr);
31 hr = pMRU->Initialize(pszKey,
'z' -
'a' + 1);
34 ERR(
"pMRU->Initialize(%ls) failed with 0x%08lX\n", pszKey,
hr);
38 hr = pManager->Append(pMRU);
40 ERR(
"pManager->Append for '%ls' failed with 0x%08lX\n", pszKey,
hr);
47 CComPtr<IACList2>
pList;
51 ERR(
"punk->QueryInterface failed: 0x%08lX\n",
hr);
60 ERR(
"pList->SetOptions failed: 0x%08lX\n",
hr);
64static CComPtr<IUnknown>
68 CComPtr<IUnknown>
pList;
73 ERR(
"CoCreateInstance(CLSID_ACLMulti) failed with 0x%08lX\n",
hr);
77 CComPtr<IObjMgr> pManager;
81 ERR(
"pList->QueryInterface failed: 0x%08lX\n",
hr);
88#define RUN_MRU_KEY L"Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\RunMRU"
89#define TYPED_URLS_KEY L"Software\\Microsoft\\Internet Explorer\\TypedURLs"
97 CComPtr<IUnknown> pHistory;
102 pManager->Append(pHistory);
108 ERR(
"CLSID_ACLHistory hr:%08lX\n",
hr);
115 CComPtr<IUnknown> pISF;
120 pManager->Append(pISF);
126 ERR(
"CLSID_ACListISF hr:%08lX\n",
hr);
139#define AUTOCOMPLETE_KEY L"Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\AutoComplete"
140 DWORD dwSHACF = *pdwSHACF, dwACO = 0, dwACLO = 0;
148 dwACO |= ACO_AUTOAPPEND;
155 dwACO |= ACO_AUTOSUGGEST;
163 static BOOL s_bAlwaysUseTab = 99;
164 if (s_bAlwaysUseTab == 99)
171 dwACO |= ACO_RTLREADING;
202 ERR(
"Out of memory\n");
207 CComPtr<IAutoComplete2> pAC2;
209 IID_IAutoComplete2, (
LPVOID *)&pAC2);
212 ERR(
"CoCreateInstance(CLSID_AutoComplete) failed: 0x%lX\n",
hr);
223 pAC2->SetOptions(dwACO);
225 ERR(
"IAutoComplete2::Init failed: 0x%lX\n",
hr);
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
void shell(int argc, const char *argv[])
virtual _Must_inspect_result_ NTSTATUS QueryInterface(__in FxQueryInterfaceParams *Params)
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
HMODULE WINAPI SHPinDllOfCLSID(REFIID refiid)
BOOL WINAPI SHRegGetBoolUSValueW(LPCWSTR pszSubKey, LPCWSTR pszValue, BOOL fIgnoreHKCU, BOOL fDefault)
HRESULT QueryInterface([in] REFIID riid, [out, iid_is(riid)] void **ppvObject)
HRESULT WINAPI SHAutoComplete(HWND hwndEdit, DWORD dwFlags)
static VOID AutoComplete_AdaptFlags(IN HWND hwndEdit, IN OUT LPDWORD pdwSHACF, OUT LPDWORD pdwACO, OUT LPDWORD pdwACLO)
static HRESULT IUnknown_AddOptions(CComPtr< IUnknown > punk, DWORD dwACLO)
static CComPtr< IUnknown > AutoComplete_LoadList(DWORD dwSHACF, DWORD dwACLO)
static HRESULT AutoComplete_AddMRU(CComPtr< IObjMgr > pManager, LPCWSTR pszKey)
#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
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
#define GetWindowLongPtrW