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