af062818b47340eef15700d2f0211576ba3506eevboxsync/*
af062818b47340eef15700d2f0211576ba3506eevboxsync * Copyright 2006 Jacek Caban for CodeWeavers
af062818b47340eef15700d2f0211576ba3506eevboxsync *
af062818b47340eef15700d2f0211576ba3506eevboxsync * This library is free software; you can redistribute it and/or
af062818b47340eef15700d2f0211576ba3506eevboxsync * modify it under the terms of the GNU Lesser General Public
af062818b47340eef15700d2f0211576ba3506eevboxsync * License as published by the Free Software Foundation; either
af062818b47340eef15700d2f0211576ba3506eevboxsync * version 2.1 of the License, or (at your option) any later version.
af062818b47340eef15700d2f0211576ba3506eevboxsync *
af062818b47340eef15700d2f0211576ba3506eevboxsync * This library is distributed in the hope that it will be useful,
af062818b47340eef15700d2f0211576ba3506eevboxsync * but WITHOUT ANY WARRANTY; without even the implied warranty of
af062818b47340eef15700d2f0211576ba3506eevboxsync * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
af062818b47340eef15700d2f0211576ba3506eevboxsync * Lesser General Public License for more details.
af062818b47340eef15700d2f0211576ba3506eevboxsync *
af062818b47340eef15700d2f0211576ba3506eevboxsync * You should have received a copy of the GNU Lesser General Public
af062818b47340eef15700d2f0211576ba3506eevboxsync * License along with this library; if not, write to the Free Software
af062818b47340eef15700d2f0211576ba3506eevboxsync * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
af062818b47340eef15700d2f0211576ba3506eevboxsync */
af062818b47340eef15700d2f0211576ba3506eevboxsync
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync/*
4b9d6701570cb98fd36e209314239d104ec584d3vboxsync * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
4b9d6701570cb98fd36e209314239d104ec584d3vboxsync * other than GPL or LGPL is available it will apply instead, Oracle elects to use only
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * a choice of LGPL license versions is made available with the language indicating
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * that LGPLv2 or any later version may be used, or where a choice of which version
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * of the LGPL is applied is otherwise unspecified.
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync */
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsyncimport "objidl.idl";
af062818b47340eef15700d2f0211576ba3506eevboxsyncimport "oleidl.idl";
af062818b47340eef15700d2f0211576ba3506eevboxsyncimport "oaidl.idl";
af062818b47340eef15700d2f0211576ba3506eevboxsyncimport "docobj.idl";
af062818b47340eef15700d2f0211576ba3506eevboxsyncimport "servprov.idl";
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef enum _ADDURL_FLAG
af062818b47340eef15700d2f0211576ba3506eevboxsync{
af062818b47340eef15700d2f0211576ba3506eevboxsync ADDURL_FIRST = 0,
af062818b47340eef15700d2f0211576ba3506eevboxsync ADDURL_ADDTOHISTORYANDCACHE = 0,
af062818b47340eef15700d2f0211576ba3506eevboxsync ADDURL_ADDTOCACHE = 1,
af062818b47340eef15700d2f0211576ba3506eevboxsync ADDURL_Max = 0x7fffffff
af062818b47340eef15700d2f0211576ba3506eevboxsync} ADDURL_FLAG;
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync/*****************************************************************************
af062818b47340eef15700d2f0211576ba3506eevboxsync * IEnumSTATURL interface
af062818b47340eef15700d2f0211576ba3506eevboxsync */
af062818b47340eef15700d2f0211576ba3506eevboxsync[
af062818b47340eef15700d2f0211576ba3506eevboxsync object,
af062818b47340eef15700d2f0211576ba3506eevboxsync uuid(3c374a42-bae4-11cf-bf7d-00aa006946ee),
af062818b47340eef15700d2f0211576ba3506eevboxsync pointer_default(unique)
af062818b47340eef15700d2f0211576ba3506eevboxsync]
af062818b47340eef15700d2f0211576ba3506eevboxsyncinterface IEnumSTATURL : IUnknown
af062818b47340eef15700d2f0211576ba3506eevboxsync{
af062818b47340eef15700d2f0211576ba3506eevboxsync typedef [unique] IEnumSTATURL *LPENUMSTATURL;
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync typedef struct _STATURL
af062818b47340eef15700d2f0211576ba3506eevboxsync {
af062818b47340eef15700d2f0211576ba3506eevboxsync DWORD cbSize;
af062818b47340eef15700d2f0211576ba3506eevboxsync LPWSTR pwcsUrl;
af062818b47340eef15700d2f0211576ba3506eevboxsync LPWSTR pwcsTitle;
af062818b47340eef15700d2f0211576ba3506eevboxsync FILETIME ftLastVisited;
af062818b47340eef15700d2f0211576ba3506eevboxsync FILETIME ftLastUpdated;
af062818b47340eef15700d2f0211576ba3506eevboxsync FILETIME ftExpires;
af062818b47340eef15700d2f0211576ba3506eevboxsync DWORD dwFlags;
af062818b47340eef15700d2f0211576ba3506eevboxsync } STATURL, *LPSTATURL;
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT Next(
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] ULONG celt,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in, out] LPSTATURL rgelt,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in, out] ULONG *pceltFetched);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT Skip([in] ULONG celt);
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT Reset();
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT Clone([out] IEnumSTATURL **ppenum);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT SetFilter(
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] LPCOLESTR poszFilter,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] DWORD dwFlags);
af062818b47340eef15700d2f0211576ba3506eevboxsync}
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync/*****************************************************************************
af062818b47340eef15700d2f0211576ba3506eevboxsync * IUrlHistoryStg interface
af062818b47340eef15700d2f0211576ba3506eevboxsync */
af062818b47340eef15700d2f0211576ba3506eevboxsync[
af062818b47340eef15700d2f0211576ba3506eevboxsync object,
af062818b47340eef15700d2f0211576ba3506eevboxsync uuid(3c374a41-bae4-11cf-bf7d-00aa006946ee),
af062818b47340eef15700d2f0211576ba3506eevboxsync pointer_default(unique)
af062818b47340eef15700d2f0211576ba3506eevboxsync]
af062818b47340eef15700d2f0211576ba3506eevboxsyncinterface IUrlHistoryStg : IUnknown
af062818b47340eef15700d2f0211576ba3506eevboxsync{
af062818b47340eef15700d2f0211576ba3506eevboxsync typedef [unique] IUrlHistoryStg *LPURLHISTORYSTG;
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT AddUrl(
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] LPCOLESTR pocsUrl,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in, unique] LPCOLESTR pocsTitle,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] DWORD dwFlags);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT DeleteUrl(
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] LPCOLESTR pocsUrl,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] DWORD dwFlags);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT QueryUrl(
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] LPCOLESTR pocsUrl,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] DWORD dwFlags,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in, out, unique] LPSTATURL lpSTATURL);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT BindToObject(
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] LPCOLESTR pocsUrl,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] REFIID riid,
af062818b47340eef15700d2f0211576ba3506eevboxsync [out, iid_is(riid)] void **ppvOut);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT EnumUrls(
af062818b47340eef15700d2f0211576ba3506eevboxsync [out] IEnumSTATURL **ppEnum);
af062818b47340eef15700d2f0211576ba3506eevboxsync}
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync/*****************************************************************************
af062818b47340eef15700d2f0211576ba3506eevboxsync * IUrlHistoryStg2 interface
af062818b47340eef15700d2f0211576ba3506eevboxsync */
af062818b47340eef15700d2f0211576ba3506eevboxsync[
af062818b47340eef15700d2f0211576ba3506eevboxsync object,
af062818b47340eef15700d2f0211576ba3506eevboxsync uuid(afa0dc11-c313-11d0-831a-00c04fd5ae38),
af062818b47340eef15700d2f0211576ba3506eevboxsync pointer_default(unique)
af062818b47340eef15700d2f0211576ba3506eevboxsync]
af062818b47340eef15700d2f0211576ba3506eevboxsyncinterface IUrlHistoryStg2 : IUrlHistoryStg
af062818b47340eef15700d2f0211576ba3506eevboxsync{
af062818b47340eef15700d2f0211576ba3506eevboxsync typedef [unique] IUrlHistoryStg2 *LPURLHISTORYSTG2;
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT AddUrlAndNotify(
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] LPCOLESTR pocsUrl,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in,unique] LPCOLESTR pocsTitle,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] DWORD dwFlags,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] BOOL fWriteHistory,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] IOleCommandTarget *poctNotify,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in, unique] IUnknown *punkISFolder);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT ClearHistory();
af062818b47340eef15700d2f0211576ba3506eevboxsync}
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync/*****************************************************************************
af062818b47340eef15700d2f0211576ba3506eevboxsync * IUrlHistoryNotify interface
af062818b47340eef15700d2f0211576ba3506eevboxsync */
af062818b47340eef15700d2f0211576ba3506eevboxsync[
af062818b47340eef15700d2f0211576ba3506eevboxsync object,
af062818b47340eef15700d2f0211576ba3506eevboxsync uuid(bc40bec1-c493-11d0-831b-00C04fd5ae38),
af062818b47340eef15700d2f0211576ba3506eevboxsync pointer_default(unique)
af062818b47340eef15700d2f0211576ba3506eevboxsync]
af062818b47340eef15700d2f0211576ba3506eevboxsyncinterface IUrlHistoryNotify : IOleCommandTarget
af062818b47340eef15700d2f0211576ba3506eevboxsync{
af062818b47340eef15700d2f0211576ba3506eevboxsync typedef [unique] IUrlHistoryNotify *LPURLHISTORYNOTIFY;
af062818b47340eef15700d2f0211576ba3506eevboxsync}