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
6cbf44b5
Commit
6cbf44b5
authored
Feb 24, 2014
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 24, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wmp: Added IOleControl stub implementation.
parent
ca589fc1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
66 additions
and
0 deletions
+66
-0
oleobj.c
dlls/wmp/oleobj.c
+65
-0
wmp_private.h
dlls/wmp/wmp_private.h
+1
-0
No files found.
dlls/wmp/oleobj.c
View file @
6cbf44b5
...
@@ -261,6 +261,9 @@ static HRESULT WINAPI OleObject_QueryInterface(IOleObject *iface, REFIID riid, v
...
@@ -261,6 +261,9 @@ static HRESULT WINAPI OleObject_QueryInterface(IOleObject *iface, REFIID riid, v
}
else
if
(
IsEqualGUID
(
riid
,
&
IID_IWMPPlayer4
))
{
}
else
if
(
IsEqualGUID
(
riid
,
&
IID_IWMPPlayer4
))
{
TRACE
(
"(%p)->(IID_IWMPPlayer4 %p)
\n
"
,
This
,
ppv
);
TRACE
(
"(%p)->(IID_IWMPPlayer4 %p)
\n
"
,
This
,
ppv
);
*
ppv
=
&
This
->
IWMPPlayer4_iface
;
*
ppv
=
&
This
->
IWMPPlayer4_iface
;
}
else
if
(
IsEqualGUID
(
riid
,
&
IID_IOleControl
))
{
TRACE
(
"(%p)->(IID_IOleControl %p)
\n
"
,
This
,
ppv
);
*
ppv
=
&
This
->
IOleControl_iface
;
}
else
{
}
else
{
FIXME
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppv
);
FIXME
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppv
);
*
ppv
=
NULL
;
*
ppv
=
NULL
;
...
@@ -645,6 +648,67 @@ static const IOleInPlaceObjectWindowlessVtbl OleInPlaceObjectWindowlessVtbl = {
...
@@ -645,6 +648,67 @@ static const IOleInPlaceObjectWindowlessVtbl OleInPlaceObjectWindowlessVtbl = {
OleInPlaceObjectWindowless_GetDropTarget
OleInPlaceObjectWindowless_GetDropTarget
};
};
static
inline
WindowsMediaPlayer
*
impl_from_IOleControl
(
IOleControl
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
WindowsMediaPlayer
,
IOleControl_iface
);
}
static
HRESULT
WINAPI
OleControl_QueryInterface
(
IOleControl
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
WindowsMediaPlayer
*
This
=
impl_from_IOleControl
(
iface
);
return
IOleObject_QueryInterface
(
&
This
->
IOleObject_iface
,
riid
,
ppv
);
}
static
ULONG
WINAPI
OleControl_AddRef
(
IOleControl
*
iface
)
{
WindowsMediaPlayer
*
This
=
impl_from_IOleControl
(
iface
);
return
IOleObject_AddRef
(
&
This
->
IOleObject_iface
);
}
static
ULONG
WINAPI
OleControl_Release
(
IOleControl
*
iface
)
{
WindowsMediaPlayer
*
This
=
impl_from_IOleControl
(
iface
);
return
IOleObject_AddRef
(
&
This
->
IOleObject_iface
);
}
static
HRESULT
WINAPI
OleControl_GetControlInfo
(
IOleControl
*
iface
,
CONTROLINFO
*
pCI
)
{
WindowsMediaPlayer
*
This
=
impl_from_IOleControl
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
pCI
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
OleControl_OnMnemonic
(
IOleControl
*
iface
,
MSG
*
msg
)
{
WindowsMediaPlayer
*
This
=
impl_from_IOleControl
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
msg
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
OleControl_OnAmbientPropertyChange
(
IOleControl
*
iface
,
DISPID
dispID
)
{
WindowsMediaPlayer
*
This
=
impl_from_IOleControl
(
iface
);
FIXME
(
"(%p)->(%d)
\n
"
,
This
,
dispID
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
OleControl_FreezeEvents
(
IOleControl
*
iface
,
BOOL
freeze
)
{
WindowsMediaPlayer
*
This
=
impl_from_IOleControl
(
iface
);
FIXME
(
"(%p)->(%x)
\n
"
,
This
,
freeze
);
return
E_NOTIMPL
;
}
static
const
IOleControlVtbl
OleControlVtbl
=
{
OleControl_QueryInterface
,
OleControl_AddRef
,
OleControl_Release
,
OleControl_GetControlInfo
,
OleControl_OnMnemonic
,
OleControl_OnAmbientPropertyChange
,
OleControl_FreezeEvents
};
static
inline
WindowsMediaPlayer
*
impl_from_IProvideClassInfo2
(
IProvideClassInfo2
*
iface
)
static
inline
WindowsMediaPlayer
*
impl_from_IProvideClassInfo2
(
IProvideClassInfo2
*
iface
)
{
{
return
CONTAINING_RECORD
(
iface
,
WindowsMediaPlayer
,
IProvideClassInfo2_iface
);
return
CONTAINING_RECORD
(
iface
,
WindowsMediaPlayer
,
IProvideClassInfo2_iface
);
...
@@ -851,6 +915,7 @@ HRESULT WINAPI WMPFactory_CreateInstance(IClassFactory *iface, IUnknown *outer,
...
@@ -851,6 +915,7 @@ HRESULT WINAPI WMPFactory_CreateInstance(IClassFactory *iface, IUnknown *outer,
wmp
->
IPersistStreamInit_iface
.
lpVtbl
=
&
PersistStreamInitVtbl
;
wmp
->
IPersistStreamInit_iface
.
lpVtbl
=
&
PersistStreamInitVtbl
;
wmp
->
IOleInPlaceObjectWindowless_iface
.
lpVtbl
=
&
OleInPlaceObjectWindowlessVtbl
;
wmp
->
IOleInPlaceObjectWindowless_iface
.
lpVtbl
=
&
OleInPlaceObjectWindowlessVtbl
;
wmp
->
IConnectionPointContainer_iface
.
lpVtbl
=
&
ConnectionPointContainerVtbl
;
wmp
->
IConnectionPointContainer_iface
.
lpVtbl
=
&
ConnectionPointContainerVtbl
;
wmp
->
IOleControl_iface
.
lpVtbl
=
&
OleControlVtbl
;
wmp
->
ref
=
1
;
wmp
->
ref
=
1
;
...
...
dlls/wmp/wmp_private.h
View file @
6cbf44b5
...
@@ -28,6 +28,7 @@ struct WindowsMediaPlayer {
...
@@ -28,6 +28,7 @@ struct WindowsMediaPlayer {
IPersistStreamInit
IPersistStreamInit_iface
;
IPersistStreamInit
IPersistStreamInit_iface
;
IOleInPlaceObjectWindowless
IOleInPlaceObjectWindowless_iface
;
IOleInPlaceObjectWindowless
IOleInPlaceObjectWindowless_iface
;
IConnectionPointContainer
IConnectionPointContainer_iface
;
IConnectionPointContainer
IConnectionPointContainer_iface
;
IOleControl
IOleControl_iface
;
IWMPPlayer4
IWMPPlayer4_iface
;
IWMPPlayer4
IWMPPlayer4_iface
;
LONG
ref
;
LONG
ref
;
...
...
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