1 | /*
|
---|
2 | * Copyright 2006 Jacek Caban for CodeWeavers
|
---|
3 | *
|
---|
4 | * This library is free software; you can redistribute it and/or
|
---|
5 | * modify it under the terms of the GNU Lesser General Public
|
---|
6 | * License as published by the Free Software Foundation; either
|
---|
7 | * version 2.1 of the License, or (at your option) any later version.
|
---|
8 | *
|
---|
9 | * This library is distributed in the hope that it will be useful,
|
---|
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
12 | * Lesser General Public License for more details.
|
---|
13 | *
|
---|
14 | * You should have received a copy of the GNU Lesser General Public
|
---|
15 | * License along with this library; if not, write to the Free Software
|
---|
16 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
---|
17 | */
|
---|
18 |
|
---|
19 | /*
|
---|
20 | * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
|
---|
21 | * other than GPL or LGPL is available it will apply instead, Sun elects to use only
|
---|
22 | * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
|
---|
23 | * a choice of LGPL license versions is made available with the language indicating
|
---|
24 | * that LGPLv2 or any later version may be used, or where a choice of which version
|
---|
25 | * of the LGPL is applied is otherwise unspecified.
|
---|
26 | */
|
---|
27 |
|
---|
28 | import "objidl.idl";
|
---|
29 | import "oleidl.idl";
|
---|
30 | import "oaidl.idl";
|
---|
31 | import "docobj.idl";
|
---|
32 | import "servprov.idl";
|
---|
33 |
|
---|
34 | typedef enum _ADDURL_FLAG
|
---|
35 | {
|
---|
36 | ADDURL_FIRST = 0,
|
---|
37 | ADDURL_ADDTOHISTORYANDCACHE = 0,
|
---|
38 | ADDURL_ADDTOCACHE = 1,
|
---|
39 | ADDURL_Max = 0x7fffffff
|
---|
40 | } ADDURL_FLAG;
|
---|
41 |
|
---|
42 | /*****************************************************************************
|
---|
43 | * IEnumSTATURL interface
|
---|
44 | */
|
---|
45 | [
|
---|
46 | object,
|
---|
47 | uuid(3c374a42-bae4-11cf-bf7d-00aa006946ee),
|
---|
48 | pointer_default(unique)
|
---|
49 | ]
|
---|
50 | interface IEnumSTATURL : IUnknown
|
---|
51 | {
|
---|
52 | typedef [unique] IEnumSTATURL *LPENUMSTATURL;
|
---|
53 |
|
---|
54 | typedef struct _STATURL
|
---|
55 | {
|
---|
56 | DWORD cbSize;
|
---|
57 | LPWSTR pwcsUrl;
|
---|
58 | LPWSTR pwcsTitle;
|
---|
59 | FILETIME ftLastVisited;
|
---|
60 | FILETIME ftLastUpdated;
|
---|
61 | FILETIME ftExpires;
|
---|
62 | DWORD dwFlags;
|
---|
63 | } STATURL, *LPSTATURL;
|
---|
64 |
|
---|
65 | HRESULT Next(
|
---|
66 | [in] ULONG celt,
|
---|
67 | [in, out] LPSTATURL rgelt,
|
---|
68 | [in, out] ULONG *pceltFetched);
|
---|
69 |
|
---|
70 | HRESULT Skip([in] ULONG celt);
|
---|
71 | HRESULT Reset();
|
---|
72 | HRESULT Clone([out] IEnumSTATURL **ppenum);
|
---|
73 |
|
---|
74 | HRESULT SetFilter(
|
---|
75 | [in] LPCOLESTR poszFilter,
|
---|
76 | [in] DWORD dwFlags);
|
---|
77 | }
|
---|
78 |
|
---|
79 | /*****************************************************************************
|
---|
80 | * IUrlHistoryStg interface
|
---|
81 | */
|
---|
82 | [
|
---|
83 | object,
|
---|
84 | uuid(3c374a41-bae4-11cf-bf7d-00aa006946ee),
|
---|
85 | pointer_default(unique)
|
---|
86 | ]
|
---|
87 | interface IUrlHistoryStg : IUnknown
|
---|
88 | {
|
---|
89 | typedef [unique] IUrlHistoryStg *LPURLHISTORYSTG;
|
---|
90 |
|
---|
91 | HRESULT AddUrl(
|
---|
92 | [in] LPCOLESTR pocsUrl,
|
---|
93 | [in, unique] LPCOLESTR pocsTitle,
|
---|
94 | [in] DWORD dwFlags);
|
---|
95 |
|
---|
96 | HRESULT DeleteUrl(
|
---|
97 | [in] LPCOLESTR pocsUrl,
|
---|
98 | [in] DWORD dwFlags);
|
---|
99 |
|
---|
100 | HRESULT QueryUrl(
|
---|
101 | [in] LPCOLESTR pocsUrl,
|
---|
102 | [in] DWORD dwFlags,
|
---|
103 | [in, out, unique] LPSTATURL lpSTATURL);
|
---|
104 |
|
---|
105 | HRESULT BindToObject(
|
---|
106 | [in] LPCOLESTR pocsUrl,
|
---|
107 | [in] REFIID riid,
|
---|
108 | [out, iid_is(riid)] void **ppvOut);
|
---|
109 |
|
---|
110 | HRESULT EnumUrls(
|
---|
111 | [out] IEnumSTATURL **ppEnum);
|
---|
112 | }
|
---|
113 |
|
---|
114 | /*****************************************************************************
|
---|
115 | * IUrlHistoryStg2 interface
|
---|
116 | */
|
---|
117 | [
|
---|
118 | object,
|
---|
119 | uuid(afa0dc11-c313-11d0-831a-00c04fd5ae38),
|
---|
120 | pointer_default(unique)
|
---|
121 | ]
|
---|
122 | interface IUrlHistoryStg2 : IUrlHistoryStg
|
---|
123 | {
|
---|
124 | typedef [unique] IUrlHistoryStg2 *LPURLHISTORYSTG2;
|
---|
125 |
|
---|
126 | HRESULT AddUrlAndNotify(
|
---|
127 | [in] LPCOLESTR pocsUrl,
|
---|
128 | [in,unique] LPCOLESTR pocsTitle,
|
---|
129 | [in] DWORD dwFlags,
|
---|
130 | [in] BOOL fWriteHistory,
|
---|
131 | [in] IOleCommandTarget *poctNotify,
|
---|
132 | [in, unique] IUnknown *punkISFolder);
|
---|
133 |
|
---|
134 | HRESULT ClearHistory();
|
---|
135 | }
|
---|
136 |
|
---|
137 | /*****************************************************************************
|
---|
138 | * IUrlHistoryNotify interface
|
---|
139 | */
|
---|
140 | [
|
---|
141 | object,
|
---|
142 | uuid(bc40bec1-c493-11d0-831b-00C04fd5ae38),
|
---|
143 | pointer_default(unique)
|
---|
144 | ]
|
---|
145 | interface IUrlHistoryNotify : IOleCommandTarget
|
---|
146 | {
|
---|
147 | typedef [unique] IUrlHistoryNotify *LPURLHISTORYNOTIFY;
|
---|
148 | }
|
---|