1 | /*
|
---|
2 | * Implementation of IMediaEvent[Ex] for FilterGraph.
|
---|
3 | *
|
---|
4 | * FIXME - stub.
|
---|
5 | *
|
---|
6 | * hidenori@a2.ctktv.ne.jp
|
---|
7 | */
|
---|
8 |
|
---|
9 | #include "config.h"
|
---|
10 |
|
---|
11 | #include "windef.h"
|
---|
12 | #include "winbase.h"
|
---|
13 | #include "wingdi.h"
|
---|
14 | #include "winerror.h"
|
---|
15 | #include "wine/obj_base.h"
|
---|
16 | #include "wine/obj_oleaut.h"
|
---|
17 | #include "strmif.h"
|
---|
18 | #include "control.h"
|
---|
19 | #include "uuids.h"
|
---|
20 |
|
---|
21 | #include "debugtools.h"
|
---|
22 | DEFAULT_DEBUG_CHANNEL(quartz);
|
---|
23 |
|
---|
24 | #include "quartz_private.h"
|
---|
25 | #include "fgraph.h"
|
---|
26 |
|
---|
27 |
|
---|
28 |
|
---|
29 | static HRESULT WINAPI
|
---|
30 | IMediaEventEx_fnQueryInterface(IMediaEventEx* iface,REFIID riid,void** ppobj)
|
---|
31 | {
|
---|
32 | CFilterGraph_THIS(iface,mediaevent);
|
---|
33 |
|
---|
34 | TRACE("(%p)->()\n",This);
|
---|
35 |
|
---|
36 | return IUnknown_QueryInterface(This->unk.punkControl,riid,ppobj);
|
---|
37 | }
|
---|
38 |
|
---|
39 | static ULONG WINAPI
|
---|
40 | IMediaEventEx_fnAddRef(IMediaEventEx* iface)
|
---|
41 | {
|
---|
42 | CFilterGraph_THIS(iface,mediaevent);
|
---|
43 |
|
---|
44 | TRACE("(%p)->()\n",This);
|
---|
45 |
|
---|
46 | return IUnknown_AddRef(This->unk.punkControl);
|
---|
47 | }
|
---|
48 |
|
---|
49 | static ULONG WINAPI
|
---|
50 | IMediaEventEx_fnRelease(IMediaEventEx* iface)
|
---|
51 | {
|
---|
52 | CFilterGraph_THIS(iface,mediaevent);
|
---|
53 |
|
---|
54 | TRACE("(%p)->()\n",This);
|
---|
55 |
|
---|
56 | return IUnknown_Release(This->unk.punkControl);
|
---|
57 | }
|
---|
58 |
|
---|
59 | static HRESULT WINAPI
|
---|
60 | IMediaEventEx_fnGetTypeInfoCount(IMediaEventEx* iface,UINT* pcTypeInfo)
|
---|
61 | {
|
---|
62 | CFilterGraph_THIS(iface,mediaevent);
|
---|
63 |
|
---|
64 | FIXME("(%p)->()\n",This);
|
---|
65 |
|
---|
66 | return E_NOTIMPL;
|
---|
67 | }
|
---|
68 |
|
---|
69 | static HRESULT WINAPI
|
---|
70 | IMediaEventEx_fnGetTypeInfo(IMediaEventEx* iface,UINT iTypeInfo, LCID lcid, ITypeInfo** ppobj)
|
---|
71 | {
|
---|
72 | CFilterGraph_THIS(iface,mediaevent);
|
---|
73 |
|
---|
74 | FIXME("(%p)->()\n",This);
|
---|
75 |
|
---|
76 | return E_NOTIMPL;
|
---|
77 | }
|
---|
78 |
|
---|
79 | static HRESULT WINAPI
|
---|
80 | IMediaEventEx_fnGetIDsOfNames(IMediaEventEx* iface,REFIID riid, LPOLESTR* ppwszName, UINT cNames, LCID lcid, DISPID* pDispId)
|
---|
81 | {
|
---|
82 | CFilterGraph_THIS(iface,mediaevent);
|
---|
83 |
|
---|
84 | FIXME("(%p)->()\n",This);
|
---|
85 |
|
---|
86 | return E_NOTIMPL;
|
---|
87 | }
|
---|
88 |
|
---|
89 | static HRESULT WINAPI
|
---|
90 | IMediaEventEx_fnInvoke(IMediaEventEx* iface,DISPID DispId, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS* pDispParams, VARIANT* pVarRes, EXCEPINFO* pExcepInfo, UINT* puArgErr)
|
---|
91 | {
|
---|
92 | CFilterGraph_THIS(iface,mediaevent);
|
---|
93 |
|
---|
94 | FIXME("(%p)->()\n",This);
|
---|
95 |
|
---|
96 | return E_NOTIMPL;
|
---|
97 | }
|
---|
98 |
|
---|
99 |
|
---|
100 | static HRESULT WINAPI
|
---|
101 | IMediaEventEx_fnGetEventHandle(IMediaEventEx* iface,OAEVENT* hEvent)
|
---|
102 | {
|
---|
103 | CFilterGraph_THIS(iface,mediaevent);
|
---|
104 |
|
---|
105 | FIXME("(%p)->() stub!\n",This);
|
---|
106 |
|
---|
107 | return E_NOTIMPL;
|
---|
108 | }
|
---|
109 |
|
---|
110 | static HRESULT WINAPI
|
---|
111 | IMediaEventEx_fnGetEvent(IMediaEventEx* iface,long* lEventCode,LONG_PTR* plParam1,LONG_PTR* plParam2,long lTimeOut)
|
---|
112 | {
|
---|
113 | CFilterGraph_THIS(iface,mediaevent);
|
---|
114 |
|
---|
115 | FIXME("(%p)->() stub!\n",This);
|
---|
116 |
|
---|
117 | return E_NOTIMPL;
|
---|
118 | }
|
---|
119 |
|
---|
120 | static HRESULT WINAPI
|
---|
121 | IMediaEventEx_fnWaitForCompletion(IMediaEventEx* iface,long lTimeOut,long* plEventCode)
|
---|
122 | {
|
---|
123 | CFilterGraph_THIS(iface,mediaevent);
|
---|
124 |
|
---|
125 | FIXME("(%p)->() stub!\n",This);
|
---|
126 |
|
---|
127 | return E_NOTIMPL;
|
---|
128 | }
|
---|
129 |
|
---|
130 | static HRESULT WINAPI
|
---|
131 | IMediaEventEx_fnCancelDefaultHandling(IMediaEventEx* iface,long lEventCode)
|
---|
132 | {
|
---|
133 | CFilterGraph_THIS(iface,mediaevent);
|
---|
134 |
|
---|
135 | FIXME("(%p)->() stub!\n",This);
|
---|
136 |
|
---|
137 | return E_NOTIMPL;
|
---|
138 | }
|
---|
139 |
|
---|
140 | static HRESULT WINAPI
|
---|
141 | IMediaEventEx_fnRestoreDefaultHandling(IMediaEventEx* iface,long lEventCode)
|
---|
142 | {
|
---|
143 | CFilterGraph_THIS(iface,mediaevent);
|
---|
144 |
|
---|
145 | FIXME("(%p)->() stub!\n",This);
|
---|
146 |
|
---|
147 | return E_NOTIMPL;
|
---|
148 | }
|
---|
149 |
|
---|
150 | static HRESULT WINAPI
|
---|
151 | IMediaEventEx_fnFreeEventParams(IMediaEventEx* iface,long lEventCode,LONG_PTR lParam1,LONG_PTR lParam2)
|
---|
152 | {
|
---|
153 | CFilterGraph_THIS(iface,mediaevent);
|
---|
154 |
|
---|
155 | FIXME("(%p)->() stub!\n",This);
|
---|
156 |
|
---|
157 | return E_NOTIMPL;
|
---|
158 | }
|
---|
159 |
|
---|
160 | static HRESULT WINAPI
|
---|
161 | IMediaEventEx_fnSetNotifyWindow(IMediaEventEx* iface,OAHWND hwnd,long message,LONG_PTR lParam)
|
---|
162 | {
|
---|
163 | CFilterGraph_THIS(iface,mediaevent);
|
---|
164 |
|
---|
165 | FIXME("(%p)->() stub!\n",This);
|
---|
166 |
|
---|
167 | return E_NOTIMPL;
|
---|
168 | }
|
---|
169 |
|
---|
170 | static HRESULT WINAPI
|
---|
171 | IMediaEventEx_fnSetNotifyFlags(IMediaEventEx* iface,long lNotifyFlags)
|
---|
172 | {
|
---|
173 | CFilterGraph_THIS(iface,mediaevent);
|
---|
174 |
|
---|
175 | FIXME("(%p)->() stub!\n",This);
|
---|
176 |
|
---|
177 | return E_NOTIMPL;
|
---|
178 | }
|
---|
179 |
|
---|
180 | static HRESULT WINAPI
|
---|
181 | IMediaEventEx_fnGetNotifyFlags(IMediaEventEx* iface,long* plNotifyFlags)
|
---|
182 | {
|
---|
183 | CFilterGraph_THIS(iface,mediaevent);
|
---|
184 |
|
---|
185 | FIXME("(%p)->() stub!\n",This);
|
---|
186 |
|
---|
187 | return E_NOTIMPL;
|
---|
188 | }
|
---|
189 |
|
---|
190 |
|
---|
191 |
|
---|
192 | static ICOM_VTABLE(IMediaEventEx) imediaevent =
|
---|
193 | {
|
---|
194 | ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
|
---|
195 | /* IUnknown fields */
|
---|
196 | IMediaEventEx_fnQueryInterface,
|
---|
197 | IMediaEventEx_fnAddRef,
|
---|
198 | IMediaEventEx_fnRelease,
|
---|
199 | /* IDispatch fields */
|
---|
200 | IMediaEventEx_fnGetTypeInfoCount,
|
---|
201 | IMediaEventEx_fnGetTypeInfo,
|
---|
202 | IMediaEventEx_fnGetIDsOfNames,
|
---|
203 | IMediaEventEx_fnInvoke,
|
---|
204 | /* IMediaEvent fields */
|
---|
205 | IMediaEventEx_fnGetEventHandle,
|
---|
206 | IMediaEventEx_fnGetEvent,
|
---|
207 | IMediaEventEx_fnWaitForCompletion,
|
---|
208 | IMediaEventEx_fnCancelDefaultHandling,
|
---|
209 | IMediaEventEx_fnRestoreDefaultHandling,
|
---|
210 | IMediaEventEx_fnFreeEventParams,
|
---|
211 | /* IMediaEventEx fields */
|
---|
212 | IMediaEventEx_fnSetNotifyWindow,
|
---|
213 | IMediaEventEx_fnSetNotifyFlags,
|
---|
214 | IMediaEventEx_fnGetNotifyFlags,
|
---|
215 | };
|
---|
216 |
|
---|
217 |
|
---|
218 | void CFilterGraph_InitIMediaEventEx( CFilterGraph* pfg )
|
---|
219 | {
|
---|
220 | TRACE("(%p)\n",pfg);
|
---|
221 | ICOM_VTBL(&pfg->mediaevent) = &imediaevent;
|
---|
222 | }
|
---|