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