shdocvw: Ignore VT_ERROR arguments to WebBrowser_Navigate2.
[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=%ld\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=%ld\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 %ld %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 %ld %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)->(%ld %s %ld %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     FIXME("(%p)->(%s %p %p %p %p)\n", This, debugstr_w(szUrl), Flags, TargetFrameName,
154           PostData, Headers);
155     return E_NOTIMPL;
156 }
157
158 static HRESULT WINAPI InternetExplorer_Refresh(IWebBrowser2 *iface)
159 {
160     InternetExplorer *This = WEBBROWSER_THIS(iface);
161     FIXME("(%p)\n", This);
162     return E_NOTIMPL;
163 }
164
165 static HRESULT WINAPI InternetExplorer_Refresh2(IWebBrowser2 *iface, VARIANT *Level)
166 {
167     InternetExplorer *This = WEBBROWSER_THIS(iface);
168     FIXME("(%p)->(%p)\n", This, Level);
169     return E_NOTIMPL;
170 }
171
172 static HRESULT WINAPI InternetExplorer_Stop(IWebBrowser2 *iface)
173 {
174     InternetExplorer *This = WEBBROWSER_THIS(iface);
175     FIXME("(%p)\n", This);
176     return E_NOTIMPL;
177 }
178
179 static HRESULT WINAPI InternetExplorer_get_Application(IWebBrowser2 *iface, IDispatch **ppDisp)
180 {
181     InternetExplorer *This = WEBBROWSER_THIS(iface);
182     FIXME("(%p)->(%p)\n", This, ppDisp);
183     return E_NOTIMPL;
184 }
185
186 static HRESULT WINAPI InternetExplorer_get_Parent(IWebBrowser2 *iface, IDispatch **ppDisp)
187 {
188     InternetExplorer *This = WEBBROWSER_THIS(iface);
189     FIXME("(%p)->(%p)\n", This, ppDisp);
190     return E_NOTIMPL;
191 }
192
193 static HRESULT WINAPI InternetExplorer_get_Container(IWebBrowser2 *iface, IDispatch **ppDisp)
194 {
195     InternetExplorer *This = WEBBROWSER_THIS(iface);
196     FIXME("(%p)->(%p)\n", This, ppDisp);
197     return E_NOTIMPL;
198 }
199
200 static HRESULT WINAPI InternetExplorer_get_Document(IWebBrowser2 *iface, IDispatch **ppDisp)
201 {
202     InternetExplorer *This = WEBBROWSER_THIS(iface);
203     FIXME("(%p)->(%p)\n", This, ppDisp);
204     return E_NOTIMPL;
205 }
206
207 static HRESULT WINAPI InternetExplorer_get_TopLevelContainer(IWebBrowser2 *iface, VARIANT_BOOL *pBool)
208 {
209     InternetExplorer *This = WEBBROWSER_THIS(iface);
210     FIXME("(%p)->(%p)\n", This, pBool);
211     return E_NOTIMPL;
212 }
213
214 static HRESULT WINAPI InternetExplorer_get_Type(IWebBrowser2 *iface, BSTR *Type)
215 {
216     InternetExplorer *This = WEBBROWSER_THIS(iface);
217     FIXME("(%p)->(%p)\n", This, Type);
218     return E_NOTIMPL;
219 }
220
221 static HRESULT WINAPI InternetExplorer_get_Left(IWebBrowser2 *iface, long *pl)
222 {
223     InternetExplorer *This = WEBBROWSER_THIS(iface);
224     FIXME("(%p)->(%p)\n", This, pl);
225     return E_NOTIMPL;
226 }
227
228 static HRESULT WINAPI InternetExplorer_put_Left(IWebBrowser2 *iface, long Left)
229 {
230     InternetExplorer *This = WEBBROWSER_THIS(iface);
231     FIXME("(%p)->(%ld)\n", This, Left);
232     return E_NOTIMPL;
233 }
234
235 static HRESULT WINAPI InternetExplorer_get_Top(IWebBrowser2 *iface, long *pl)
236 {
237     InternetExplorer *This = WEBBROWSER_THIS(iface);
238     FIXME("(%p)->(%p)\n", This, pl);
239     return E_NOTIMPL;
240 }
241
242 static HRESULT WINAPI InternetExplorer_put_Top(IWebBrowser2 *iface, long Top)
243 {
244     InternetExplorer *This = WEBBROWSER_THIS(iface);
245     FIXME("(%p)->(%ld)\n", This, Top);
246     return E_NOTIMPL;
247 }
248
249 static HRESULT WINAPI InternetExplorer_get_Width(IWebBrowser2 *iface, long *pl)
250 {
251     InternetExplorer *This = WEBBROWSER_THIS(iface);
252     FIXME("(%p)->(%p)\n", This, pl);
253     return E_NOTIMPL;
254 }
255
256 static HRESULT WINAPI InternetExplorer_put_Width(IWebBrowser2 *iface, long Width)
257 {
258     InternetExplorer *This = WEBBROWSER_THIS(iface);
259     FIXME("(%p)->(%ld)\n", This, Width);
260     return E_NOTIMPL;
261 }
262
263 static HRESULT WINAPI InternetExplorer_get_Height(IWebBrowser2 *iface, long *pl)
264 {
265     InternetExplorer *This = WEBBROWSER_THIS(iface);
266     FIXME("(%p)->(%p)\n", This, pl);
267     return E_NOTIMPL;
268 }
269
270 static HRESULT WINAPI InternetExplorer_put_Height(IWebBrowser2 *iface, long Height)
271 {
272     InternetExplorer *This = WEBBROWSER_THIS(iface);
273     FIXME("(%p)->(%ld)\n", This, Height);
274     return E_NOTIMPL;
275 }
276
277 static HRESULT WINAPI InternetExplorer_get_LocationName(IWebBrowser2 *iface, BSTR *LocationName)
278 {
279     InternetExplorer *This = WEBBROWSER_THIS(iface);
280     FIXME("(%p)->(%p)\n", This, LocationName);
281     return E_NOTIMPL;
282 }
283
284 static HRESULT WINAPI InternetExplorer_get_LocationURL(IWebBrowser2 *iface, BSTR *LocationURL)
285 {
286     InternetExplorer *This = WEBBROWSER_THIS(iface);
287     FIXME("(%p)->(%p)\n", This, LocationURL);
288     return E_NOTIMPL;
289 }
290
291 static HRESULT WINAPI InternetExplorer_get_Busy(IWebBrowser2 *iface, VARIANT_BOOL *pBool)
292 {
293     InternetExplorer *This = WEBBROWSER_THIS(iface);
294     FIXME("(%p)->(%p)\n", This, pBool);
295     return E_NOTIMPL;
296 }
297
298 static HRESULT WINAPI InternetExplorer_Quit(IWebBrowser2 *iface)
299 {
300     InternetExplorer *This = WEBBROWSER_THIS(iface);
301     FIXME("(%p)\n", This);
302     return E_NOTIMPL;
303 }
304
305 static HRESULT WINAPI InternetExplorer_ClientToWindow(IWebBrowser2 *iface, int *pcx, int *pcy)
306 {
307     InternetExplorer *This = WEBBROWSER_THIS(iface);
308     FIXME("(%p)->(%p %p)\n", This, pcx, pcy);
309     return E_NOTIMPL;
310 }
311
312 static HRESULT WINAPI InternetExplorer_PutProperty(IWebBrowser2 *iface, BSTR szProperty, VARIANT vtValue)
313 {
314     InternetExplorer *This = WEBBROWSER_THIS(iface);
315     FIXME("(%p)->(%s)\n", This, debugstr_w(szProperty));
316     return E_NOTIMPL;
317 }
318
319 static HRESULT WINAPI InternetExplorer_GetProperty(IWebBrowser2 *iface, BSTR szProperty, VARIANT *pvtValue)
320 {
321     InternetExplorer *This = WEBBROWSER_THIS(iface);
322     FIXME("(%p)->(%s %p)\n", This, debugstr_w(szProperty), pvtValue);
323     return E_NOTIMPL;
324 }
325
326 static HRESULT WINAPI InternetExplorer_get_Name(IWebBrowser2 *iface, BSTR *Name)
327 {
328     InternetExplorer *This = WEBBROWSER_THIS(iface);
329     FIXME("(%p)->(%p)\n", This, Name);
330     return E_NOTIMPL;
331 }
332
333 static HRESULT WINAPI InternetExplorer_get_HWND(IWebBrowser2 *iface, long *pHWND)
334 {
335     InternetExplorer *This = WEBBROWSER_THIS(iface);
336     FIXME("(%p)->(%p)\n", This, pHWND);
337     return E_NOTIMPL;
338 }
339
340 static HRESULT WINAPI InternetExplorer_get_FullName(IWebBrowser2 *iface, BSTR *FullName)
341 {
342     InternetExplorer *This = WEBBROWSER_THIS(iface);
343     FIXME("(%p)->(%p)\n", This, FullName);
344     return E_NOTIMPL;
345 }
346
347 static HRESULT WINAPI InternetExplorer_get_Path(IWebBrowser2 *iface, BSTR *Path)
348 {
349     InternetExplorer *This = WEBBROWSER_THIS(iface);
350     FIXME("(%p)->(%p)\n", This, Path);
351     return E_NOTIMPL;
352 }
353
354 static HRESULT WINAPI InternetExplorer_get_Visible(IWebBrowser2 *iface, VARIANT_BOOL *pBool)
355 {
356     InternetExplorer *This = WEBBROWSER_THIS(iface);
357     FIXME("(%p)->(%p)\n", This, pBool);
358     return E_NOTIMPL;
359 }
360
361 static HRESULT WINAPI InternetExplorer_put_Visible(IWebBrowser2 *iface, VARIANT_BOOL Value)
362 {
363     InternetExplorer *This = WEBBROWSER_THIS(iface);
364     TRACE("(%p)->(%x)\n", This, Value);
365
366     ShowWindow(This->frame_hwnd, Value ? SW_SHOW : SW_HIDE);
367
368     return S_OK;
369 }
370
371 static HRESULT WINAPI InternetExplorer_get_StatusBar(IWebBrowser2 *iface, VARIANT_BOOL *pBool)
372 {
373     InternetExplorer *This = WEBBROWSER_THIS(iface);
374     FIXME("(%p)->(%p)\n", This, pBool);
375     return E_NOTIMPL;
376 }
377
378 static HRESULT WINAPI InternetExplorer_put_StatusBar(IWebBrowser2 *iface, VARIANT_BOOL Value)
379 {
380     InternetExplorer *This = WEBBROWSER_THIS(iface);
381     FIXME("(%p)->(%x)\n", This, Value);
382     return E_NOTIMPL;
383 }
384
385 static HRESULT WINAPI InternetExplorer_get_StatusText(IWebBrowser2 *iface, BSTR *StatusText)
386 {
387     InternetExplorer *This = WEBBROWSER_THIS(iface);
388     FIXME("(%p)->(%p)\n", This, StatusText);
389     return E_NOTIMPL;
390 }
391
392 static HRESULT WINAPI InternetExplorer_put_StatusText(IWebBrowser2 *iface, BSTR StatusText)
393 {
394     InternetExplorer *This = WEBBROWSER_THIS(iface);
395     FIXME("(%p)->(%s)\n", This, debugstr_w(StatusText));
396     return E_NOTIMPL;
397 }
398
399 static HRESULT WINAPI InternetExplorer_get_ToolBar(IWebBrowser2 *iface, int *Value)
400 {
401     InternetExplorer *This = WEBBROWSER_THIS(iface);
402     FIXME("(%p)->(%p)\n", This, Value);
403     return E_NOTIMPL;
404 }
405
406 static HRESULT WINAPI InternetExplorer_put_ToolBar(IWebBrowser2 *iface, int Value)
407 {
408     InternetExplorer *This = WEBBROWSER_THIS(iface);
409     FIXME("(%p)->(%d)\n", This, Value);
410     return E_NOTIMPL;
411 }
412
413 static HRESULT WINAPI InternetExplorer_get_MenuBar(IWebBrowser2 *iface, VARIANT_BOOL *Value)
414 {
415     InternetExplorer *This = WEBBROWSER_THIS(iface);
416     FIXME("(%p)->(%p)\n", This, Value);
417     return E_NOTIMPL;
418 }
419
420 static HRESULT WINAPI InternetExplorer_put_MenuBar(IWebBrowser2 *iface, VARIANT_BOOL Value)
421 {
422     InternetExplorer *This = WEBBROWSER_THIS(iface);
423     FIXME("(%p)->(%x)\n", This, Value);
424     return E_NOTIMPL;
425 }
426
427 static HRESULT WINAPI InternetExplorer_get_FullScreen(IWebBrowser2 *iface, VARIANT_BOOL *pbFullScreen)
428 {
429     InternetExplorer *This = WEBBROWSER_THIS(iface);
430     FIXME("(%p)->(%p)\n", This, pbFullScreen);
431     return E_NOTIMPL;
432 }
433
434 static HRESULT WINAPI InternetExplorer_put_FullScreen(IWebBrowser2 *iface, VARIANT_BOOL bFullScreen)
435 {
436     InternetExplorer *This = WEBBROWSER_THIS(iface);
437     FIXME("(%p)->(%x)\n", This, bFullScreen);
438     return E_NOTIMPL;
439 }
440
441 static HRESULT WINAPI InternetExplorer_Navigate2(IWebBrowser2 *iface, VARIANT *URL, VARIANT *Flags,
442         VARIANT *TargetFrameName, VARIANT *PostData, VARIANT *Headers)
443 {
444     InternetExplorer *This = WEBBROWSER_THIS(iface);
445     PBYTE post_data = NULL;
446     ULONG post_data_len = 0;
447     LPWSTR headers = NULL;
448     HRESULT hres;
449
450     TRACE("(%p)->(%p %p %p %p %p)\n", This, URL, Flags, TargetFrameName, PostData, Headers);
451
452     if((Flags && V_VT(Flags) != VT_EMPTY) 
453        || (TargetFrameName && V_VT(TargetFrameName) != VT_EMPTY))
454         FIXME("Unsupported arguments\n");
455
456     if(!URL)
457         return S_OK;
458
459     if(V_VT(URL) != VT_BSTR)
460         return E_INVALIDARG;
461
462     if(PostData && V_VT(PostData) != VT_EMPTY) {
463         if(V_VT(PostData) != (VT_ARRAY | VT_UI1)
464            || V_ARRAY(PostData)->cDims != 1) {
465             WARN("Invalid PostData\n");
466             return E_INVALIDARG;
467         }
468
469         SafeArrayAccessData(V_ARRAY(PostData), (void**)&post_data);
470         post_data_len = V_ARRAY(PostData)->rgsabound[0].cElements;
471     }
472
473     if(Headers && V_VT(Headers) != VT_EMPTY) {
474         if(V_VT(Headers) != VT_BSTR)
475             return E_INVALIDARG;
476
477         headers = V_BSTR(Headers);
478         TRACE("Headers: %s\n", debugstr_w(headers));
479     }
480
481     hres = navigate_url(&This->doc_host, V_BSTR(URL), post_data, post_data_len, headers);
482
483     if(post_data)
484         SafeArrayUnaccessData(V_ARRAY(PostData));
485
486     return hres;
487 }
488
489 static HRESULT WINAPI InternetExplorer_QueryStatusWB(IWebBrowser2 *iface, OLECMDID cmdID, OLECMDF *pcmdf)
490 {
491     InternetExplorer *This = WEBBROWSER_THIS(iface);
492     FIXME("(%p)->(%d %p)\n", This, cmdID, pcmdf);
493     return E_NOTIMPL;
494 }
495
496 static HRESULT WINAPI InternetExplorer_ExecWB(IWebBrowser2 *iface, OLECMDID cmdID,
497         OLECMDEXECOPT cmdexecopt, VARIANT *pvaIn, VARIANT *pvaOut)
498 {
499     InternetExplorer *This = WEBBROWSER_THIS(iface);
500     FIXME("(%p)->(%d %d %p %p)\n", This, cmdID, cmdexecopt, pvaIn, pvaOut);
501     return E_NOTIMPL;
502 }
503
504 static HRESULT WINAPI InternetExplorer_ShowBrowserBar(IWebBrowser2 *iface, VARIANT *pvaClsid,
505         VARIANT *pvarShow, VARIANT *pvarSize)
506 {
507     InternetExplorer *This = WEBBROWSER_THIS(iface);
508     FIXME("(%p)->(%p %p %p)\n", This, pvaClsid, pvarShow, pvarSize);
509     return E_NOTIMPL;
510 }
511
512 static HRESULT WINAPI InternetExplorer_get_ReadyState(IWebBrowser2 *iface, READYSTATE *lpReadyState)
513 {
514     InternetExplorer *This = WEBBROWSER_THIS(iface);
515     FIXME("(%p)->(%p)\n", This, lpReadyState);
516     return E_NOTIMPL;
517 }
518
519 static HRESULT WINAPI InternetExplorer_get_Offline(IWebBrowser2 *iface, VARIANT_BOOL *pbOffline)
520 {
521     InternetExplorer *This = WEBBROWSER_THIS(iface);
522     FIXME("(%p)->(%p)\n", This, pbOffline);
523     return E_NOTIMPL;
524 }
525
526 static HRESULT WINAPI InternetExplorer_put_Offline(IWebBrowser2 *iface, VARIANT_BOOL bOffline)
527 {
528     InternetExplorer *This = WEBBROWSER_THIS(iface);
529     FIXME("(%p)->(%x)\n", This, bOffline);
530     return E_NOTIMPL;
531 }
532
533 static HRESULT WINAPI InternetExplorer_get_Silent(IWebBrowser2 *iface, VARIANT_BOOL *pbSilent)
534 {
535     InternetExplorer *This = WEBBROWSER_THIS(iface);
536     FIXME("(%p)->(%p)\n", This, pbSilent);
537     return E_NOTIMPL;
538 }
539
540 static HRESULT WINAPI InternetExplorer_put_Silent(IWebBrowser2 *iface, VARIANT_BOOL bSilent)
541 {
542     InternetExplorer *This = WEBBROWSER_THIS(iface);
543     FIXME("(%p)->(%x)\n", This, bSilent);
544     return E_NOTIMPL;
545 }
546
547 static HRESULT WINAPI InternetExplorer_get_RegisterAsBrowser(IWebBrowser2 *iface,
548         VARIANT_BOOL *pbRegister)
549 {
550     InternetExplorer *This = WEBBROWSER_THIS(iface);
551     FIXME("(%p)->(%p)\n", This, pbRegister);
552     return E_NOTIMPL;
553 }
554
555 static HRESULT WINAPI InternetExplorer_put_RegisterAsBrowser(IWebBrowser2 *iface,
556         VARIANT_BOOL bRegister)
557 {
558     InternetExplorer *This = WEBBROWSER_THIS(iface);
559     FIXME("(%p)->(%x)\n", This, bRegister);
560     return E_NOTIMPL;
561 }
562
563 static HRESULT WINAPI InternetExplorer_get_RegisterAsDropTarget(IWebBrowser2 *iface,
564         VARIANT_BOOL *pbRegister)
565 {
566     InternetExplorer *This = WEBBROWSER_THIS(iface);
567     FIXME("(%p)->(%p)\n", This, pbRegister);
568     return E_NOTIMPL;
569 }
570
571 static HRESULT WINAPI InternetExplorer_put_RegisterAsDropTarget(IWebBrowser2 *iface,
572         VARIANT_BOOL bRegister)
573 {
574     InternetExplorer *This = WEBBROWSER_THIS(iface);
575     FIXME("(%p)->(%x)\n", This, bRegister);
576     return E_NOTIMPL;
577 }
578
579 static HRESULT WINAPI InternetExplorer_get_TheaterMode(IWebBrowser2 *iface, VARIANT_BOOL *pbRegister)
580 {
581     InternetExplorer *This = WEBBROWSER_THIS(iface);
582     FIXME("(%p)->(%p)\n", This, pbRegister);
583     return E_NOTIMPL;
584 }
585
586 static HRESULT WINAPI InternetExplorer_put_TheaterMode(IWebBrowser2 *iface, VARIANT_BOOL bRegister)
587 {
588     InternetExplorer *This = WEBBROWSER_THIS(iface);
589     FIXME("(%p)->(%x)\n", This, bRegister);
590     return E_NOTIMPL;
591 }
592
593 static HRESULT WINAPI InternetExplorer_get_AddressBar(IWebBrowser2 *iface, VARIANT_BOOL *Value)
594 {
595     InternetExplorer *This = WEBBROWSER_THIS(iface);
596     FIXME("(%p)->(%p)\n", This, Value);
597     return E_NOTIMPL;
598 }
599
600 static HRESULT WINAPI InternetExplorer_put_AddressBar(IWebBrowser2 *iface, VARIANT_BOOL Value)
601 {
602     InternetExplorer *This = WEBBROWSER_THIS(iface);
603     FIXME("(%p)->(%x)\n", This, Value);
604     return E_NOTIMPL;
605 }
606
607 static HRESULT WINAPI InternetExplorer_get_Resizable(IWebBrowser2 *iface, VARIANT_BOOL *Value)
608 {
609     InternetExplorer *This = WEBBROWSER_THIS(iface);
610     FIXME("(%p)->(%p)\n", This, Value);
611     return E_NOTIMPL;
612 }
613
614 static HRESULT WINAPI InternetExplorer_put_Resizable(IWebBrowser2 *iface, VARIANT_BOOL Value)
615 {
616     InternetExplorer *This = WEBBROWSER_THIS(iface);
617     FIXME("(%p)->(%x)\n", This, Value);
618     return E_NOTIMPL;
619 }
620
621 #undef WEBBROWSER_THIS
622
623 static const IWebBrowser2Vtbl InternetExplorerVtbl =
624 {
625     InternetExplorer_QueryInterface,
626     InternetExplorer_AddRef,
627     InternetExplorer_Release,
628     InternetExplorer_GetTypeInfoCount,
629     InternetExplorer_GetTypeInfo,
630     InternetExplorer_GetIDsOfNames,
631     InternetExplorer_Invoke,
632     InternetExplorer_GoBack,
633     InternetExplorer_GoForward,
634     InternetExplorer_GoHome,
635     InternetExplorer_GoSearch,
636     InternetExplorer_Navigate,
637     InternetExplorer_Refresh,
638     InternetExplorer_Refresh2,
639     InternetExplorer_Stop,
640     InternetExplorer_get_Application,
641     InternetExplorer_get_Parent,
642     InternetExplorer_get_Container,
643     InternetExplorer_get_Document,
644     InternetExplorer_get_TopLevelContainer,
645     InternetExplorer_get_Type,
646     InternetExplorer_get_Left,
647     InternetExplorer_put_Left,
648     InternetExplorer_get_Top,
649     InternetExplorer_put_Top,
650     InternetExplorer_get_Width,
651     InternetExplorer_put_Width,
652     InternetExplorer_get_Height,
653     InternetExplorer_put_Height,
654     InternetExplorer_get_LocationName,
655     InternetExplorer_get_LocationURL,
656     InternetExplorer_get_Busy,
657     InternetExplorer_Quit,
658     InternetExplorer_ClientToWindow,
659     InternetExplorer_PutProperty,
660     InternetExplorer_GetProperty,
661     InternetExplorer_get_Name,
662     InternetExplorer_get_HWND,
663     InternetExplorer_get_FullName,
664     InternetExplorer_get_Path,
665     InternetExplorer_get_Visible,
666     InternetExplorer_put_Visible,
667     InternetExplorer_get_StatusBar,
668     InternetExplorer_put_StatusBar,
669     InternetExplorer_get_StatusText,
670     InternetExplorer_put_StatusText,
671     InternetExplorer_get_ToolBar,
672     InternetExplorer_put_ToolBar,
673     InternetExplorer_get_MenuBar,
674     InternetExplorer_put_MenuBar,
675     InternetExplorer_get_FullScreen,
676     InternetExplorer_put_FullScreen,
677     InternetExplorer_Navigate2,
678     InternetExplorer_QueryStatusWB,
679     InternetExplorer_ExecWB,
680     InternetExplorer_ShowBrowserBar,
681     InternetExplorer_get_ReadyState,
682     InternetExplorer_get_Offline,
683     InternetExplorer_put_Offline,
684     InternetExplorer_get_Silent,
685     InternetExplorer_put_Silent,
686     InternetExplorer_get_RegisterAsBrowser,
687     InternetExplorer_put_RegisterAsBrowser,
688     InternetExplorer_get_RegisterAsDropTarget,
689     InternetExplorer_put_RegisterAsDropTarget,
690     InternetExplorer_get_TheaterMode,
691     InternetExplorer_put_TheaterMode,
692     InternetExplorer_get_AddressBar,
693     InternetExplorer_put_AddressBar,
694     InternetExplorer_get_Resizable,
695     InternetExplorer_put_Resizable
696 };
697
698 void InternetExplorer_WebBrowser_Init(InternetExplorer *This)
699 {
700     This->lpWebBrowser2Vtbl = &InternetExplorerVtbl;
701 }