Removed some uses of the non-standard ICOM_THIS macro.
[wine/multimedia.git] / dlls / shdocvw / persist.c
blobafed6825bff764190e0ecf29d3f85d6b6fa55e05
1 /*
2 * Implementation of IPersist interfaces for IE Web Browser control
4 * Copyright 2001 John R. Sheets (for CodeWeavers)
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #include "wine/debug.h"
22 #include "shdocvw.h"
24 WINE_DEFAULT_DEBUG_CHANNEL(shdocvw);
26 /**********************************************************************
27 * Implement the IPersistStorage interface
30 static HRESULT WINAPI WBPS_QueryInterface(LPPERSISTSTORAGE iface,
31 REFIID riid, LPVOID *ppobj)
33 IPersistStorageImpl *This = (IPersistStorageImpl *)iface;
35 FIXME("(%p)->(%s,%p),stub!\n", This, debugstr_guid(riid), ppobj);
36 return E_NOINTERFACE;
39 static ULONG WINAPI WBPS_AddRef(LPPERSISTSTORAGE iface)
41 IPersistStorageImpl *This = (IPersistStorageImpl *)iface;
43 TRACE("\n");
44 return ++(This->ref);
47 static ULONG WINAPI WBPS_Release(LPPERSISTSTORAGE iface)
49 IPersistStorageImpl *This = (IPersistStorageImpl *)iface;
51 /* static class, won't be freed */
52 TRACE("\n");
53 return --(This->ref);
56 static HRESULT WINAPI WBPS_GetClassID(LPPERSISTSTORAGE iface, CLSID *pClassID)
58 FIXME("stub: CLSID = %s\n", debugstr_guid(pClassID));
59 return S_OK;
62 static HRESULT WINAPI WBPS_IsDirty(LPPERSISTSTORAGE iface)
64 FIXME("stub\n");
65 return S_OK;
68 static HRESULT WINAPI WBPS_InitNew(LPPERSISTSTORAGE iface, LPSTORAGE pStg)
70 FIXME("stub: LPSTORAGE = %p\n", pStg);
71 return S_OK;
74 static HRESULT WINAPI WBPS_Load(LPPERSISTSTORAGE iface, LPSTORAGE pStg)
76 FIXME("stub: LPSTORAGE = %p\n", pStg);
77 return S_OK;
80 static HRESULT WINAPI WBPS_Save(LPPERSISTSTORAGE iface, LPSTORAGE pStg,
81 BOOL fSameAsLoad)
83 FIXME("stub: LPSTORAGE = %p, fSameAsLoad = %d\n", pStg, fSameAsLoad);
84 return S_OK;
87 static HRESULT WINAPI WBPS_SaveCompleted(LPPERSISTSTORAGE iface, LPSTORAGE pStgNew)
89 FIXME("stub: LPSTORAGE = %p\n", pStgNew);
90 return S_OK;
93 /**********************************************************************
94 * IPersistStorage virtual function table for IE Web Browser component
97 static IPersistStorageVtbl WBPS_Vtbl =
99 WBPS_QueryInterface,
100 WBPS_AddRef,
101 WBPS_Release,
102 WBPS_GetClassID,
103 WBPS_IsDirty,
104 WBPS_InitNew,
105 WBPS_Load,
106 WBPS_Save,
107 WBPS_SaveCompleted
110 IPersistStorageImpl SHDOCVW_PersistStorage = { &WBPS_Vtbl, 1 };
113 /**********************************************************************
114 * Implement the IPersistStreamInit interface
117 static HRESULT WINAPI WBPSI_QueryInterface(LPPERSISTSTREAMINIT iface,
118 REFIID riid, LPVOID *ppobj)
120 IPersistStreamInitImpl *This = (IPersistStreamInitImpl *)iface;
122 FIXME("(%p)->(%s,%p),stub!\n", This, debugstr_guid(riid), ppobj);
123 return E_NOINTERFACE;
126 static ULONG WINAPI WBPSI_AddRef(LPPERSISTSTREAMINIT iface)
128 IPersistStreamInitImpl *This = (IPersistStreamInitImpl *)iface;
130 TRACE("\n");
131 return ++(This->ref);
134 static ULONG WINAPI WBPSI_Release(LPPERSISTSTREAMINIT iface)
136 IPersistStreamInitImpl *This = (IPersistStreamInitImpl *)iface;
138 /* static class, won't be freed */
139 TRACE("\n");
140 return --(This->ref);
143 static HRESULT WINAPI WBPSI_GetClassID(LPPERSISTSTREAMINIT iface, CLSID *pClassID)
145 FIXME("stub: CLSID = %s\n", debugstr_guid(pClassID));
146 return S_OK;
149 static HRESULT WINAPI WBPSI_IsDirty(LPPERSISTSTREAMINIT iface)
151 FIXME("stub\n");
152 return S_OK;
155 static HRESULT WINAPI WBPSI_Load(LPPERSISTSTREAMINIT iface, LPSTREAM pStg)
157 FIXME("stub: LPSTORAGE = %p\n", pStg);
158 return S_OK;
161 static HRESULT WINAPI WBPSI_Save(LPPERSISTSTREAMINIT iface, LPSTREAM pStg,
162 BOOL fSameAsLoad)
164 FIXME("stub: LPSTORAGE = %p, fSameAsLoad = %d\n", pStg, fSameAsLoad);
165 return S_OK;
168 static HRESULT WINAPI WBPSI_GetSizeMax(LPPERSISTSTREAMINIT iface,
169 ULARGE_INTEGER *pcbSize)
171 FIXME("stub: ULARGE_INTEGER = %p\n", pcbSize);
172 return S_OK;
175 static HRESULT WINAPI WBPSI_InitNew(LPPERSISTSTREAMINIT iface)
177 FIXME("stub\n");
178 return S_OK;
181 /**********************************************************************
182 * IPersistStreamInit virtual function table for IE Web Browser component
185 static IPersistStreamInitVtbl WBPSI_Vtbl =
187 WBPSI_QueryInterface,
188 WBPSI_AddRef,
189 WBPSI_Release,
190 WBPSI_GetClassID,
191 WBPSI_IsDirty,
192 WBPSI_Load,
193 WBPSI_Save,
194 WBPSI_GetSizeMax,
195 WBPSI_InitNew
198 IPersistStreamInitImpl SHDOCVW_PersistStreamInit = { &WBPSI_Vtbl, 1 };