mshtml: COM cleanup for the IHTMLDOMNode iface.
[wine] / dlls / shdocvw / ie.c
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 #include "wine/debug.h"
20 #include "shdocvw.h"
21
22 WINE_DEFAULT_DEBUG_CHANNEL(shdocvw);
23
24 static inline InternetExplorer *impl_from_IWebBrowser2(IWebBrowser2 *iface)
25 {
26     return CONTAINING_RECORD(iface, InternetExplorer, IWebBrowser2_iface);
27 }
28
29 static HRESULT WINAPI InternetExplorer_QueryInterface(IWebBrowser2 *iface, REFIID riid, LPVOID *ppv)
30 {
31     InternetExplorer *This = impl_from_IWebBrowser2(iface);
32
33     *ppv = NULL;
34
35     if(IsEqualGUID(&IID_IUnknown, riid)) {
36         TRACE("(%p)->(IID_IUnknown %p)\n", This, ppv);
37         *ppv = &This->IWebBrowser2_iface;
38     }else if(IsEqualGUID(&IID_IDispatch, riid)) {
39         TRACE("(%p)->(IID_IDispatch %p)\n", This, ppv);
40         *ppv = &This->IWebBrowser2_iface;
41     }else if(IsEqualGUID(&IID_IWebBrowser, riid)) {
42         TRACE("(%p)->(IID_IWebBrowser %p)\n", This, ppv);
43         *ppv = &This->IWebBrowser2_iface;
44     }else if(IsEqualGUID(&IID_IWebBrowserApp, riid)) {
45         TRACE("(%p)->(IID_IWebBrowserApp %p)\n", This, ppv);
46         *ppv = &This->IWebBrowser2_iface;
47     }else if(IsEqualGUID(&IID_IWebBrowser2, riid)) {
48         TRACE("(%p)->(IID_IWebBrowser2 %p)\n", This, ppv);
49         *ppv = &This->IWebBrowser2_iface;
50     }else if(IsEqualGUID(&IID_IConnectionPointContainer, riid)) {
51         TRACE("(%p)->(IID_IConnectionPointContainer %p)\n", This, ppv);
52         *ppv = &This->doc_host.cps.IConnectionPointContainer_iface;
53     }else if(HlinkFrame_QI(&This->hlink_frame, riid, ppv)) {
54         return S_OK;
55     }
56
57     if(*ppv) {
58         IUnknown_AddRef((IUnknown*)*ppv);
59         return S_OK;
60     }
61
62     WARN("(%p)->(%s %p) interface not supported\n", This, debugstr_guid(riid), ppv);
63     return E_NOINTERFACE;
64 }
65
66 static ULONG WINAPI InternetExplorer_AddRef(IWebBrowser2 *iface)
67 {
68     InternetExplorer *This = impl_from_IWebBrowser2(iface);
69     LONG ref = InterlockedIncrement(&This->ref);
70     TRACE("(%p) ref=%d\n", This, ref);
71     return ref;
72 }
73
74 static ULONG WINAPI InternetExplorer_Release(IWebBrowser2 *iface)
75 {
76     InternetExplorer *This = impl_from_IWebBrowser2(iface);
77     LONG ref = InterlockedDecrement(&This->ref);
78
79     TRACE("(%p) ref=%d\n", This, ref);
80
81     if(!ref) {
82         DocHost_Release(&This->doc_host);
83         heap_free(This);
84     }
85
86     return ref;
87 }
88
89 static HRESULT WINAPI InternetExplorer_GetTypeInfoCount(IWebBrowser2 *iface, UINT *pctinfo)
90 {
91     InternetExplorer *This = impl_from_IWebBrowser2(iface);
92     FIXME("(%p)->(%p)\n", This, pctinfo);
93     return E_NOTIMPL;
94 }
95
96 static HRESULT WINAPI InternetExplorer_GetTypeInfo(IWebBrowser2 *iface, UINT iTInfo, LCID lcid,
97                                      LPTYPEINFO *ppTInfo)
98 {
99     InternetExplorer *This = impl_from_IWebBrowser2(iface);
100     FIXME("(%p)->(%d %d %p)\n", This, iTInfo, lcid, ppTInfo);
101     return E_NOTIMPL;
102 }
103
104 static HRESULT WINAPI InternetExplorer_GetIDsOfNames(IWebBrowser2 *iface, REFIID riid,
105                                        LPOLESTR *rgszNames, UINT cNames,
106                                        LCID lcid, DISPID *rgDispId)
107 {
108     InternetExplorer *This = impl_from_IWebBrowser2(iface);
109     FIXME("(%p)->(%s %p %d %d %p)\n", This, debugstr_guid(riid), rgszNames, cNames,
110             lcid, rgDispId);
111     return E_NOTIMPL;
112 }
113
114 static HRESULT WINAPI InternetExplorer_Invoke(IWebBrowser2 *iface, DISPID dispIdMember,
115                                 REFIID riid, LCID lcid, WORD wFlags,
116                                 DISPPARAMS *pDispParams, VARIANT *pVarResult,
117                                 EXCEPINFO *pExepInfo, UINT *puArgErr)
118 {
119     InternetExplorer *This = impl_from_IWebBrowser2(iface);
120     FIXME("(%p)->(%d %s %d %08x %p %p %p %p)\n", This, dispIdMember, debugstr_guid(riid),
121             lcid, wFlags, pDispParams, pVarResult, pExepInfo, puArgErr);
122     return E_NOTIMPL;
123 }
124
125 static HRESULT WINAPI InternetExplorer_GoBack(IWebBrowser2 *iface)
126 {
127     InternetExplorer *This = impl_from_IWebBrowser2(iface);
128     FIXME("(%p)\n", This);
129     return E_NOTIMPL;
130 }
131
132 static HRESULT WINAPI InternetExplorer_GoForward(IWebBrowser2 *iface)
133 {
134     InternetExplorer *This = impl_from_IWebBrowser2(iface);
135     FIXME("(%p)\n", This);
136     return E_NOTIMPL;
137 }
138
139 static HRESULT WINAPI InternetExplorer_GoHome(IWebBrowser2 *iface)
140 {
141     InternetExplorer *This = impl_from_IWebBrowser2(iface);
142     TRACE("(%p)\n", This);
143     return go_home(&This->doc_host);
144 }
145
146 static HRESULT WINAPI InternetExplorer_GoSearch(IWebBrowser2 *iface)
147 {
148     InternetExplorer *This = impl_from_IWebBrowser2(iface);
149     FIXME("(%p)\n", This);
150     return E_NOTIMPL;
151 }
152
153 static HRESULT WINAPI InternetExplorer_Navigate(IWebBrowser2 *iface, BSTR szUrl,
154                                   VARIANT *Flags, VARIANT *TargetFrameName,
155                                   VARIANT *PostData, VARIANT *Headers)
156 {
157     InternetExplorer *This = impl_from_IWebBrowser2(iface);
158
159     TRACE("(%p)->(%s %p %p %p %p)\n", This, debugstr_w(szUrl), Flags, TargetFrameName,
160           PostData, Headers);
161
162     return navigate_url(&This->doc_host, szUrl, Flags, TargetFrameName, PostData, Headers);
163 }
164
165 static HRESULT WINAPI InternetExplorer_Refresh(IWebBrowser2 *iface)
166 {
167     InternetExplorer *This = impl_from_IWebBrowser2(iface);
168     FIXME("(%p)\n", This);
169     return E_NOTIMPL;
170 }
171
172 static HRESULT WINAPI InternetExplorer_Refresh2(IWebBrowser2 *iface, VARIANT *Level)
173 {
174     InternetExplorer *This = impl_from_IWebBrowser2(iface);
175     FIXME("(%p)->(%p)\n", This, Level);
176     return E_NOTIMPL;
177 }
178
179 static HRESULT WINAPI InternetExplorer_Stop(IWebBrowser2 *iface)
180 {
181     InternetExplorer *This = impl_from_IWebBrowser2(iface);
182     FIXME("(%p)\n", This);
183     return E_NOTIMPL;
184 }
185
186 static HRESULT WINAPI InternetExplorer_get_Application(IWebBrowser2 *iface, IDispatch **ppDisp)
187 {
188     InternetExplorer *This = impl_from_IWebBrowser2(iface);
189     FIXME("(%p)->(%p)\n", This, ppDisp);
190     return E_NOTIMPL;
191 }
192
193 static HRESULT WINAPI InternetExplorer_get_Parent(IWebBrowser2 *iface, IDispatch **ppDisp)
194 {
195     InternetExplorer *This = impl_from_IWebBrowser2(iface);
196     FIXME("(%p)->(%p)\n", This, ppDisp);
197     return E_NOTIMPL;
198 }
199
200 static HRESULT WINAPI InternetExplorer_get_Container(IWebBrowser2 *iface, IDispatch **ppDisp)
201 {
202     InternetExplorer *This = impl_from_IWebBrowser2(iface);
203     FIXME("(%p)->(%p)\n", This, ppDisp);
204     return E_NOTIMPL;
205 }
206
207 static HRESULT WINAPI InternetExplorer_get_Document(IWebBrowser2 *iface, IDispatch **ppDisp)
208 {
209     InternetExplorer *This = impl_from_IWebBrowser2(iface);
210     FIXME("(%p)->(%p)\n", This, ppDisp);
211     return E_NOTIMPL;
212 }
213
214 static HRESULT WINAPI InternetExplorer_get_TopLevelContainer(IWebBrowser2 *iface, VARIANT_BOOL *pBool)
215 {
216     InternetExplorer *This = impl_from_IWebBrowser2(iface);
217     FIXME("(%p)->(%p)\n", This, pBool);
218     return E_NOTIMPL;
219 }
220
221 static HRESULT WINAPI InternetExplorer_get_Type(IWebBrowser2 *iface, BSTR *Type)
222 {
223     InternetExplorer *This = impl_from_IWebBrowser2(iface);
224     FIXME("(%p)->(%p)\n", This, Type);
225     return E_NOTIMPL;
226 }
227
228 static HRESULT WINAPI InternetExplorer_get_Left(IWebBrowser2 *iface, LONG *pl)
229 {
230     InternetExplorer *This = impl_from_IWebBrowser2(iface);
231     FIXME("(%p)->(%p)\n", This, pl);
232     return E_NOTIMPL;
233 }
234
235 static HRESULT WINAPI InternetExplorer_put_Left(IWebBrowser2 *iface, LONG Left)
236 {
237     InternetExplorer *This = impl_from_IWebBrowser2(iface);
238     FIXME("(%p)->(%d)\n", This, Left);
239     return E_NOTIMPL;
240 }
241
242 static HRESULT WINAPI InternetExplorer_get_Top(IWebBrowser2 *iface, LONG *pl)
243 {
244     InternetExplorer *This = impl_from_IWebBrowser2(iface);
245     FIXME("(%p)->(%p)\n", This, pl);
246     return E_NOTIMPL;
247 }
248
249 static HRESULT WINAPI InternetExplorer_put_Top(IWebBrowser2 *iface, LONG Top)
250 {
251     InternetExplorer *This = impl_from_IWebBrowser2(iface);
252     FIXME("(%p)->(%d)\n", This, Top);
253     return E_NOTIMPL;
254 }
255
256 static HRESULT WINAPI InternetExplorer_get_Width(IWebBrowser2 *iface, LONG *pl)
257 {
258     InternetExplorer *This = impl_from_IWebBrowser2(iface);
259     FIXME("(%p)->(%p)\n", This, pl);
260     return E_NOTIMPL;
261 }
262
263 static HRESULT WINAPI InternetExplorer_put_Width(IWebBrowser2 *iface, LONG Width)
264 {
265     InternetExplorer *This = impl_from_IWebBrowser2(iface);
266     FIXME("(%p)->(%d)\n", This, Width);
267     return E_NOTIMPL;
268 }
269
270 static HRESULT WINAPI InternetExplorer_get_Height(IWebBrowser2 *iface, LONG *pl)
271 {
272     InternetExplorer *This = impl_from_IWebBrowser2(iface);
273     FIXME("(%p)->(%p)\n", This, pl);
274     return E_NOTIMPL;
275 }
276
277 static HRESULT WINAPI InternetExplorer_put_Height(IWebBrowser2 *iface, LONG Height)
278 {
279     InternetExplorer *This = impl_from_IWebBrowser2(iface);
280     FIXME("(%p)->(%d)\n", This, Height);
281     return E_NOTIMPL;
282 }
283
284 static HRESULT WINAPI InternetExplorer_get_LocationName(IWebBrowser2 *iface, BSTR *LocationName)
285 {
286     InternetExplorer *This = impl_from_IWebBrowser2(iface);
287     FIXME("(%p)->(%p)\n", This, LocationName);
288     return E_NOTIMPL;
289 }
290
291 static HRESULT WINAPI InternetExplorer_get_LocationURL(IWebBrowser2 *iface, BSTR *LocationURL)
292 {
293     InternetExplorer *This = impl_from_IWebBrowser2(iface);
294
295     TRACE("(%p)->(%p)\n", This, LocationURL);
296
297     return get_location_url(&This->doc_host, LocationURL);
298 }
299
300 static HRESULT WINAPI InternetExplorer_get_Busy(IWebBrowser2 *iface, VARIANT_BOOL *pBool)
301 {
302     InternetExplorer *This = impl_from_IWebBrowser2(iface);
303     FIXME("(%p)->(%p)\n", This, pBool);
304     return E_NOTIMPL;
305 }
306
307 static HRESULT WINAPI InternetExplorer_Quit(IWebBrowser2 *iface)
308 {
309     InternetExplorer *This = impl_from_IWebBrowser2(iface);
310     FIXME("(%p)\n", This);
311     return E_NOTIMPL;
312 }
313
314 static HRESULT WINAPI InternetExplorer_ClientToWindow(IWebBrowser2 *iface, int *pcx, int *pcy)
315 {
316     InternetExplorer *This = impl_from_IWebBrowser2(iface);
317     FIXME("(%p)->(%p %p)\n", This, pcx, pcy);
318     return E_NOTIMPL;
319 }
320
321 static HRESULT WINAPI InternetExplorer_PutProperty(IWebBrowser2 *iface, BSTR szProperty, VARIANT vtValue)
322 {
323     InternetExplorer *This = impl_from_IWebBrowser2(iface);
324     FIXME("(%p)->(%s)\n", This, debugstr_w(szProperty));
325     return E_NOTIMPL;
326 }
327
328 static HRESULT WINAPI InternetExplorer_GetProperty(IWebBrowser2 *iface, BSTR szProperty, VARIANT *pvtValue)
329 {
330     InternetExplorer *This = impl_from_IWebBrowser2(iface);
331     FIXME("(%p)->(%s %p)\n", This, debugstr_w(szProperty), pvtValue);
332     return E_NOTIMPL;
333 }
334
335 static HRESULT WINAPI InternetExplorer_get_Name(IWebBrowser2 *iface, BSTR *Name)
336 {
337     InternetExplorer *This = impl_from_IWebBrowser2(iface);
338     FIXME("(%p)->(%p)\n", This, Name);
339     return E_NOTIMPL;
340 }
341
342 static HRESULT WINAPI InternetExplorer_get_HWND(IWebBrowser2 *iface, LONG *pHWND)
343 {
344     InternetExplorer *This = impl_from_IWebBrowser2(iface);
345     FIXME("(%p)->(%p)\n", This, pHWND);
346     return E_NOTIMPL;
347 }
348
349 static HRESULT WINAPI InternetExplorer_get_FullName(IWebBrowser2 *iface, BSTR *FullName)
350 {
351     InternetExplorer *This = impl_from_IWebBrowser2(iface);
352     FIXME("(%p)->(%p)\n", This, FullName);
353     return E_NOTIMPL;
354 }
355
356 static HRESULT WINAPI InternetExplorer_get_Path(IWebBrowser2 *iface, BSTR *Path)
357 {
358     InternetExplorer *This = impl_from_IWebBrowser2(iface);
359     FIXME("(%p)->(%p)\n", This, Path);
360     return E_NOTIMPL;
361 }
362
363 static HRESULT WINAPI InternetExplorer_get_Visible(IWebBrowser2 *iface, VARIANT_BOOL *pBool)
364 {
365     InternetExplorer *This = impl_from_IWebBrowser2(iface);
366     FIXME("(%p)->(%p)\n", This, pBool);
367     return E_NOTIMPL;
368 }
369
370 static HRESULT WINAPI InternetExplorer_put_Visible(IWebBrowser2 *iface, VARIANT_BOOL Value)
371 {
372     InternetExplorer *This = impl_from_IWebBrowser2(iface);
373     TRACE("(%p)->(%x)\n", This, Value);
374
375     ShowWindow(This->frame_hwnd, Value ? SW_SHOW : SW_HIDE);
376
377     return S_OK;
378 }
379
380 static HRESULT WINAPI InternetExplorer_get_StatusBar(IWebBrowser2 *iface, VARIANT_BOOL *pBool)
381 {
382     InternetExplorer *This = impl_from_IWebBrowser2(iface);
383     FIXME("(%p)->(%p)\n", This, pBool);
384     return E_NOTIMPL;
385 }
386
387 static HRESULT WINAPI InternetExplorer_put_StatusBar(IWebBrowser2 *iface, VARIANT_BOOL Value)
388 {
389     InternetExplorer *This = impl_from_IWebBrowser2(iface);
390     FIXME("(%p)->(%x)\n", This, Value);
391     return E_NOTIMPL;
392 }
393
394 static HRESULT WINAPI InternetExplorer_get_StatusText(IWebBrowser2 *iface, BSTR *StatusText)
395 {
396     InternetExplorer *This = impl_from_IWebBrowser2(iface);
397     FIXME("(%p)->(%p)\n", This, StatusText);
398     return E_NOTIMPL;
399 }
400
401 static HRESULT WINAPI InternetExplorer_put_StatusText(IWebBrowser2 *iface, BSTR StatusText)
402 {
403     InternetExplorer *This = impl_from_IWebBrowser2(iface);
404
405     TRACE("(%p)->(%s)\n", This, debugstr_w(StatusText));
406
407     return update_ie_statustext(This, StatusText);
408 }
409
410 static HRESULT WINAPI InternetExplorer_get_ToolBar(IWebBrowser2 *iface, int *Value)
411 {
412     InternetExplorer *This = impl_from_IWebBrowser2(iface);
413     FIXME("(%p)->(%p)\n", This, Value);
414     return E_NOTIMPL;
415 }
416
417 static HRESULT WINAPI InternetExplorer_put_ToolBar(IWebBrowser2 *iface, int Value)
418 {
419     InternetExplorer *This = impl_from_IWebBrowser2(iface);
420     FIXME("(%p)->(%d)\n", This, Value);
421     return E_NOTIMPL;
422 }
423
424 static HRESULT WINAPI InternetExplorer_get_MenuBar(IWebBrowser2 *iface, VARIANT_BOOL *Value)
425 {
426     InternetExplorer *This = impl_from_IWebBrowser2(iface);
427     FIXME("(%p)->(%p)\n", This, Value);
428     return E_NOTIMPL;
429 }
430
431 static HRESULT WINAPI InternetExplorer_put_MenuBar(IWebBrowser2 *iface, VARIANT_BOOL Value)
432 {
433     InternetExplorer *This = impl_from_IWebBrowser2(iface);
434     HMENU menu = NULL;
435
436     TRACE("(%p)->(%x)\n", This, Value);
437
438     if(Value)
439         menu = This->menu;
440
441     if(!SetMenu(This->frame_hwnd, menu))
442         return HRESULT_FROM_WIN32(GetLastError());
443
444     return S_OK;
445 }
446
447 static HRESULT WINAPI InternetExplorer_get_FullScreen(IWebBrowser2 *iface, VARIANT_BOOL *pbFullScreen)
448 {
449     InternetExplorer *This = impl_from_IWebBrowser2(iface);
450     FIXME("(%p)->(%p)\n", This, pbFullScreen);
451     return E_NOTIMPL;
452 }
453
454 static HRESULT WINAPI InternetExplorer_put_FullScreen(IWebBrowser2 *iface, VARIANT_BOOL bFullScreen)
455 {
456     InternetExplorer *This = impl_from_IWebBrowser2(iface);
457     FIXME("(%p)->(%x)\n", This, bFullScreen);
458     return E_NOTIMPL;
459 }
460
461 static HRESULT WINAPI InternetExplorer_Navigate2(IWebBrowser2 *iface, VARIANT *URL, VARIANT *Flags,
462         VARIANT *TargetFrameName, VARIANT *PostData, VARIANT *Headers)
463 {
464     InternetExplorer *This = impl_from_IWebBrowser2(iface);
465
466     TRACE("(%p)->(%p %p %p %p %p)\n", This, URL, Flags, TargetFrameName, PostData, Headers);
467
468     if(!URL)
469         return S_OK;
470
471     if(V_VT(URL) != VT_BSTR) {
472         FIXME("Unsupported V_VT(URL) %d\n", V_VT(URL));
473         return E_INVALIDARG;
474     }
475
476     return navigate_url(&This->doc_host, V_BSTR(URL), Flags, TargetFrameName, PostData, Headers);
477 }
478
479 static HRESULT WINAPI InternetExplorer_QueryStatusWB(IWebBrowser2 *iface, OLECMDID cmdID, OLECMDF *pcmdf)
480 {
481     InternetExplorer *This = impl_from_IWebBrowser2(iface);
482     FIXME("(%p)->(%d %p)\n", This, cmdID, pcmdf);
483     return E_NOTIMPL;
484 }
485
486 static HRESULT WINAPI InternetExplorer_ExecWB(IWebBrowser2 *iface, OLECMDID cmdID,
487         OLECMDEXECOPT cmdexecopt, VARIANT *pvaIn, VARIANT *pvaOut)
488 {
489     InternetExplorer *This = impl_from_IWebBrowser2(iface);
490     FIXME("(%p)->(%d %d %p %p)\n", This, cmdID, cmdexecopt, pvaIn, pvaOut);
491     return E_NOTIMPL;
492 }
493
494 static HRESULT WINAPI InternetExplorer_ShowBrowserBar(IWebBrowser2 *iface, VARIANT *pvaClsid,
495         VARIANT *pvarShow, VARIANT *pvarSize)
496 {
497     InternetExplorer *This = impl_from_IWebBrowser2(iface);
498     FIXME("(%p)->(%p %p %p)\n", This, pvaClsid, pvarShow, pvarSize);
499     return E_NOTIMPL;
500 }
501
502 static HRESULT WINAPI InternetExplorer_get_ReadyState(IWebBrowser2 *iface, READYSTATE *lpReadyState)
503 {
504     InternetExplorer *This = impl_from_IWebBrowser2(iface);
505     FIXME("(%p)->(%p)\n", This, lpReadyState);
506     return E_NOTIMPL;
507 }
508
509 static HRESULT WINAPI InternetExplorer_get_Offline(IWebBrowser2 *iface, VARIANT_BOOL *pbOffline)
510 {
511     InternetExplorer *This = impl_from_IWebBrowser2(iface);
512     FIXME("(%p)->(%p)\n", This, pbOffline);
513     return E_NOTIMPL;
514 }
515
516 static HRESULT WINAPI InternetExplorer_put_Offline(IWebBrowser2 *iface, VARIANT_BOOL bOffline)
517 {
518     InternetExplorer *This = impl_from_IWebBrowser2(iface);
519     FIXME("(%p)->(%x)\n", This, bOffline);
520     return E_NOTIMPL;
521 }
522
523 static HRESULT WINAPI InternetExplorer_get_Silent(IWebBrowser2 *iface, VARIANT_BOOL *pbSilent)
524 {
525     InternetExplorer *This = impl_from_IWebBrowser2(iface);
526     FIXME("(%p)->(%p)\n", This, pbSilent);
527     return E_NOTIMPL;
528 }
529
530 static HRESULT WINAPI InternetExplorer_put_Silent(IWebBrowser2 *iface, VARIANT_BOOL bSilent)
531 {
532     InternetExplorer *This = impl_from_IWebBrowser2(iface);
533     FIXME("(%p)->(%x)\n", This, bSilent);
534     return E_NOTIMPL;
535 }
536
537 static HRESULT WINAPI InternetExplorer_get_RegisterAsBrowser(IWebBrowser2 *iface,
538         VARIANT_BOOL *pbRegister)
539 {
540     InternetExplorer *This = impl_from_IWebBrowser2(iface);
541     FIXME("(%p)->(%p)\n", This, pbRegister);
542     return E_NOTIMPL;
543 }
544
545 static HRESULT WINAPI InternetExplorer_put_RegisterAsBrowser(IWebBrowser2 *iface,
546         VARIANT_BOOL bRegister)
547 {
548     InternetExplorer *This = impl_from_IWebBrowser2(iface);
549     FIXME("(%p)->(%x)\n", This, bRegister);
550     return E_NOTIMPL;
551 }
552
553 static HRESULT WINAPI InternetExplorer_get_RegisterAsDropTarget(IWebBrowser2 *iface,
554         VARIANT_BOOL *pbRegister)
555 {
556     InternetExplorer *This = impl_from_IWebBrowser2(iface);
557     FIXME("(%p)->(%p)\n", This, pbRegister);
558     return E_NOTIMPL;
559 }
560
561 static HRESULT WINAPI InternetExplorer_put_RegisterAsDropTarget(IWebBrowser2 *iface,
562         VARIANT_BOOL bRegister)
563 {
564     InternetExplorer *This = impl_from_IWebBrowser2(iface);
565     FIXME("(%p)->(%x)\n", This, bRegister);
566     return E_NOTIMPL;
567 }
568
569 static HRESULT WINAPI InternetExplorer_get_TheaterMode(IWebBrowser2 *iface, VARIANT_BOOL *pbRegister)
570 {
571     InternetExplorer *This = impl_from_IWebBrowser2(iface);
572     FIXME("(%p)->(%p)\n", This, pbRegister);
573     return E_NOTIMPL;
574 }
575
576 static HRESULT WINAPI InternetExplorer_put_TheaterMode(IWebBrowser2 *iface, VARIANT_BOOL bRegister)
577 {
578     InternetExplorer *This = impl_from_IWebBrowser2(iface);
579     FIXME("(%p)->(%x)\n", This, bRegister);
580     return E_NOTIMPL;
581 }
582
583 static HRESULT WINAPI InternetExplorer_get_AddressBar(IWebBrowser2 *iface, VARIANT_BOOL *Value)
584 {
585     InternetExplorer *This = impl_from_IWebBrowser2(iface);
586     FIXME("(%p)->(%p)\n", This, Value);
587     return E_NOTIMPL;
588 }
589
590 static HRESULT WINAPI InternetExplorer_put_AddressBar(IWebBrowser2 *iface, VARIANT_BOOL Value)
591 {
592     InternetExplorer *This = impl_from_IWebBrowser2(iface);
593     FIXME("(%p)->(%x)\n", This, Value);
594     return E_NOTIMPL;
595 }
596
597 static HRESULT WINAPI InternetExplorer_get_Resizable(IWebBrowser2 *iface, VARIANT_BOOL *Value)
598 {
599     InternetExplorer *This = impl_from_IWebBrowser2(iface);
600     FIXME("(%p)->(%p)\n", This, Value);
601     return E_NOTIMPL;
602 }
603
604 static HRESULT WINAPI InternetExplorer_put_Resizable(IWebBrowser2 *iface, VARIANT_BOOL Value)
605 {
606     InternetExplorer *This = impl_from_IWebBrowser2(iface);
607     FIXME("(%p)->(%x)\n", This, Value);
608     return E_NOTIMPL;
609 }
610
611 #undef impl_from_IWebBrowser2
612
613 static const IWebBrowser2Vtbl InternetExplorerVtbl =
614 {
615     InternetExplorer_QueryInterface,
616     InternetExplorer_AddRef,
617     InternetExplorer_Release,
618     InternetExplorer_GetTypeInfoCount,
619     InternetExplorer_GetTypeInfo,
620     InternetExplorer_GetIDsOfNames,
621     InternetExplorer_Invoke,
622     InternetExplorer_GoBack,
623     InternetExplorer_GoForward,
624     InternetExplorer_GoHome,
625     InternetExplorer_GoSearch,
626     InternetExplorer_Navigate,
627     InternetExplorer_Refresh,
628     InternetExplorer_Refresh2,
629     InternetExplorer_Stop,
630     InternetExplorer_get_Application,
631     InternetExplorer_get_Parent,
632     InternetExplorer_get_Container,
633     InternetExplorer_get_Document,
634     InternetExplorer_get_TopLevelContainer,
635     InternetExplorer_get_Type,
636     InternetExplorer_get_Left,
637     InternetExplorer_put_Left,
638     InternetExplorer_get_Top,
639     InternetExplorer_put_Top,
640     InternetExplorer_get_Width,
641     InternetExplorer_put_Width,
642     InternetExplorer_get_Height,
643     InternetExplorer_put_Height,
644     InternetExplorer_get_LocationName,
645     InternetExplorer_get_LocationURL,
646     InternetExplorer_get_Busy,
647     InternetExplorer_Quit,
648     InternetExplorer_ClientToWindow,
649     InternetExplorer_PutProperty,
650     InternetExplorer_GetProperty,
651     InternetExplorer_get_Name,
652     InternetExplorer_get_HWND,
653     InternetExplorer_get_FullName,
654     InternetExplorer_get_Path,
655     InternetExplorer_get_Visible,
656     InternetExplorer_put_Visible,
657     InternetExplorer_get_StatusBar,
658     InternetExplorer_put_StatusBar,
659     InternetExplorer_get_StatusText,
660     InternetExplorer_put_StatusText,
661     InternetExplorer_get_ToolBar,
662     InternetExplorer_put_ToolBar,
663     InternetExplorer_get_MenuBar,
664     InternetExplorer_put_MenuBar,
665     InternetExplorer_get_FullScreen,
666     InternetExplorer_put_FullScreen,
667     InternetExplorer_Navigate2,
668     InternetExplorer_QueryStatusWB,
669     InternetExplorer_ExecWB,
670     InternetExplorer_ShowBrowserBar,
671     InternetExplorer_get_ReadyState,
672     InternetExplorer_get_Offline,
673     InternetExplorer_put_Offline,
674     InternetExplorer_get_Silent,
675     InternetExplorer_put_Silent,
676     InternetExplorer_get_RegisterAsBrowser,
677     InternetExplorer_put_RegisterAsBrowser,
678     InternetExplorer_get_RegisterAsDropTarget,
679     InternetExplorer_put_RegisterAsDropTarget,
680     InternetExplorer_get_TheaterMode,
681     InternetExplorer_put_TheaterMode,
682     InternetExplorer_get_AddressBar,
683     InternetExplorer_put_AddressBar,
684     InternetExplorer_get_Resizable,
685     InternetExplorer_put_Resizable
686 };
687
688 void InternetExplorer_WebBrowser_Init(InternetExplorer *This)
689 {
690     This->IWebBrowser2_iface.lpVtbl = &InternetExplorerVtbl;
691 }