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
41c0d35a
Commit
41c0d35a
authored
Mar 01, 2009
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Mar 02, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw/tests: Add IServiceProvider to the webbrowser test.
parent
56031d2b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
69 additions
and
0 deletions
+69
-0
webbrowser.c
dlls/shdocvw/tests/webbrowser.c
+69
-0
No files found.
dlls/shdocvw/tests/webbrowser.c
View file @
41c0d35a
...
...
@@ -31,12 +31,14 @@
#include "htiframe.h"
#include "mshtmhst.h"
#include "mshtmcid.h"
#include "mshtml.h"
#include "idispids.h"
#include "olectl.h"
#include "mshtmdid.h"
#include "shobjidl.h"
#include "shlguid.h"
#include "exdispid.h"
#include "mimeinfo.h"
DEFINE_GUID
(
GUID_NULL
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
);
...
...
@@ -1270,6 +1272,71 @@ static const IDocHostUIHandler2Vtbl DocHostUIHandlerVtbl = {
static
IDocHostUIHandler2
DocHostUIHandler
=
{
&
DocHostUIHandlerVtbl
};
static
HRESULT
WINAPI
ServiceProvider_QueryInterface
(
IServiceProvider
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
return
QueryInterface
(
riid
,
ppv
);
}
static
ULONG
WINAPI
ServiceProvider_AddRef
(
IServiceProvider
*
iface
)
{
return
2
;
}
static
ULONG
WINAPI
ServiceProvider_Release
(
IServiceProvider
*
iface
)
{
return
1
;
}
static
HRESULT
WINAPI
ServiceProvider_QueryService
(
IServiceProvider
*
iface
,
REFGUID
guidService
,
REFIID
riid
,
void
**
ppv
)
{
*
ppv
=
NULL
;
if
(
IsEqualGUID
(
&
SID_STopLevelBrowser
,
guidService
))
trace
(
"Service SID_STopLevelBrowser
\n
"
);
else
if
(
IsEqualGUID
(
&
SID_SEditCommandTarget
,
guidService
))
trace
(
"Service SID_SEditCommandTarget
\n
"
);
else
if
(
IsEqualGUID
(
&
IID_ITargetFrame2
,
guidService
))
trace
(
"Service IID_ITargetFrame2
\n
"
);
else
if
(
IsEqualGUID
(
&
SID_SInternetSecurityManager
,
guidService
))
trace
(
"Service SID_SInternetSecurityManager
\n
"
);
else
if
(
IsEqualGUID
(
&
SID_SOleUndoManager
,
guidService
))
trace
(
"Service SID_SOleUndoManager
\n
"
);
else
if
(
IsEqualGUID
(
&
SID_IMimeInfo
,
guidService
))
trace
(
"Service SID_IMimeInfo
\n
"
);
else
if
(
IsEqualGUID
(
&
SID_STopWindow
,
guidService
))
trace
(
"Service SID_STopWindow
\n
"
);
/* 30D02401-6A81-11D0-8274-00C04FD5AE38 Explorer Bar: Search */
/* D1E7AFEC-6A2E-11D0-8C78-00C04FD918B4 no info */
/* A9227C3C-7F8E-11D0-8CB0-00A0C92DBFE8 no info */
/* 371EA634-DC5C-11D1-BA57-00C04FC2040E one reference to IVersionHost */
/* 3050F429-98B5-11CF-BB82-00AA00BDCE0B IID_IElementBehaviorFactory */
/* 6D12FE80-7911-11CF-9534-0000C05BAE0B SID_DefView */
/* AD7F6C62-F6BD-11D2-959B-006097C553C8 no info */
/* 53A2D5B1-D2FC-11D0-84E0-006097C9987D no info */
/* 3050F312-98B5-11CF-BB82-00AA00BDCE0B HTMLFrameBaseClass */
/* 639447BD-B2D3-44B9-9FB0-510F23CB45E4 no info */
/* 20C46561-8491-11CF-960C-0080C7F4EE85 no info */
else
trace
(
"Service %s not supported
\n
"
,
debugstr_guid
(
guidService
));
return
E_NOINTERFACE
;
}
static
const
IServiceProviderVtbl
ServiceProviderVtbl
=
{
ServiceProvider_QueryInterface
,
ServiceProvider_AddRef
,
ServiceProvider_Release
,
ServiceProvider_QueryService
};
static
IServiceProvider
ServiceProvider
=
{
&
ServiceProviderVtbl
};
static
HRESULT
QueryInterface
(
REFIID
riid
,
void
**
ppv
)
{
*
ppv
=
NULL
;
...
...
@@ -1286,6 +1353,8 @@ static HRESULT QueryInterface(REFIID riid, void **ppv)
*
ppv
=
&
DocHostUIHandler
;
else
if
(
IsEqualGUID
(
&
IID_IDispatch
,
riid
))
*
ppv
=
&
Dispatch
;
else
if
(
IsEqualGUID
(
&
IID_IServiceProvider
,
riid
))
*
ppv
=
&
ServiceProvider
;
if
(
*
ppv
)
return
S_OK
;
...
...
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