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
b0b6728c
Commit
b0b6728c
authored
Feb 19, 2014
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 19, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wmp: Added IWMPPlayer4 stub implementation.
parent
92517e2c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
12 deletions
+30
-12
Makefile.in
dlls/wmp/Makefile.in
+1
-0
oleobj.c
dlls/wmp/oleobj.c
+14
-12
player.c
dlls/wmp/player.c
+0
-0
wmp_private.h
dlls/wmp/wmp_private.h
+15
-0
No files found.
dlls/wmp/Makefile.in
View file @
b0b6728c
...
...
@@ -2,6 +2,7 @@ MODULE = wmp.dll
C_SRCS
=
\
oleobj.c
\
player.c
\
wmp_main.c
RC_SRCS
=
rsrc.rc
...
...
dlls/wmp/oleobj.c
View file @
b0b6728c
...
...
@@ -23,18 +23,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
wmp
);
struct
WindowsMediaPlayer
{
IOleObject
IOleObject_iface
;
IProvideClassInfo2
IProvideClassInfo2_iface
;
IPersistStreamInit
IPersistStreamInit_iface
;
IOleInPlaceObjectWindowless
IOleInPlaceObjectWindowless_iface
;
IConnectionPointContainer
IConnectionPointContainer_iface
;
LONG
ref
;
IOleClientSite
*
client_site
;
};
static
void
release_client_site
(
WindowsMediaPlayer
*
This
)
{
if
(
!
This
->
client_site
)
...
...
@@ -83,6 +71,18 @@ static HRESULT WINAPI OleObject_QueryInterface(IOleObject *iface, REFIID riid, v
}
else
if
(
IsEqualGUID
(
riid
,
&
IID_IConnectionPointContainer
))
{
TRACE
(
"(%p)->(IID_IConnectionPointContainer %p)
\n
"
,
This
,
ppv
);
*
ppv
=
&
This
->
IConnectionPointContainer_iface
;
}
else
if
(
IsEqualGUID
(
riid
,
&
IID_IWMPCore
))
{
TRACE
(
"(%p)->(IID_IWMPCore %p)
\n
"
,
This
,
ppv
);
*
ppv
=
&
This
->
IWMPPlayer4_iface
;
}
else
if
(
IsEqualGUID
(
riid
,
&
IID_IWMPCore2
))
{
TRACE
(
"(%p)->(IID_IWMPCore2 %p)
\n
"
,
This
,
ppv
);
*
ppv
=
&
This
->
IWMPPlayer4_iface
;
}
else
if
(
IsEqualGUID
(
riid
,
&
IID_IWMPCore3
))
{
TRACE
(
"(%p)->(IID_IWMPCore3 %p)
\n
"
,
This
,
ppv
);
*
ppv
=
&
This
->
IWMPPlayer4_iface
;
}
else
if
(
IsEqualGUID
(
riid
,
&
IID_IWMPPlayer4
))
{
TRACE
(
"(%p)->(IID_IWMPPlayer4 %p)
\n
"
,
This
,
ppv
);
*
ppv
=
&
This
->
IWMPPlayer4_iface
;
}
else
{
FIXME
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppv
);
*
ppv
=
NULL
;
...
...
@@ -633,6 +633,8 @@ HRESULT WINAPI WMPFactory_CreateInstance(IClassFactory *iface, IUnknown *outer,
wmp
->
ref
=
1
;
init_player_ifaces
(
wmp
);
hres
=
IOleObject_QueryInterface
(
&
wmp
->
IOleObject_iface
,
riid
,
ppv
);
IOleObject_Release
(
&
wmp
->
IOleObject_iface
);
return
hres
;
...
...
dlls/wmp/player.c
0 → 100644
View file @
b0b6728c
This diff is collapsed.
Click to expand it.
dlls/wmp/wmp_private.h
View file @
b0b6728c
...
...
@@ -22,6 +22,21 @@
#include "ole2.h"
#include "wmp.h"
struct
WindowsMediaPlayer
{
IOleObject
IOleObject_iface
;
IProvideClassInfo2
IProvideClassInfo2_iface
;
IPersistStreamInit
IPersistStreamInit_iface
;
IOleInPlaceObjectWindowless
IOleInPlaceObjectWindowless_iface
;
IConnectionPointContainer
IConnectionPointContainer_iface
;
IWMPPlayer4
IWMPPlayer4_iface
;
LONG
ref
;
IOleClientSite
*
client_site
;
};
void
init_player_ifaces
(
WindowsMediaPlayer
*
)
DECLSPEC_HIDDEN
;
HRESULT
WINAPI
WMPFactory_CreateInstance
(
IClassFactory
*
,
IUnknown
*
,
REFIID
,
void
**
)
DECLSPEC_HIDDEN
;
static
inline
void
*
heap_alloc
(
size_t
len
)
...
...
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