Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
62e7be0e
Commit
62e7be0e
authored
Oct 31, 2007
by
Chris Wulff
Committed by
Alexandre Julliard
Oct 31, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw: Add IPersistMemory interface stub.
parent
0a2008ae
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
87 additions
and
2 deletions
+87
-2
persist.c
dlls/shdocvw/persist.c
+82
-2
shdocvw.h
dlls/shdocvw/shdocvw.h
+2
-0
webbrowser.c
dlls/shdocvw/webbrowser.c
+3
-0
No files found.
dlls/shdocvw/persist.c
View file @
62e7be0e
...
...
@@ -92,8 +92,6 @@ static HRESULT WINAPI PersistStorage_SaveCompleted(IPersistStorage *iface, LPSTO
return
E_NOTIMPL
;
}
#define PERSTORAGE_THIS(ifce) DEFINE_THIS(WebBrowser, PersistStorage, iface)
static
const
IPersistStorageVtbl
PersistStorageVtbl
=
{
PersistStorage_QueryInterface
,
...
...
@@ -108,6 +106,87 @@ static const IPersistStorageVtbl PersistStorageVtbl =
};
/**********************************************************************
* Implement the IPersistMemory interface
*/
#define PERMEMORY_THIS(ifce) DEFINE_THIS(WebBrowser, PersistMemory, iface)
static
HRESULT
WINAPI
PersistMemory_QueryInterface
(
IPersistMemory
*
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
WebBrowser
*
This
=
PERMEMORY_THIS
(
iface
);
return
IWebBrowser_QueryInterface
(
WEBBROWSER
(
This
),
riid
,
ppobj
);
}
static
ULONG
WINAPI
PersistMemory_AddRef
(
IPersistMemory
*
iface
)
{
WebBrowser
*
This
=
PERMEMORY_THIS
(
iface
);
return
IWebBrowser_AddRef
(
WEBBROWSER
(
This
));
}
static
ULONG
WINAPI
PersistMemory_Release
(
IPersistMemory
*
iface
)
{
WebBrowser
*
This
=
PERMEMORY_THIS
(
iface
);
return
IWebBrowser_Release
(
WEBBROWSER
(
This
));
}
static
HRESULT
WINAPI
PersistMemory_GetClassID
(
IPersistMemory
*
iface
,
CLSID
*
pClassID
)
{
WebBrowser
*
This
=
PERMEMORY_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
pClassID
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
PersistMemory_IsDirty
(
IPersistMemory
*
iface
)
{
WebBrowser
*
This
=
PERMEMORY_THIS
(
iface
);
FIXME
(
"(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
PersistMemory_InitNew
(
IPersistMemory
*
iface
)
{
WebBrowser
*
This
=
PERMEMORY_THIS
(
iface
);
FIXME
(
"(%p)
\n
"
,
This
);
return
S_OK
;
}
static
HRESULT
WINAPI
PersistMemory_Load
(
IPersistMemory
*
iface
,
LPVOID
pMem
,
ULONG
cbSize
)
{
WebBrowser
*
This
=
PERMEMORY_THIS
(
iface
);
FIXME
(
"(%p)->(%p %x)
\n
"
,
This
,
pMem
,
cbSize
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
PersistMemory_Save
(
IPersistMemory
*
iface
,
LPVOID
pMem
,
BOOL
fClearDirty
,
ULONG
cbSize
)
{
WebBrowser
*
This
=
PERMEMORY_THIS
(
iface
);
FIXME
(
"(%p)->(%p %x %x)
\n
"
,
This
,
pMem
,
fClearDirty
,
cbSize
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
PersistMemory_GetSizeMax
(
IPersistMemory
*
iface
,
ULONG
*
pCbSize
)
{
WebBrowser
*
This
=
PERMEMORY_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
pCbSize
);
return
E_NOTIMPL
;
}
static
const
IPersistMemoryVtbl
PersistMemoryVtbl
=
{
PersistMemory_QueryInterface
,
PersistMemory_AddRef
,
PersistMemory_Release
,
PersistMemory_GetClassID
,
PersistMemory_IsDirty
,
PersistMemory_Load
,
PersistMemory_Save
,
PersistMemory_GetSizeMax
,
PersistMemory_InitNew
};
/**********************************************************************
* Implement the IPersistStreamInit interface
*/
...
...
@@ -192,5 +271,6 @@ static const IPersistStreamInitVtbl PersistStreamInitVtbl =
void
WebBrowser_Persist_Init
(
WebBrowser
*
This
)
{
This
->
lpPersistStorageVtbl
=
&
PersistStorageVtbl
;
This
->
lpPersistMemoryVtbl
=
&
PersistMemoryVtbl
;
This
->
lpPersistStreamInitVtbl
=
&
PersistStreamInitVtbl
;
}
dlls/shdocvw/shdocvw.h
View file @
62e7be0e
...
...
@@ -100,6 +100,7 @@ struct WebBrowser {
const
IOleInPlaceObjectVtbl
*
lpOleInPlaceObjectVtbl
;
const
IOleControlVtbl
*
lpOleControlVtbl
;
const
IPersistStorageVtbl
*
lpPersistStorageVtbl
;
const
IPersistMemoryVtbl
*
lpPersistMemoryVtbl
;
const
IPersistStreamInitVtbl
*
lpPersistStreamInitVtbl
;
const
IProvideClassInfo2Vtbl
*
lpProvideClassInfoVtbl
;
const
IViewObject2Vtbl
*
lpViewObjectVtbl
;
...
...
@@ -152,6 +153,7 @@ struct InternetExplorer {
#define INPLACEOBJ(x) ((IOleInPlaceObject*) &(x)->lpOleInPlaceObjectVtbl)
#define CONTROL(x) ((IOleControl*) &(x)->lpOleControlVtbl)
#define PERSTORAGE(x) ((IPersistStorage*) &(x)->lpPersistStorageVtbl)
#define PERMEMORY(x) ((IPersistMemory*) &(x)->lpPersistMemoryVtbl)
#define PERSTRINIT(x) ((IPersistStreamInit*) &(x)->lpPersistStreamInitVtbl)
#define CLASSINFO(x) ((IProvideClassInfo2*) &(x)->lpProvideClassInfoVtbl)
#define CONPTCONT(x) ((IConnectionPointContainer*) &(x)->lpConnectionPointContainerVtbl)
...
...
dlls/shdocvw/webbrowser.c
View file @
62e7be0e
...
...
@@ -72,6 +72,9 @@ static HRESULT WINAPI WebBrowser_QueryInterface(IWebBrowser2 *iface, REFIID riid
}
else
if
(
IsEqualGUID
(
&
IID_IPersistStorage
,
riid
))
{
TRACE
(
"(%p)->(IID_IPersistStorage %p)
\n
"
,
This
,
ppv
);
*
ppv
=
PERSTORAGE
(
This
);
}
else
if
(
IsEqualGUID
(
&
IID_IPersistMemory
,
riid
))
{
TRACE
(
"(%p)->(IID_IPersistStorage %p)
\n
"
,
This
,
ppv
);
*
ppv
=
PERMEMORY
(
This
);
}
else
if
(
IsEqualGUID
(
&
IID_IPersistStreamInit
,
riid
))
{
TRACE
(
"(%p)->(IID_IPersistStreamInit %p)
\n
"
,
This
,
ppv
);
*
ppv
=
PERSTRINIT
(
This
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment