Fixed a race condition on RPC worker thread creation, and a typo.
[wine] / dlls / shdocvw / misc.c
1 /*
2  * Implementation of miscellaneous interfaces for IE Web Browser control:
3  *
4  *  - IQuickActivate
5  *
6  * Copyright 2001 John R. Sheets (for CodeWeavers)
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 2.1 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
21  */
22
23 #include "wine/debug.h"
24 #include "shdocvw.h"
25
26 WINE_DEFAULT_DEBUG_CHANNEL(shdocvw);
27
28 /**********************************************************************
29  * Implement the IQuickActivate interface
30  */
31
32 static HRESULT WINAPI WBQA_QueryInterface(LPQUICKACTIVATE iface,
33                                           REFIID riid, LPVOID *ppobj)
34 {
35     ICOM_THIS(IQuickActivateImpl, iface);
36
37     FIXME("(%p)->(%s,%p),stub!\n", This, debugstr_guid(riid), ppobj);
38     return E_NOINTERFACE;
39 }
40
41 static ULONG WINAPI WBQA_AddRef(LPQUICKACTIVATE iface)
42 {
43     ICOM_THIS(IQuickActivateImpl, iface);
44
45     TRACE("\n");
46     return ++(This->ref);
47 }
48
49 static ULONG WINAPI WBQA_Release(LPQUICKACTIVATE iface)
50 {
51     ICOM_THIS(IQuickActivateImpl, iface);
52
53     /* static class, won't be freed */
54     TRACE("\n");
55     return --(This->ref);
56 }
57
58 /* Alternative interface for quicker, easier activation of a control. */
59 static HRESULT WINAPI WBQA_QuickActivate(LPQUICKACTIVATE iface,
60                                          QACONTAINER *pQaContainer,
61                                          QACONTROL *pQaControl)
62 {
63     FIXME("stub: QACONTAINER = %p, QACONTROL = %p\n", pQaContainer, pQaControl);
64     return S_OK;
65 }
66
67 static HRESULT WINAPI WBQA_SetContentExtent(LPQUICKACTIVATE iface, LPSIZEL pSizel)
68 {
69     FIXME("stub: LPSIZEL = %p\n", pSizel);
70     return E_NOINTERFACE;
71 }
72
73 static HRESULT WINAPI WBQA_GetContentExtent(LPQUICKACTIVATE iface, LPSIZEL pSizel)
74 {
75     FIXME("stub: LPSIZEL = %p\n", pSizel);
76     return E_NOINTERFACE;
77 }
78
79 /**********************************************************************
80  * IQuickActivate virtual function table for IE Web Browser component
81  */
82
83 static ICOM_VTABLE(IQuickActivate) WBQA_Vtbl =
84 {
85     ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
86     WBQA_QueryInterface,
87     WBQA_AddRef,
88     WBQA_Release,
89     WBQA_QuickActivate,
90     WBQA_SetContentExtent,
91     WBQA_GetContentExtent
92 };
93
94 IQuickActivateImpl SHDOCVW_QuickActivate = { &WBQA_Vtbl, 1 };