ReactOS 0.4.17-dev-1190-g4c812f4
persist.c File Reference
#include "ieframe.h"
#include "wine/debug.h"
Include dependency graph for persist.c:

Go to the source code of this file.

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (ieframe)
 
static WebBrowser * impl_from_IPersistStorage (IPersistStorage *iface)
 
static HRESULT WINAPI PersistStorage_QueryInterface (IPersistStorage *iface, REFIID riid, LPVOID *ppobj)
 
static ULONG WINAPI PersistStorage_AddRef (IPersistStorage *iface)
 
static ULONG WINAPI PersistStorage_Release (IPersistStorage *iface)
 
static HRESULT WINAPI PersistStorage_GetClassID (IPersistStorage *iface, CLSID *pClassID)
 
static HRESULT WINAPI PersistStorage_IsDirty (IPersistStorage *iface)
 
static HRESULT WINAPI PersistStorage_InitNew (IPersistStorage *iface, LPSTORAGE pStg)
 
static HRESULT WINAPI PersistStorage_Load (IPersistStorage *iface, LPSTORAGE pStg)
 
static HRESULT WINAPI PersistStorage_Save (IPersistStorage *iface, LPSTORAGE pStg, BOOL fSameAsLoad)
 
static HRESULT WINAPI PersistStorage_SaveCompleted (IPersistStorage *iface, LPSTORAGE pStgNew)
 
static WebBrowser * impl_from_IPersistMemory (IPersistMemory *iface)
 
static HRESULT WINAPI PersistMemory_QueryInterface (IPersistMemory *iface, REFIID riid, LPVOID *ppobj)
 
static ULONG WINAPI PersistMemory_AddRef (IPersistMemory *iface)
 
static ULONG WINAPI PersistMemory_Release (IPersistMemory *iface)
 
static HRESULT WINAPI PersistMemory_GetClassID (IPersistMemory *iface, CLSID *pClassID)
 
static HRESULT WINAPI PersistMemory_IsDirty (IPersistMemory *iface)
 
static HRESULT WINAPI PersistMemory_InitNew (IPersistMemory *iface)
 
static HRESULT WINAPI PersistMemory_Load (IPersistMemory *iface, LPVOID pMem, ULONG cbSize)
 
static HRESULT WINAPI PersistMemory_Save (IPersistMemory *iface, LPVOID pMem, BOOL fClearDirty, ULONG cbSize)
 
static HRESULT WINAPI PersistMemory_GetSizeMax (IPersistMemory *iface, ULONG *pCbSize)
 
static WebBrowser * impl_from_IPersistStreamInit (IPersistStreamInit *iface)
 
static HRESULT WINAPI PersistStreamInit_QueryInterface (IPersistStreamInit *iface, REFIID riid, LPVOID *ppobj)
 
static ULONG WINAPI PersistStreamInit_AddRef (IPersistStreamInit *iface)
 
static ULONG WINAPI PersistStreamInit_Release (IPersistStreamInit *iface)
 
static HRESULT WINAPI PersistStreamInit_GetClassID (IPersistStreamInit *iface, CLSID *pClassID)
 
static HRESULT WINAPI PersistStreamInit_IsDirty (IPersistStreamInit *iface)
 
static HRESULT WINAPI PersistStreamInit_Load (IPersistStreamInit *iface, LPSTREAM pStg)
 
static HRESULT WINAPI PersistStreamInit_Save (IPersistStreamInit *iface, LPSTREAM pStg, BOOL fSameAsLoad)
 
static HRESULT WINAPI PersistStreamInit_GetSizeMax (IPersistStreamInit *iface, ULARGE_INTEGER *pcbSize)
 
static HRESULT WINAPI PersistStreamInit_InitNew (IPersistStreamInit *iface)
 
void WebBrowser_Persist_Init (WebBrowser *This)
 

Variables

static const IPersistStorageVtbl PersistStorageVtbl
 
static const IPersistMemoryVtbl PersistMemoryVtbl
 
static const IPersistStreamInitVtbl PersistStreamInitVtbl
 

Function Documentation

◆ impl_from_IPersistMemory()

static WebBrowser * impl_from_IPersistMemory ( IPersistMemory *  iface)
inlinestatic

◆ impl_from_IPersistStorage()

◆ impl_from_IPersistStreamInit()

◆ PersistMemory_AddRef()

static ULONG WINAPI PersistMemory_AddRef ( IPersistMemory *  iface)
static

Definition at line 134 of file persist.c.

135{
137 return IUnknown_AddRef(This->hlink_frame.outer);
138}
static WebBrowser * impl_from_IPersistMemory(IPersistMemory *iface)
Definition: persist.c:122

◆ PersistMemory_GetClassID()

static HRESULT WINAPI PersistMemory_GetClassID ( IPersistMemory *  iface,
CLSID *  pClassID 
)
static

Definition at line 146 of file persist.c.

147{
149 FIXME("(%p)->(%p)\n", This, pClassID);
150 return E_NOTIMPL;
151}
#define FIXME(fmt,...)
Definition: precomp.h:53
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ PersistMemory_GetSizeMax()

static HRESULT WINAPI PersistMemory_GetSizeMax ( IPersistMemory *  iface,
ULONG *  pCbSize 
)
static

Definition at line 182 of file persist.c.

183{
185 FIXME("(%p)->(%p)\n", This, pCbSize);
186 return E_NOTIMPL;
187}

◆ PersistMemory_InitNew()

static HRESULT WINAPI PersistMemory_InitNew ( IPersistMemory *  iface)
static

Definition at line 160 of file persist.c.

161{
163 FIXME("(%p)\n", This);
164 return S_OK;
165}
#define S_OK
Definition: intsafe.h:52

◆ PersistMemory_IsDirty()

static HRESULT WINAPI PersistMemory_IsDirty ( IPersistMemory *  iface)
static

Definition at line 153 of file persist.c.

154{
156 FIXME("(%p)\n", This);
157 return E_NOTIMPL;
158}

◆ PersistMemory_Load()

static HRESULT WINAPI PersistMemory_Load ( IPersistMemory *  iface,
LPVOID  pMem,
ULONG  cbSize 
)
static

Definition at line 167 of file persist.c.

168{
170 FIXME("(%p)->(%p %lx)\n", This, pMem, cbSize);
171 return S_OK;
172}
UINT32 cbSize

◆ PersistMemory_QueryInterface()

static HRESULT WINAPI PersistMemory_QueryInterface ( IPersistMemory *  iface,
REFIID  riid,
LPVOID *  ppobj 
)
static

Definition at line 127 of file persist.c.

129{
131 return IUnknown_QueryInterface(This->hlink_frame.outer, riid, ppobj);
132}
REFIID riid
Definition: atlbase.h:39

◆ PersistMemory_Release()

static ULONG WINAPI PersistMemory_Release ( IPersistMemory *  iface)
static

Definition at line 140 of file persist.c.

141{
143 return IUnknown_Release(This->hlink_frame.outer);
144}

◆ PersistMemory_Save()

static HRESULT WINAPI PersistMemory_Save ( IPersistMemory *  iface,
LPVOID  pMem,
BOOL  fClearDirty,
ULONG  cbSize 
)
static

Definition at line 174 of file persist.c.

176{
178 FIXME("(%p)->(%p %x %lx)\n", This, pMem, fClearDirty, cbSize);
179 return E_NOTIMPL;
180}

◆ PersistStorage_AddRef()

static ULONG WINAPI PersistStorage_AddRef ( IPersistStorage *  iface)
static

Definition at line 44 of file persist.c.

45{
47 return IUnknown_AddRef(This->hlink_frame.outer);
48}
static WebBrowser * impl_from_IPersistStorage(IPersistStorage *iface)
Definition: persist.c:32

◆ PersistStorage_GetClassID()

static HRESULT WINAPI PersistStorage_GetClassID ( IPersistStorage *  iface,
CLSID *  pClassID 
)
static

Definition at line 56 of file persist.c.

57{
59
60 TRACE("(%p)->(%p)\n", This, pClassID);
61
62 if (!pClassID)
63 return E_INVALIDARG;
64
65 *pClassID = This->version == 1 ? CLSID_WebBrowser_V1: CLSID_WebBrowser;
66 return S_OK;
67}
#define E_INVALIDARG
Definition: ddrawi.h:101
#define TRACE(s)
Definition: solgame.cpp:4

◆ PersistStorage_InitNew()

static HRESULT WINAPI PersistStorage_InitNew ( IPersistStorage *  iface,
LPSTORAGE  pStg 
)
static

Definition at line 76 of file persist.c.

77{
79 FIXME("(%p)->(%p)\n", This, pStg);
80 return S_OK;
81}

◆ PersistStorage_IsDirty()

static HRESULT WINAPI PersistStorage_IsDirty ( IPersistStorage *  iface)
static

Definition at line 69 of file persist.c.

70{
72 FIXME("(%p)\n", This);
73 return E_NOTIMPL;
74}

◆ PersistStorage_Load()

static HRESULT WINAPI PersistStorage_Load ( IPersistStorage *  iface,
LPSTORAGE  pStg 
)
static

Definition at line 83 of file persist.c.

84{
86 FIXME("(%p)->(%p)\n", This, pStg);
87 return E_NOTIMPL;
88}

◆ PersistStorage_QueryInterface()

static HRESULT WINAPI PersistStorage_QueryInterface ( IPersistStorage *  iface,
REFIID  riid,
LPVOID *  ppobj 
)
static

Definition at line 37 of file persist.c.

39{
41 return IUnknown_QueryInterface(This->hlink_frame.outer, riid, ppobj);
42}

◆ PersistStorage_Release()

static ULONG WINAPI PersistStorage_Release ( IPersistStorage *  iface)
static

Definition at line 50 of file persist.c.

51{
53 return IUnknown_Release(This->hlink_frame.outer);
54}

◆ PersistStorage_Save()

static HRESULT WINAPI PersistStorage_Save ( IPersistStorage *  iface,
LPSTORAGE  pStg,
BOOL  fSameAsLoad 
)
static

Definition at line 90 of file persist.c.

92{
94 FIXME("(%p)->(%p %x)\n", This, pStg, fSameAsLoad);
95 return E_NOTIMPL;
96}

◆ PersistStorage_SaveCompleted()

static HRESULT WINAPI PersistStorage_SaveCompleted ( IPersistStorage *  iface,
LPSTORAGE  pStgNew 
)
static

Definition at line 98 of file persist.c.

99{
101 FIXME("(%p)->(%p)\n", This, pStgNew);
102 return E_NOTIMPL;
103}

◆ PersistStreamInit_AddRef()

static ULONG WINAPI PersistStreamInit_AddRef ( IPersistStreamInit *  iface)
static

Definition at line 218 of file persist.c.

219{
221 return IUnknown_AddRef(This->hlink_frame.outer);
222}
static WebBrowser * impl_from_IPersistStreamInit(IPersistStreamInit *iface)
Definition: persist.c:206

◆ PersistStreamInit_GetClassID()

static HRESULT WINAPI PersistStreamInit_GetClassID ( IPersistStreamInit *  iface,
CLSID *  pClassID 
)
static

Definition at line 230 of file persist.c.

231{
233 return IPersistStorage_GetClassID(&This->IPersistStorage_iface, pClassID);
234}

◆ PersistStreamInit_GetSizeMax()

static HRESULT WINAPI PersistStreamInit_GetSizeMax ( IPersistStreamInit *  iface,
ULARGE_INTEGER *  pcbSize 
)
static

Definition at line 257 of file persist.c.

259{
261 FIXME("(%p)->(%p)\n", This, pcbSize);
262 return E_NOTIMPL;
263}

◆ PersistStreamInit_InitNew()

static HRESULT WINAPI PersistStreamInit_InitNew ( IPersistStreamInit *  iface)
static

Definition at line 265 of file persist.c.

266{
268 FIXME("(%p)\n", This);
269 return S_OK;
270}

◆ PersistStreamInit_IsDirty()

static HRESULT WINAPI PersistStreamInit_IsDirty ( IPersistStreamInit *  iface)
static

Definition at line 236 of file persist.c.

237{
239 return IPersistStorage_IsDirty(&This->IPersistStorage_iface);
240}

◆ PersistStreamInit_Load()

static HRESULT WINAPI PersistStreamInit_Load ( IPersistStreamInit *  iface,
LPSTREAM  pStg 
)
static

Definition at line 242 of file persist.c.

243{
245 FIXME("(%p)->(%p)\n", This, pStg);
246 return S_OK;
247}

◆ PersistStreamInit_QueryInterface()

static HRESULT WINAPI PersistStreamInit_QueryInterface ( IPersistStreamInit *  iface,
REFIID  riid,
LPVOID *  ppobj 
)
static

Definition at line 211 of file persist.c.

213{
215 return IUnknown_QueryInterface(This->hlink_frame.outer, riid, ppobj);
216}

◆ PersistStreamInit_Release()

static ULONG WINAPI PersistStreamInit_Release ( IPersistStreamInit *  iface)
static

Definition at line 224 of file persist.c.

225{
227 return IUnknown_Release(This->hlink_frame.outer);
228}

◆ PersistStreamInit_Save()

static HRESULT WINAPI PersistStreamInit_Save ( IPersistStreamInit *  iface,
LPSTREAM  pStg,
BOOL  fSameAsLoad 
)
static

Definition at line 249 of file persist.c.

251{
253 FIXME("(%p)->(%p %x)\n", This, pStg, fSameAsLoad);
254 return E_NOTIMPL;
255}

◆ WebBrowser_Persist_Init()

void WebBrowser_Persist_Init ( WebBrowser *  This)

Definition at line 285 of file persist.c.

286{
287 This->IPersistStorage_iface.lpVtbl = &PersistStorageVtbl;
288 This->IPersistMemory_iface.lpVtbl = &PersistMemoryVtbl;
289 This->IPersistStreamInit_iface.lpVtbl = &PersistStreamInitVtbl;
290}
static const IPersistMemoryVtbl PersistMemoryVtbl
Definition: persist.c:189
static const IPersistStreamInitVtbl PersistStreamInitVtbl
Definition: persist.c:272
static const IPersistStorageVtbl PersistStorageVtbl
Definition: persist.c:105

Referenced by create_webbrowser().

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( ieframe  )

Variable Documentation

◆ PersistMemoryVtbl

const IPersistMemoryVtbl PersistMemoryVtbl
static
Initial value:
=
{
}
static HRESULT WINAPI PersistMemory_QueryInterface(IPersistMemory *iface, REFIID riid, LPVOID *ppobj)
Definition: persist.c:127
static HRESULT WINAPI PersistMemory_GetSizeMax(IPersistMemory *iface, ULONG *pCbSize)
Definition: persist.c:182
static HRESULT WINAPI PersistMemory_InitNew(IPersistMemory *iface)
Definition: persist.c:160
static HRESULT WINAPI PersistMemory_GetClassID(IPersistMemory *iface, CLSID *pClassID)
Definition: persist.c:146
static ULONG WINAPI PersistMemory_Release(IPersistMemory *iface)
Definition: persist.c:140
static HRESULT WINAPI PersistMemory_Load(IPersistMemory *iface, LPVOID pMem, ULONG cbSize)
Definition: persist.c:167
static HRESULT WINAPI PersistMemory_IsDirty(IPersistMemory *iface)
Definition: persist.c:153
static HRESULT WINAPI PersistMemory_Save(IPersistMemory *iface, LPVOID pMem, BOOL fClearDirty, ULONG cbSize)
Definition: persist.c:174
static ULONG WINAPI PersistMemory_AddRef(IPersistMemory *iface)
Definition: persist.c:134

Definition at line 189 of file persist.c.

Referenced by WebBrowser_Persist_Init().

◆ PersistStorageVtbl

const IPersistStorageVtbl PersistStorageVtbl
static
Initial value:
=
{
}
static ULONG WINAPI PersistStorage_AddRef(IPersistStorage *iface)
Definition: persist.c:44
static HRESULT WINAPI PersistStorage_SaveCompleted(IPersistStorage *iface, LPSTORAGE pStgNew)
Definition: persist.c:98
static HRESULT WINAPI PersistStorage_QueryInterface(IPersistStorage *iface, REFIID riid, LPVOID *ppobj)
Definition: persist.c:37
static HRESULT WINAPI PersistStorage_Load(IPersistStorage *iface, LPSTORAGE pStg)
Definition: persist.c:83
static HRESULT WINAPI PersistStorage_InitNew(IPersistStorage *iface, LPSTORAGE pStg)
Definition: persist.c:76
static HRESULT WINAPI PersistStorage_IsDirty(IPersistStorage *iface)
Definition: persist.c:69
static HRESULT WINAPI PersistStorage_GetClassID(IPersistStorage *iface, CLSID *pClassID)
Definition: persist.c:56
static HRESULT WINAPI PersistStorage_Save(IPersistStorage *iface, LPSTORAGE pStg, BOOL fSameAsLoad)
Definition: persist.c:90
static ULONG WINAPI PersistStorage_Release(IPersistStorage *iface)
Definition: persist.c:50

Definition at line 105 of file persist.c.

Referenced by WebBrowser_Persist_Init().

◆ PersistStreamInitVtbl

const IPersistStreamInitVtbl PersistStreamInitVtbl
static
Initial value:
=
{
}
static HRESULT WINAPI PersistStreamInit_GetSizeMax(IPersistStreamInit *iface, ULARGE_INTEGER *pcbSize)
Definition: persist.c:257
static HRESULT WINAPI PersistStreamInit_InitNew(IPersistStreamInit *iface)
Definition: persist.c:265
static ULONG WINAPI PersistStreamInit_AddRef(IPersistStreamInit *iface)
Definition: persist.c:218
static HRESULT WINAPI PersistStreamInit_IsDirty(IPersistStreamInit *iface)
Definition: persist.c:236
static ULONG WINAPI PersistStreamInit_Release(IPersistStreamInit *iface)
Definition: persist.c:224
static HRESULT WINAPI PersistStreamInit_GetClassID(IPersistStreamInit *iface, CLSID *pClassID)
Definition: persist.c:230
static HRESULT WINAPI PersistStreamInit_Load(IPersistStreamInit *iface, LPSTREAM pStg)
Definition: persist.c:242
static HRESULT WINAPI PersistStreamInit_Save(IPersistStreamInit *iface, LPSTREAM pStg, BOOL fSameAsLoad)
Definition: persist.c:249
static HRESULT WINAPI PersistStreamInit_QueryInterface(IPersistStreamInit *iface, REFIID riid, LPVOID *ppobj)
Definition: persist.c:211

Definition at line 272 of file persist.c.

Referenced by HTMLDocument_Persist_Init(), and WebBrowser_Persist_Init().