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