include/msvcrt: Define more CPU control word flags.
[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     FIXME("(%p)->(%p)\n", This, LocationURL);
295     return E_NOTIMPL;
296 }
297
298 static HRESULT WINAPI InternetExplorer_get_Busy(IWebBrowser2 *iface, VARIANT_BOOL *pBool)
299 {
300     InternetExplorer *This = impl_from_IWebBrowser2(iface);
301     FIXME("(%p)->(%p)\n", This, pBool);
302     return E_NOTIMPL;
303 }
304
305 static HRESULT WINAPI InternetExplorer_Quit(IWebBrowser2 *iface)
306 {
307     InternetExplorer *This = impl_from_IWebBrowser2(iface);
308     FIXME("(%p)\n", This);
309     return E_NOTIMPL;
310 }
311
312 static HRESULT WINAPI InternetExplorer_ClientToWindow(IWebBrowser2 *iface, int *pcx, int *pcy)
313 {
314     InternetExplorer *This = impl_from_IWebBrowser2(iface);
315     FIXME("(%p)->(%p %p)\n", This, pcx, pcy);
316     return E_NOTIMPL;
317 }
318
319 static HRESULT WINAPI InternetExplorer_PutProperty(IWebBrowser2 *iface, BSTR szProperty, VARIANT vtValue)
320 {
321     InternetExplorer *This = impl_from_IWebBrowser2(iface);
322     FIXME("(%p)->(%s)\n", This, debugstr_w(szProperty));
323     return E_NOTIMPL;
324 }
325
326 static HRESULT WINAPI InternetExplorer_GetProperty(IWebBrowser2 *iface, BSTR szProperty, VARIANT *pvtValue)
327 {
328     InternetExplorer *This = impl_from_IWebBrowser2(iface);
329     FIXME("(%p)->(%s %p)\n", This, debugstr_w(szProperty), pvtValue);
330     return E_NOTIMPL;
331 }
332
333 static HRESULT WINAPI InternetExplorer_get_Name(IWebBrowser2 *iface, BSTR *Name)
334 {
335     InternetExplorer *This = impl_from_IWebBrowser2(iface);
336     FIXME("(%p)->(%p)\n", This, Name);
337     return E_NOTIMPL;
338 }
339
340 static HRESULT WINAPI InternetExplorer_get_HWND(IWebBrowser2 *iface, LONG *pHWND)
341 {
342     InternetExplorer *This = impl_from_IWebBrowser2(iface);
343     FIXME("(%p)->(%p)\n", This, pHWND);
344     return E_NOTIMPL;
345 }
346
347 static HRESULT WINAPI InternetExplorer_get_FullName(IWebBrowser2 *iface, BSTR *FullName)
348 {
349     InternetExplorer *This = impl_from_IWebBrowser2(iface);
350     FIXME("(%p)->(%p)\n", This, FullName);
351     return E_NOTIMPL;
352 }
353
354 static HRESULT WINAPI InternetExplorer_get_Path(IWebBrowser2 *iface, BSTR *Path)
355 {
356     InternetExplorer *This = impl_from_IWebBrowser2(iface);
357     FIXME("(%p)->(%p)\n", This, Path);
358     return E_NOTIMPL;
359 }
360
361 static HRESULT WINAPI InternetExplorer_get_Visible(IWebBrowser2 *iface, VARIANT_BOOL *pBool)
362 {
363     InternetExplorer *This = impl_from_IWebBrowser2(iface);
364     FIXME("(%p)->(%p)\n", This, pBool);
365     return E_NOTIMPL;
366 }
367
368 static HRESULT WINAPI InternetExplorer_put_Visible(IWebBrowser2 *iface, VARIANT_BOOL Value)
369 {
370     InternetExplorer *This = impl_from_IWebBrowser2(iface);
371     TRACE("(%p)->(%x)\n", This, Value);
372
373     ShowWindow(This->frame_hwnd, Value ? SW_SHOW : SW_HIDE);
374
375     return S_OK;
376 }
377
378 static HRESULT WINAPI InternetExplorer_get_StatusBar(IWebBrowser2 *iface, VARIANT_BOOL *pBool)
379 {
380     InternetExplorer *This = impl_from_IWebBrowser2(iface);
381     FIXME("(%p)->(%p)\n", This, pBool);
382     return E_NOTIMPL;
383 }
384
385 static HRESULT WINAPI InternetExplorer_put_StatusBar(IWebBrowser2 *iface, VARIANT_BOOL Value)
386 {
387     InternetExplorer *This = impl_from_IWebBrowser2(iface);
388     FIXME("(%p)->(%x)\n", This, Value);
389     return E_NOTIMPL;
390 }
391
392 static HRESULT WINAPI InternetExplorer_get_StatusText(IWebBrowser2 *iface, BSTR *StatusText)
393 {
394     InternetExplorer *This = impl_from_IWebBrowser2(iface);
395     FIXME("(%p)->(%p)\n", This, StatusText);
396     return E_NOTIMPL;
397 }
398
399 static HRESULT WINAPI InternetExplorer_put_StatusText(IWebBrowser2 *iface, BSTR StatusText)
400 {
401     InternetExplorer *This = impl_from_IWebBrowser2(iface);
402
403     TRACE("(%p)->(%s)\n", This, debugstr_w(StatusText));
404
405     return update_ie_statustext(This, StatusText);
406 }
407
408 static HRESULT WINAPI InternetExplorer_get_ToolBar(IWebBrowser2 *iface, int *Value)
409 {
410     InternetExplorer *This = impl_from_IWebBrowser2(iface);
411     FIXME("(%p)->(%p)\n", This, Value);
412     return E_NOTIMPL;
413 }
414
415 static HRESULT WINAPI InternetExplorer_put_ToolBar(IWebBrowser2 *iface, int Value)
416 {
417     InternetExplorer *This = impl_from_IWebBrowser2(iface);
418     FIXME("(%p)->(%d)\n", This, Value);
419     return E_NOTIMPL;
420 }
421
422 static HRESULT WINAPI InternetExplorer_get_MenuBar(IWebBrowser2 *iface, VARIANT_BOOL *Value)
423 {
424     InternetExplorer *This = impl_from_IWebBrowser2(iface);
425     FIXME("(%p)->(%p)\n", This, Value);
426     return E_NOTIMPL;
427 }
428
429 static HRESULT WINAPI InternetExplorer_put_MenuBar(IWebBrowser2 *iface, VARIANT_BOOL Value)
430 {
431     InternetExplorer *This = impl_from_IWebBrowser2(iface);
432     HMENU menu = NULL;
433
434     TRACE("(%p)->(%x)\n", This, Value);
435
436     if(Value)
437         menu = This->menu;
438
439     if(!SetMenu(This->frame_hwnd, menu))
440         return HRESULT_FROM_WIN32(GetLastError());
441
442     return S_OK;
443 }
444
445 static HRESULT WINAPI InternetExplorer_get_FullScreen(IWebBrowser2 *iface, VARIANT_BOOL *pbFullScreen)
446 {
447     InternetExplorer *This = impl_from_IWebBrowser2(iface);
448     FIXME("(%p)->(%p)\n", This, pbFullScreen);
449     return E_NOTIMPL;
450 }
451
452 static HRESULT WINAPI InternetExplorer_put_FullScreen(IWebBrowser2 *iface, VARIANT_BOOL bFullScreen)
453 {
454     InternetExplorer *This = impl_from_IWebBrowser2(iface);
455     FIXME("(%p)->(%x)\n", This, bFullScreen);
456     return E_NOTIMPL;
457 }
458
459 static HRESULT WINAPI InternetExplorer_Navigate2(IWebBrowser2 *iface, VARIANT *URL, VARIANT *Flags,
460         VARIANT *TargetFrameName, VARIANT *PostData, VARIANT *Headers)
461 {
462     InternetExplorer *This = impl_from_IWebBrowser2(iface);
463
464     TRACE("(%p)->(%p %p %p %p %p)\n", This, URL, Flags, TargetFrameName, PostData, Headers);
465
466     if(!URL)
467         return S_OK;
468
469     if(V_VT(URL) != VT_BSTR) {
470         FIXME("Unsupported V_VT(URL) %d\n", V_VT(URL));
471         return E_INVALIDARG;
472     }
473
474     return navigate_url(&This->doc_host, V_BSTR(URL), Flags, TargetFrameName, PostData, Headers);
475 }
476
477 static HRESULT WINAPI InternetExplorer_QueryStatusWB(IWebBrowser2 *iface, OLECMDID cmdID, OLECMDF *pcmdf)
478 {
479     InternetExplorer *This = impl_from_IWebBrowser2(iface);
480     FIXME("(%p)->(%d %p)\n", This, cmdID, pcmdf);
481     return E_NOTIMPL;
482 }
483
484 static HRESULT WINAPI InternetExplorer_ExecWB(IWebBrowser2 *iface, OLECMDID cmdID,
485         OLECMDEXECOPT cmdexecopt, VARIANT *pvaIn, VARIANT *pvaOut)
486 {
487     InternetExplorer *This = impl_from_IWebBrowser2(iface);
488     FIXME("(%p)->(%d %d %p %p)\n", This, cmdID, cmdexecopt, pvaIn, pvaOut);
489     return E_NOTIMPL;
490 }
491
492 static HRESULT WINAPI InternetExplorer_ShowBrowserBar(IWebBrowser2 *iface, VARIANT *pvaClsid,
493         VARIANT *pvarShow, VARIANT *pvarSize)
494 {
495     InternetExplorer *This = impl_from_IWebBrowser2(iface);
496     FIXME("(%p)->(%p %p %p)\n", This, pvaClsid, pvarShow, pvarSize);
497     return E_NOTIMPL;
498 }
499
500 static HRESULT WINAPI InternetExplorer_get_ReadyState(IWebBrowser2 *iface, READYSTATE *lpReadyState)
501 {
502     InternetExplorer *This = impl_from_IWebBrowser2(iface);
503     FIXME("(%p)->(%p)\n", This, lpReadyState);
504     return E_NOTIMPL;
505 }
506
507 static HRESULT WINAPI InternetExplorer_get_Offline(IWebBrowser2 *iface, VARIANT_BOOL *pbOffline)
508 {
509     InternetExplorer *This = impl_from_IWebBrowser2(iface);
510     FIXME("(%p)->(%p)\n", This, pbOffline);
511     return E_NOTIMPL;
512 }
513
514 static HRESULT WINAPI InternetExplorer_put_Offline(IWebBrowser2 *iface, VARIANT_BOOL bOffline)
515 {
516     InternetExplorer *This = impl_from_IWebBrowser2(iface);
517     FIXME("(%p)->(%x)\n", This, bOffline);
518     return E_NOTIMPL;
519 }
520
521 static HRESULT WINAPI InternetExplorer_get_Silent(IWebBrowser2 *iface, VARIANT_BOOL *pbSilent)
522 {
523     InternetExplorer *This = impl_from_IWebBrowser2(iface);
524     FIXME("(%p)->(%p)\n", This, pbSilent);
525     return E_NOTIMPL;
526 }
527
528 static HRESULT WINAPI InternetExplorer_put_Silent(IWebBrowser2 *iface, VARIANT_BOOL bSilent)
529 {
530     InternetExplorer *This = impl_from_IWebBrowser2(iface);
531     FIXME("(%p)->(%x)\n", This, bSilent);
532     return E_NOTIMPL;
533 }
534
535 static HRESULT WINAPI InternetExplorer_get_RegisterAsBrowser(IWebBrowser2 *iface,
536         VARIANT_BOOL *pbRegister)
537 {
538     InternetExplorer *This = impl_from_IWebBrowser2(iface);
539     FIXME("(%p)->(%p)\n", This, pbRegister);
540     return E_NOTIMPL;
541 }
542
543 static HRESULT WINAPI InternetExplorer_put_RegisterAsBrowser(IWebBrowser2 *iface,
544         VARIANT_BOOL bRegister)
545 {
546     InternetExplorer *This = impl_from_IWebBrowser2(iface);
547     FIXME("(%p)->(%x)\n", This, bRegister);
548     return E_NOTIMPL;
549 }
550
551 static HRESULT WINAPI InternetExplorer_get_RegisterAsDropTarget(IWebBrowser2 *iface,
552         VARIANT_BOOL *pbRegister)
553 {
554     InternetExplorer *This = impl_from_IWebBrowser2(iface);
555     FIXME("(%p)->(%p)\n", This, pbRegister);
556     return E_NOTIMPL;
557 }
558
559 static HRESULT WINAPI InternetExplorer_put_RegisterAsDropTarget(IWebBrowser2 *iface,
560         VARIANT_BOOL bRegister)
561 {
562     InternetExplorer *This = impl_from_IWebBrowser2(iface);
563     FIXME("(%p)->(%x)\n", This, bRegister);
564     return E_NOTIMPL;
565 }
566
567 static HRESULT WINAPI InternetExplorer_get_TheaterMode(IWebBrowser2 *iface, VARIANT_BOOL *pbRegister)
568 {
569     InternetExplorer *This = impl_from_IWebBrowser2(iface);
570     FIXME("(%p)->(%p)\n", This, pbRegister);
571     return E_NOTIMPL;
572 }
573
574 static HRESULT WINAPI InternetExplorer_put_TheaterMode(IWebBrowser2 *iface, VARIANT_BOOL bRegister)
575 {
576     InternetExplorer *This = impl_from_IWebBrowser2(iface);
577     FIXME("(%p)->(%x)\n", This, bRegister);
578     return E_NOTIMPL;
579 }
580
581 static HRESULT WINAPI InternetExplorer_get_AddressBar(IWebBrowser2 *iface, VARIANT_BOOL *Value)
582 {
583     InternetExplorer *This = impl_from_IWebBrowser2(iface);
584     FIXME("(%p)->(%p)\n", This, Value);
585     return E_NOTIMPL;
586 }
587
588 static HRESULT WINAPI InternetExplorer_put_AddressBar(IWebBrowser2 *iface, VARIANT_BOOL Value)
589 {
590     InternetExplorer *This = impl_from_IWebBrowser2(iface);
591     FIXME("(%p)->(%x)\n", This, Value);
592     return E_NOTIMPL;
593 }
594
595 static HRESULT WINAPI InternetExplorer_get_Resizable(IWebBrowser2 *iface, VARIANT_BOOL *Value)
596 {
597     InternetExplorer *This = impl_from_IWebBrowser2(iface);
598     FIXME("(%p)->(%p)\n", This, Value);
599     return E_NOTIMPL;
600 }
601
602 static HRESULT WINAPI InternetExplorer_put_Resizable(IWebBrowser2 *iface, VARIANT_BOOL Value)
603 {
604     InternetExplorer *This = impl_from_IWebBrowser2(iface);
605     FIXME("(%p)->(%x)\n", This, Value);
606     return E_NOTIMPL;
607 }
608
609 #undef impl_from_IWebBrowser2
610
611 static const IWebBrowser2Vtbl InternetExplorerVtbl =
612 {
613     InternetExplorer_QueryInterface,
614     InternetExplorer_AddRef,
615     InternetExplorer_Release,
616     InternetExplorer_GetTypeInfoCount,
617     InternetExplorer_GetTypeInfo,
618     InternetExplorer_GetIDsOfNames,
619     InternetExplorer_Invoke,
620     InternetExplorer_GoBack,
621     InternetExplorer_GoForward,
622     InternetExplorer_GoHome,
623     InternetExplorer_GoSearch,
624     InternetExplorer_Navigate,
625     InternetExplorer_Refresh,
626     InternetExplorer_Refresh2,
627     InternetExplorer_Stop,
628     InternetExplorer_get_Application,
629     InternetExplorer_get_Parent,
630     InternetExplorer_get_Container,
631     InternetExplorer_get_Document,
632     InternetExplorer_get_TopLevelContainer,
633     InternetExplorer_get_Type,
634     InternetExplorer_get_Left,
635     InternetExplorer_put_Left,
636     InternetExplorer_get_Top,
637     InternetExplorer_put_Top,
638     InternetExplorer_get_Width,
639     InternetExplorer_put_Width,
640     InternetExplorer_get_Height,
641     InternetExplorer_put_Height,
642     InternetExplorer_get_LocationName,
643     InternetExplorer_get_LocationURL,
644     InternetExplorer_get_Busy,
645     InternetExplorer_Quit,
646     InternetExplorer_ClientToWindow,
647     InternetExplorer_PutProperty,
648     InternetExplorer_GetProperty,
649     InternetExplorer_get_Name,
650     InternetExplorer_get_HWND,
651     InternetExplorer_get_FullName,
652     InternetExplorer_get_Path,
653     InternetExplorer_get_Visible,
654     InternetExplorer_put_Visible,
655     InternetExplorer_get_StatusBar,
656     InternetExplorer_put_StatusBar,
657     InternetExplorer_get_StatusText,
658     InternetExplorer_put_StatusText,
659     InternetExplorer_get_ToolBar,
660     InternetExplorer_put_ToolBar,
661     InternetExplorer_get_MenuBar,
662     InternetExplorer_put_MenuBar,
663     InternetExplorer_get_FullScreen,
664     InternetExplorer_put_FullScreen,
665     InternetExplorer_Navigate2,
666     InternetExplorer_QueryStatusWB,
667     InternetExplorer_ExecWB,
668     InternetExplorer_ShowBrowserBar,
669     InternetExplorer_get_ReadyState,
670     InternetExplorer_get_Offline,
671     InternetExplorer_put_Offline,
672     InternetExplorer_get_Silent,
673     InternetExplorer_put_Silent,
674     InternetExplorer_get_RegisterAsBrowser,
675     InternetExplorer_put_RegisterAsBrowser,
676     InternetExplorer_get_RegisterAsDropTarget,
677     InternetExplorer_put_RegisterAsDropTarget,
678     InternetExplorer_get_TheaterMode,
679     InternetExplorer_put_TheaterMode,
680     InternetExplorer_get_AddressBar,
681     InternetExplorer_put_AddressBar,
682     InternetExplorer_get_Resizable,
683     InternetExplorer_put_Resizable
684 };
685
686 void InternetExplorer_WebBrowser_Init(InternetExplorer *This)
687 {
688     This->IWebBrowser2_iface.lpVtbl = &InternetExplorerVtbl;
689 }