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 | * Oracle 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, Oracle 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 |
|
---|
33 | cpp_quote("#define STATURL_QUERYFLAG_ISCACHED 0x010000")
|
---|
34 | cpp_quote("#define STATURL_QUERYFLAG_NOURL 0x020000")
|
---|
35 | cpp_quote("#define STATURL_QUERYFLAG_NOTITLE 0x040000")
|
---|
36 | cpp_quote("#define STATURL_QUERYFLAG_TOPLEVEL 0x080000")
|
---|
37 |
|
---|
38 | cpp_quote("#define STATURLFLAG_ISCACHED 0x0001")
|
---|
39 | cpp_quote("#define STATURLFLAG_ISTOPLEVEL 0x0002")
|
---|
40 |
|
---|
41 | typedef enum _ADDURL_FLAG
|
---|
42 | {
|
---|
43 | ADDURL_FIRST = 0,
|
---|
44 | ADDURL_ADDTOHISTORYANDCACHE = 0,
|
---|
45 | ADDURL_ADDTOCACHE = 1,
|
---|
46 | ADDURL_Max = 0x7fffffff
|
---|
47 | } ADDURL_FLAG;
|
---|
48 |
|
---|
49 | /*****************************************************************************
|
---|
50 | * IEnumSTATURL interface
|
---|
51 | */
|
---|
52 | [
|
---|
53 | object,
|
---|
54 | uuid(3c374a42-bae4-11cf-bf7d-00aa006946ee),
|
---|
55 | pointer_default(unique)
|
---|
56 | ]
|
---|
57 | interface IEnumSTATURL : IUnknown
|
---|
58 | {
|
---|
59 | typedef [unique] IEnumSTATURL *LPENUMSTATURL;
|
---|
60 |
|
---|
61 | typedef struct _STATURL
|
---|
62 | {
|
---|
63 | DWORD cbSize;
|
---|
64 | LPWSTR pwcsUrl;
|
---|
65 | LPWSTR pwcsTitle;
|
---|
66 | FILETIME ftLastVisited;
|
---|
67 | FILETIME ftLastUpdated;
|
---|
68 | FILETIME ftExpires;
|
---|
69 | DWORD dwFlags;
|
---|
70 | } STATURL, *LPSTATURL;
|
---|
71 |
|
---|
72 | HRESULT Next(
|
---|
73 | [in] ULONG celt,
|
---|
74 | [in, out] LPSTATURL rgelt,
|
---|
75 | [in, out] ULONG *pceltFetched);
|
---|
76 |
|
---|
77 | HRESULT Skip([in] ULONG celt);
|
---|
78 | HRESULT Reset();
|
---|
79 | HRESULT Clone([out] IEnumSTATURL **ppenum);
|
---|
80 |
|
---|
81 | HRESULT SetFilter(
|
---|
82 | [in] LPCOLESTR poszFilter,
|
---|
83 | [in] DWORD dwFlags);
|
---|
84 | }
|
---|
85 |
|
---|
86 | /*****************************************************************************
|
---|
87 | * IUrlHistoryStg interface
|
---|
88 | */
|
---|
89 | [
|
---|
90 | object,
|
---|
91 | uuid(3c374a41-bae4-11cf-bf7d-00aa006946ee),
|
---|
92 | pointer_default(unique)
|
---|
93 | ]
|
---|
94 | interface IUrlHistoryStg : IUnknown
|
---|
95 | {
|
---|
96 | typedef [unique] IUrlHistoryStg *LPURLHISTORYSTG;
|
---|
97 |
|
---|
98 | HRESULT AddUrl(
|
---|
99 | [in] LPCOLESTR pocsUrl,
|
---|
100 | [in, unique] LPCOLESTR pocsTitle,
|
---|
101 | [in] DWORD dwFlags);
|
---|
102 |
|
---|
103 | HRESULT DeleteUrl(
|
---|
104 | [in] LPCOLESTR pocsUrl,
|
---|
105 | [in] DWORD dwFlags);
|
---|
106 |
|
---|
107 | HRESULT QueryUrl(
|
---|
108 | [in] LPCOLESTR pocsUrl,
|
---|
109 | [in] DWORD dwFlags,
|
---|
110 | [in, out, unique] LPSTATURL lpSTATURL);
|
---|
111 |
|
---|
112 | HRESULT BindToObject(
|
---|
113 | [in] LPCOLESTR pocsUrl,
|
---|
114 | [in] REFIID riid,
|
---|
115 | [out, iid_is(riid)] void **ppvOut);
|
---|
116 |
|
---|
117 | HRESULT EnumUrls(
|
---|
118 | [out] IEnumSTATURL **ppEnum);
|
---|
119 | }
|
---|
120 |
|
---|
121 | /*****************************************************************************
|
---|
122 | * IUrlHistoryStg2 interface
|
---|
123 | */
|
---|
124 | [
|
---|
125 | object,
|
---|
126 | uuid(afa0dc11-c313-11d0-831a-00c04fd5ae38),
|
---|
127 | pointer_default(unique)
|
---|
128 | ]
|
---|
129 | interface IUrlHistoryStg2 : IUrlHistoryStg
|
---|
130 | {
|
---|
131 | typedef [unique] IUrlHistoryStg2 *LPURLHISTORYSTG2;
|
---|
132 |
|
---|
133 | HRESULT AddUrlAndNotify(
|
---|
134 | [in] LPCOLESTR pocsUrl,
|
---|
135 | [in,unique] LPCOLESTR pocsTitle,
|
---|
136 | [in] DWORD dwFlags,
|
---|
137 | [in] BOOL fWriteHistory,
|
---|
138 | [in] IOleCommandTarget *poctNotify,
|
---|
139 | [in, unique] IUnknown *punkISFolder);
|
---|
140 |
|
---|
141 | HRESULT ClearHistory();
|
---|
142 | }
|
---|
143 |
|
---|
144 | /*****************************************************************************
|
---|
145 | * IUrlHistoryNotify interface
|
---|
146 | */
|
---|
147 | [
|
---|
148 | object,
|
---|
149 | uuid(bc40bec1-c493-11d0-831b-00C04fd5ae38),
|
---|
150 | pointer_default(unique)
|
---|
151 | ]
|
---|
152 | interface IUrlHistoryNotify : IOleCommandTarget
|
---|
153 | {
|
---|
154 | typedef [unique] IUrlHistoryNotify *LPURLHISTORYNOTIFY;
|
---|
155 | }
|
---|