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