2 * Deprecated shell interfaces
4 * Copyright (C) 2010 Nikolay Sivov for CodeWeavers
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
23 import "shobjidl.idl";
27 cpp_quote("#define TLOG_BACK -1")
28 cpp_quote("#define TLOG_FORE 1")
30 cpp_quote("#define TLMENUF_INCLUDECURRENT 0x00000001")
31 cpp_quote("#define TLMENUF_CHECKCURRENT (TLMENUF_INCLUDECURRENT | 0x00000002)")
32 cpp_quote("#define TLMENUF_BACK 0x00000010")
33 cpp_quote("#define TLMENUF_FORE 0x00000020")
34 cpp_quote("#define TLMENUF_BACKANDFORTH (TLMENUF_BACK | TLMENUF_FORE | TLMENUF_INCLUDECURRENT)")
40 uuid(F46EDB3B-BC2F-11d0-9412-00AA00A3EBD3)
42 interface ITravelEntry : IUnknown
49 [in] BOOL fIsLocalAnchor);
52 [out] LPITEMIDLIST *ppidl);
59 uuid(66A9CB08-4802-11d2-A561-00A0C92DBFE8)
61 interface ITravelLog : IUnknown
65 [in] BOOL fIsLocalAnchor);
69 [in] BOOL fIsLocalAnchor);
71 HRESULT UpdateExternal(
73 [in] IUnknown *punkHLBrowseContext);
79 HRESULT GetTravelEntry(
82 [optional, out] ITravelEntry **ppte);
84 HRESULT FindTravelEntry(
86 [in] LPCITEMIDLIST pidl,
87 [out] ITravelEntry **ppte);
89 HRESULT GetToolTipText(
93 [out, size_is(cchText)] LPWSTR pwzText,
96 HRESULT InsertMenuEntries(
105 [out] ITravelLog **pptl);
108 [in] IUnknown *punk);
113 typedef void *CIE4ConnectionPoint;
118 uuid(0D7D1D00-6FC0-11D0-A974-00C04FD705A2)
120 interface IExpDispSupport : IUnknown
122 HRESULT FindCIE4ConnectionPoint(
124 CIE4ConnectionPoint **ppccp);
126 HRESULT OnTranslateAccelerator(
135 DISPPARAMS *pdispparams,
137 EXCEPINFO *pexcepinfo,
141 typedef enum tagBNSTATE
144 BNS_BEGIN_NAVIGATE = 1,
156 cpp_quote("#define BSF_REGISTERASDROPTARGET 0x00000001")
157 cpp_quote("#define BSF_THEATERMODE 0x00000002")
158 cpp_quote("#define BSF_NOLOCALFILEWARNING 0x00000010")
159 cpp_quote("#define BSF_UISETBYAUTOMATION 0x00000100")
160 cpp_quote("#define BSF_RESIZABLE 0x00000200")
161 cpp_quote("#define BSF_CANMAXIMIZE 0x00000400")
162 cpp_quote("#define BSF_TOPBROWSER 0x00000800")
163 cpp_quote("#define BSF_NAVNOHISTORY 0x00001000")
164 cpp_quote("#define BSF_HTMLNAVCANCELED 0x00002000")
165 cpp_quote("#define BSF_DONTSHOWNAVCANCELPAGE 0x00004000")
166 cpp_quote("#define BSF_SETNAVIGATABLECODEPAGE 0x00008000")
167 cpp_quote("#define BSF_DELEGATEDNAVIGATION 0x00010000")
168 cpp_quote("#define BSF_TRUSTEDFORACTIVEX 0x00020000")
170 cpp_quote("#define HLNF_CALLERUNTRUSTED 0x00200000")
171 cpp_quote("#define HLNF_TRUSTEDFORACTIVEX 0x00400000")
172 cpp_quote("#define HLNF_DISABLEWINDOWRESTRICTIONS 0x00800000")
173 cpp_quote("#define HLNF_TRUSTFIRSTDOWNLOAD 0x01000000")
174 cpp_quote("#define HLNF_UNTRUSTEDFORDOWNLOAD 0x02000000")
175 cpp_quote("#define SHHLNF_NOAUTOSELECT 0x04000000")
176 cpp_quote("#define SHHLNF_WRITENOHISTORY 0x08000000")
177 cpp_quote("#define HLNF_EXTERNALNAVIGATE 0x10000000")
178 cpp_quote("#define HLNF_ALLOW_AUTONAVIGATE 0x20000000")
179 cpp_quote("#define HLNF_NEWWINDOWSMANAGED 0x80000000")
184 uuid(02ba3b52-0547-11d1-b833-00c04fc9b31f)
186 interface IBrowserService : IUnknown
188 HRESULT GetParentSite(
189 [out] IOleInPlaceSite **ppipsite);
192 [in] IShellView *psv,
193 [in] LPCWSTR pszName);
196 [in] IShellView *psv,
197 [out, size_is(cchName)] LPWSTR pszName,
200 HRESULT GetOleObject(
201 [out] IOleObject **ppobjv);
203 HRESULT GetTravelLog(
204 [out, optional] ITravelLog **pptl);
206 HRESULT ShowControlWindow(
210 HRESULT IsControlWindowShown(
212 [out] BOOL *pfShown);
214 HRESULT IEGetDisplayName(
215 [in] PCIDLIST_ABSOLUTE pidl,
216 [out] LPWSTR pwszName,
219 HRESULT IEParseDisplayName(
221 [in] LPCWSTR pwszPath,
222 [out] PIDLIST_ABSOLUTE *ppidlOut);
224 HRESULT DisplayParseError(
226 [in] LPCWSTR pwszPath);
228 HRESULT NavigateToPidl(
229 [in] PCIDLIST_ABSOLUTE pidl,
232 HRESULT SetNavigateState(
233 [in] BNSTATE bnstate);
235 HRESULT GetNavigateState(
236 [out] BNSTATE *pbnstate);
238 HRESULT NotifyRedirect(
239 [in] IShellView *psv,
240 [in] PCIDLIST_ABSOLUTE pidl,
241 [out] BOOL *pfDidBrowse);
243 HRESULT UpdateWindowList();
245 HRESULT UpdateBackForwardState();
249 [in] DWORD dwFlagMask);
252 [out] DWORD *pdwFlags);
254 HRESULT CanNavigateNow();
257 [out] PIDLIST_ABSOLUTE *ppidl);
260 [in] PCIDLIST_ABSOLUTE pidl);
262 DWORD GetBrowserIndex();
264 HRESULT GetBrowserByIndex(
266 [out] IUnknown **ppunk);
268 HRESULT GetHistoryObject(
269 [out] IOleObject **ppole,
270 [out] IStream **pstm,
271 [out] IBindCtx **ppbc);
273 HRESULT SetHistoryObject(
274 [in] IOleObject *pole,
275 [in] BOOL fIsLocalAnchor);
277 HRESULT CacheOLEServer(
278 [in] IOleObject *pole);
280 HRESULT GetSetCodePage(
281 [in] VARIANT *pvarIn,
282 [out] VARIANT *pvarOut);
285 [in] IShellView *psv,
287 [in] VARIANT *pvarargIn,
288 [out] VARIANT *pvarargOut);
291 [out] HPALETTE *hpal);
293 HRESULT RegisterWindow(
294 [in] BOOL fForceRegister,
301 uuid(5836fb00-8187-11cf-a12b-00aa004ae837)
303 interface IShellService : IUnknown
305 HRESULT SetOwner( [in] IUnknown *pUnk );
309 typedef HANDLE HMONITOR;
313 SECURELOCK_NOCHANGE = -1,
314 SECURELOCK_SET_UNSECURE = 0,
315 SECURELOCK_SET_MIXED = 1,
316 SECURELOCK_SET_SECUREUNKNOWNBIT = 2,
317 SECURELOCK_SET_SECURE40BIT = 3,
318 SECURELOCK_SET_SECURE56BIT = 4,
319 SECURELOCK_SET_FORTEZZA = 5,
320 SECURELOCK_SET_SECURE128BIT = 6,
321 SECURELOCK_FIRSTSUGGEST = 7,
322 SECURELOCK_SUGGEST_UNSECURE = SECURELOCK_FIRSTSUGGEST,
323 SECURELOCK_SUGGEST_MIXED = 8,
324 SECURELOCK_SUGGEST_SECUREUNKNOWNBIT = 9,
325 SECURELOCK_SUGGEST_SECURE40BIT = 10,
326 SECURELOCK_SUGGEST_SECURE56BIT = 11,
327 SECURELOCK_SUGGEST_FORTEZZA = 12,
328 SECURELOCK_SUGGEST_SECURE128BIT = 13,
336 IWebBrowser2 *_pautoWB2;
337 IExpDispSupport *_pautoEDS;
338 IShellService *_pautoSS;
339 int _eSecureLockIcon;
340 DWORD _fCreatingViewWindow;
341 UINT _uActivateState;
343 LPCITEMIDLIST _pidlNewShellView;
345 IOleCommandTarget *_pctView;
347 LPITEMIDLIST _pidlCur;
353 LPITEMIDLIST _pidlPending;
354 IShellView *_psvPending;
355 IShellFolder *_psfPending;
356 HWND _hwndViewPending;
357 LPWSTR _pszTitlePending;
360 BOOL _fPrivacyImpacted;
362 } BASEBROWSERDATA, *LPBASEBROWSERDATA;
363 typedef const BASEBROWSERDATA *LPCBASEBROWSERDATA;
365 cpp_quote("#define VIEW_PRIORITY_RESTRICTED 0x00000070")
366 cpp_quote("#define VIEW_PRIORITY_CACHEHIT 0x00000050")
367 cpp_quote("#define VIEW_PRIORITY_STALECACHEHIT 0x00000045")
368 cpp_quote("#define VIEW_PRIORITY_USEASDEFAULT 0x00000043")
369 cpp_quote("#define VIEW_PRIORITY_SHELLEXT 0x00000040")
370 cpp_quote("#define VIEW_PRIORITY_CACHEMISS 0x00000030")
371 cpp_quote("#define VIEW_PRIORITY_INHERIT 0x00000020")
372 cpp_quote("#define VIEW_PRIORITY_SHELLEXT_ASBACKUP 0x0015")
373 cpp_quote("#define VIEW_PRIORITY_DESPERATE 0x00000010")
374 cpp_quote("#define VIEW_PRIORITY_NONE 0x00000000")
376 typedef struct tagFolderSetData {
378 SHELLVIEWID _vidRestore;
379 DWORD _dwViewPriority;
380 } FOLDERSETDATA, *LPFOLDERSETDATA;
382 typedef struct SToolbarItem {
383 IDockingWindow *ptbar;
384 BORDERWIDTHS rcBorderTool;
388 } TOOLBARITEM, *LPTOOLBARITEM;
390 cpp_quote("#define ITB_VIEW ((UINT)-1)")
395 uuid(68BD21CC-438B-11d2-A560-00A0C92DBFE8)
397 interface IBrowserService2 : IBrowserService
402 [in, out] WPARAM wParam,
403 [in, out] LPARAM lParam);
405 HRESULT SetAsDefFolderSettings();
408 [in, out] RECT *prc);
414 [in] struct tagCREATESTRUCTW *pcs);
423 [in, out] struct tagNMHDR *pnm);
425 HRESULT OnSetFocus();
427 HRESULT OnFrameWindowActivateBS(
430 HRESULT ReleaseShellView();
432 HRESULT ActivatePendingView();
434 HRESULT CreateViewWindow(
435 [in] IShellView *psvNew,
436 [in] IShellView *psvOld,
437 [out] LPRECT prcView,
440 HRESULT CreateBrowserPropSheetExt(
444 HRESULT GetViewWindow(
445 [out] HWND *phwndView);
447 HRESULT GetBaseBrowserData(
448 [in, out] LPCBASEBROWSERDATA *pbbd);
450 LPBASEBROWSERDATA PutBaseBrowserData();
452 HRESULT InitializeTravelLog(
453 [in] ITravelLog *ptl,
456 HRESULT SetTopBrowser();
461 HRESULT AllowViewResize(
464 HRESULT SetActivateState(
467 HRESULT UpdateSecureLockIcon(
468 [in] int eSecureLock);
470 HRESULT InitializeDownloadManager();
472 HRESULT InitializeTransitionSite();
476 [in] IUnknown *pauto);
478 HRESULT _CancelPendingNavigationAsync();
480 HRESULT _CancelPendingView();
482 HRESULT _MaySaveChanges();
484 HRESULT _PauseOrResumeView(
487 HRESULT _DisableModeless();
489 HRESULT _NavigateToPidl(
490 [in] LPCITEMIDLIST pidl,
494 HRESULT _TryShell2Rename(
495 [in] IShellView *psv,
496 [in] LPCITEMIDLIST pidlNew);
498 HRESULT _SwitchActivationNow();
500 HRESULT _ExecChildren(
501 [in] IUnknown *punkBar,
502 [in] BOOL fBroadcast,
503 [in] const GUID *pguidCmdGroup,
505 [in] DWORD nCmdexecopt,
506 [in] VARIANTARG *pvarargIn,
507 [in, out] VARIANTARG *pvarargOut);
509 HRESULT _SendChildren(
511 [in] BOOL fBroadcast,
513 [in, out] WPARAM wParam,
514 [in, out] LPARAM lParam);
516 HRESULT GetFolderSetData(
517 [in, out] struct tagFolderSetData *pfsd);
519 HRESULT _OnFocusChange(
522 HRESULT v_ShowHideChildWindows(
523 [in] BOOL fChildOnly);
525 UINT _get_itbLastFocus();
527 HRESULT _put_itbLastFocus(
528 [in] UINT itbLastFocus);
530 HRESULT _UIActivateView(
533 HRESULT _GetViewBorderRect(
534 [in, out] RECT* prc);
536 HRESULT _UpdateViewRectSize();
538 HRESULT _ResizeNextBorder(
541 HRESULT _ResizeView();
543 HRESULT _GetEffectiveClientArea(
544 [in, out] LPRECT lprectBorder,
547 IStream* v_GetViewStream(
548 [in] LPCITEMIDLIST pidl,
550 [in] LPCWSTR pwszName);
552 LRESULT ForwardViewMsg(
557 HRESULT SetAcceleratorMenu(
560 int _GetToolbarCount();
562 LPTOOLBARITEM _GetToolbarItem(
565 HRESULT _SaveToolbars(
568 HRESULT _LoadToolbars(
571 HRESULT _CloseAndReleaseToolbars(
574 HRESULT v_MayGetNextToolbarFocus(
578 [out] LPTOOLBARITEM *pptbi,
581 HRESULT _ResizeNextBorderHelper(
583 [in] BOOL bUseHmonitor);
586 [in] IUnknown *punkSrc);
589 [in] LPTOOLBARITEM ptbi,
593 HRESULT v_MayTranslateAccelerator(
596 HRESULT _GetBorderDWHelper(
597 [in] IUnknown *punkSrc,
598 [in] LPRECT lprectBorder,
599 [in] BOOL bUseHmonitor);
601 HRESULT v_CheckZoneCrossing(
602 [in, out] LPCITEMIDLIST pidl);