Correct errors with move to kernel time functions.
[wine/multimedia.git] / dlls / shdocvw / persist.c
blobb0cabe501da8936dfab778439f0a62348d954770
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 ICOM_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 ICOM_THIS(IPersistStorageImpl, iface);
43 TRACE("\n");
44 return ++(This->ref);
47 static ULONG WINAPI WBPS_Release(LPPERSISTSTORAGE iface)
49 ICOM_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 ICOM_VTABLE(IPersistStorage) WBPS_Vtbl =
99 ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
100 WBPS_QueryInterface,
101 WBPS_AddRef,
102 WBPS_Release,
103 WBPS_GetClassID,
104 WBPS_IsDirty,
105 WBPS_InitNew,
106 WBPS_Load,
107 WBPS_Save,
108 WBPS_SaveCompleted
111 IPersistStorageImpl SHDOCVW_PersistStorage = { &WBPS_Vtbl, 1 };
114 /**********************************************************************
115 * Implement the IPersistStreamInit interface
118 static HRESULT WINAPI WBPSI_QueryInterface(LPPERSISTSTREAMINIT iface,
119 REFIID riid, LPVOID *ppobj)
121 ICOM_THIS(IPersistStreamInitImpl, iface);
123 FIXME("(%p)->(%s,%p),stub!\n", This, debugstr_guid(riid), ppobj);
124 return E_NOINTERFACE;
127 static ULONG WINAPI WBPSI_AddRef(LPPERSISTSTREAMINIT iface)
129 ICOM_THIS(IPersistStreamInitImpl, iface);
131 TRACE("\n");
132 return ++(This->ref);
135 static ULONG WINAPI WBPSI_Release(LPPERSISTSTREAMINIT iface)
137 ICOM_THIS(IPersistStreamInitImpl, iface);
139 /* static class, won't be freed */
140 TRACE("\n");
141 return --(This->ref);
144 static HRESULT WINAPI WBPSI_GetClassID(LPPERSISTSTREAMINIT iface, CLSID *pClassID)
146 FIXME("stub: CLSID = %s\n", debugstr_guid(pClassID));
147 return S_OK;
150 static HRESULT WINAPI WBPSI_IsDirty(LPPERSISTSTREAMINIT iface)
152 FIXME("stub\n");
153 return S_OK;
156 static HRESULT WINAPI WBPSI_Load(LPPERSISTSTREAMINIT iface, LPSTREAM pStg)
158 FIXME("stub: LPSTORAGE = %p\n", pStg);
159 return S_OK;
162 static HRESULT WINAPI WBPSI_Save(LPPERSISTSTREAMINIT iface, LPSTREAM pStg,
163 BOOL fSameAsLoad)
165 FIXME("stub: LPSTORAGE = %p, fSameAsLoad = %d\n", pStg, fSameAsLoad);
166 return S_OK;
169 static HRESULT WINAPI WBPSI_GetSizeMax(LPPERSISTSTREAMINIT iface,
170 ULARGE_INTEGER *pcbSize)
172 FIXME("stub: ULARGE_INTEGER = %p\n", pcbSize);
173 return S_OK;
176 static HRESULT WINAPI WBPSI_InitNew(LPPERSISTSTREAMINIT iface)
178 FIXME("stub\n");
179 return S_OK;
182 /**********************************************************************
183 * IPersistStreamInit virtual function table for IE Web Browser component
186 static ICOM_VTABLE(IPersistStreamInit) WBPSI_Vtbl =
188 ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
189 WBPSI_QueryInterface,
190 WBPSI_AddRef,
191 WBPSI_Release,
192 WBPSI_GetClassID,
193 WBPSI_IsDirty,
194 WBPSI_Load,
195 WBPSI_Save,
196 WBPSI_GetSizeMax,
197 WBPSI_InitNew
200 IPersistStreamInitImpl SHDOCVW_PersistStreamInit = { &WBPSI_Vtbl, 1 };