Make remaining OLE interface vtables const.
[wine/wine64.git] / dlls / shdocvw / misc.c
blob1a4e23c44d139a72d6dc4636c05f45e3596e6242
1 /*
2 * Implementation of miscellaneous interfaces for IE Web Browser control:
4 * - IQuickActivate
6 * Copyright 2001 John R. Sheets (for CodeWeavers)
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.
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.
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
23 #include "wine/debug.h"
24 #include "shdocvw.h"
26 WINE_DEFAULT_DEBUG_CHANNEL(shdocvw);
28 /**********************************************************************
29 * Implement the IQuickActivate interface
32 static HRESULT WINAPI WBQA_QueryInterface(LPQUICKACTIVATE iface,
33 REFIID riid, LPVOID *ppobj)
35 FIXME("- no interface\n\tIID:\t%s\n", debugstr_guid(riid));
37 if (ppobj == NULL) return E_POINTER;
39 return E_NOINTERFACE;
42 static ULONG WINAPI WBQA_AddRef(LPQUICKACTIVATE iface)
44 SHDOCVW_LockModule();
46 return 2; /* non-heap based object */
49 static ULONG WINAPI WBQA_Release(LPQUICKACTIVATE iface)
51 SHDOCVW_UnlockModule();
53 return 1; /* non-heap based object */
56 /* Alternative interface for quicker, easier activation of a control. */
57 static HRESULT WINAPI WBQA_QuickActivate(LPQUICKACTIVATE iface,
58 QACONTAINER *pQaContainer,
59 QACONTROL *pQaControl)
61 FIXME("stub: QACONTAINER = %p, QACONTROL = %p\n", pQaContainer, pQaControl);
62 return S_OK;
65 static HRESULT WINAPI WBQA_SetContentExtent(LPQUICKACTIVATE iface, LPSIZEL pSizel)
67 FIXME("stub: LPSIZEL = %p\n", pSizel);
68 return E_NOINTERFACE;
71 static HRESULT WINAPI WBQA_GetContentExtent(LPQUICKACTIVATE iface, LPSIZEL pSizel)
73 FIXME("stub: LPSIZEL = %p\n", pSizel);
74 return E_NOINTERFACE;
77 /**********************************************************************
78 * IQuickActivate virtual function table for IE Web Browser component
81 static const IQuickActivateVtbl WBQA_Vtbl =
83 WBQA_QueryInterface,
84 WBQA_AddRef,
85 WBQA_Release,
86 WBQA_QuickActivate,
87 WBQA_SetContentExtent,
88 WBQA_GetContentExtent
91 IQuickActivateImpl SHDOCVW_QuickActivate = {&WBQA_Vtbl};
93 /**********************************************************************
94 * OpenURL (SHDOCVW.@)
96 void WINAPI OpenURL(HWND hWnd, HINSTANCE hInst, LPCSTR lpcstrUrl, int nShowCmd)
98 FIXME("%p %p %s %d\n", hWnd, hInst, debugstr_a(lpcstrUrl), nShowCmd);