mfplat: Implement IMFAttributes::GetItemByIndex().
[wine.git] / dlls / wmvcore / reader.c
blobd35f29d66e849e161560132ac97f43e3bd4d3a57
1 /*
2 * Copyright 2012 Austin English
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #include "wmvcore.h"
21 #include "wmsdk.h"
22 #include "wine/debug.h"
23 #include "wine/heap.h"
25 WINE_DEFAULT_DEBUG_CHANNEL(wmvcore);
27 typedef struct {
28 IWMReader IWMReader_iface;
29 IWMReaderAdvanced6 IWMReaderAdvanced6_iface;
30 IWMReaderAccelerator IWMReaderAccelerator_iface;
31 IWMReaderNetworkConfig2 IWMReaderNetworkConfig2_iface;
32 IWMReaderStreamClock IWMReaderStreamClock_iface;
33 IWMReaderTypeNegotiation IWMReaderTypeNegotiation_iface;
34 IWMReaderTimecode IWMReaderTimecode_iface;
35 IWMReaderPlaylistBurn IWMReaderPlaylistBurn_iface;
36 IWMHeaderInfo3 IWMHeaderInfo3_iface;
37 IWMLanguageList IWMLanguageList_iface;
38 IReferenceClock IReferenceClock_iface;
39 IWMProfile3 IWMProfile3_iface;
40 IWMPacketSize2 IWMPacketSize2_iface;
41 LONG ref;
42 } WMReader;
44 static inline WMReader *impl_from_IWMReader(IWMReader *iface)
46 return CONTAINING_RECORD(iface, WMReader, IWMReader_iface);
49 static HRESULT WINAPI WMReader_QueryInterface(IWMReader *iface, REFIID riid, void **ppv)
51 WMReader *This = impl_from_IWMReader(iface);
53 if(IsEqualGUID(riid, &IID_IUnknown)) {
54 TRACE("(%p)->(IID_IUnknown %p)\n", This, ppv);
55 *ppv = &This->IWMReader_iface;
56 }else if(IsEqualGUID(riid, &IID_IWMReader)) {
57 TRACE("(%p)->(IID_IWMReader %p)\n", This, ppv);
58 *ppv = &This->IWMReader_iface;
59 }else if(IsEqualGUID(riid, &IID_IWMReaderAdvanced)) {
60 TRACE("(%p)->(IID_IWMReaderAdvanced %p)\n", This, ppv);
61 *ppv = &This->IWMReaderAdvanced6_iface;
62 }else if(IsEqualGUID(riid, &IID_IWMReaderAdvanced2)) {
63 TRACE("(%p)->(IID_IWMReaderAdvanced2 %p)\n", This, ppv);
64 *ppv = &This->IWMReaderAdvanced6_iface;
65 }else if(IsEqualGUID(riid, &IID_IWMReaderAdvanced3)) {
66 TRACE("(%p)->(IID_IWMReaderAdvanced3 %p)\n", This, ppv);
67 *ppv = &This->IWMReaderAdvanced6_iface;
68 }else if(IsEqualGUID(riid, &IID_IWMReaderAdvanced4)) {
69 TRACE("(%p)->(IID_IWMReaderAdvanced4 %p)\n", This, ppv);
70 *ppv = &This->IWMReaderAdvanced6_iface;
71 }else if(IsEqualGUID(riid, &IID_IWMReaderAdvanced5)) {
72 TRACE("(%p)->(IID_IWMReaderAdvanced5 %p)\n", This, ppv);
73 *ppv = &This->IWMReaderAdvanced6_iface;
74 }else if(IsEqualGUID(riid, &IID_IWMReaderAdvanced6)) {
75 TRACE("(%p)->(IID_IWMReaderAdvanced6 %p)\n", This, ppv);
76 *ppv = &This->IWMReaderAdvanced6_iface;
77 }else if(IsEqualGUID(riid, &IID_IWMReaderAccelerator)) {
78 TRACE("(%p)->(IID_IWMReaderAccelerator %p)\n", This, ppv);
79 *ppv = &This->IWMReaderAccelerator_iface;
80 }else if(IsEqualGUID(riid, &IID_IWMReaderNetworkConfig)) {
81 TRACE("(%p)->(IWMReaderNetworkConfig %p)\n", This, ppv);
82 *ppv = &This->IWMReaderNetworkConfig2_iface;
83 }else if(IsEqualGUID(riid, &IID_IWMReaderNetworkConfig2)) {
84 TRACE("(%p)->(IWMReaderNetworkConfig2 %p)\n", This, ppv);
85 *ppv = &This->IWMReaderNetworkConfig2_iface;
86 }else if(IsEqualGUID(riid, &IID_IWMReaderStreamClock)) {
87 TRACE("(%p)->(IWMReaderStreamClock %p)\n", This, ppv);
88 *ppv = &This->IWMReaderStreamClock_iface;
89 }else if(IsEqualGUID(riid, &IID_IWMReaderTypeNegotiation)) {
90 TRACE("(%p)->(IWMReaderTypeNegotiation %p)\n", This, ppv);
91 *ppv = &This->IWMReaderTypeNegotiation_iface;
92 }else if(IsEqualGUID(riid, &IID_IWMReaderTimecode)) {
93 TRACE("(%p)->(IWMReaderTimecode %p)\n", This, ppv);
94 *ppv = &This->IWMReaderTimecode_iface;
95 }else if(IsEqualGUID(riid, &IID_IWMReaderPlaylistBurn)) {
96 TRACE("(%p)->(IWMReaderPlaylistBurn %p)\n", This, ppv);
97 *ppv = &This->IWMReaderPlaylistBurn_iface;
98 }else if(IsEqualGUID(riid, &IID_IWMHeaderInfo)) {
99 TRACE("(%p)->(IWMHeaderInfo %p)\n", This, ppv);
100 *ppv = &This->IWMHeaderInfo3_iface;
101 }else if(IsEqualGUID(riid, &IID_IWMHeaderInfo2)) {
102 TRACE("(%p)->(IWMHeaderInfo2 %p)\n", This, ppv);
103 *ppv = &This->IWMHeaderInfo3_iface;
104 }else if(IsEqualGUID(riid, &IID_IWMHeaderInfo3)) {
105 TRACE("(%p)->(IWMHeaderInfo3 %p)\n", This, ppv);
106 *ppv = &This->IWMHeaderInfo3_iface;
107 }else if(IsEqualGUID(riid, &IID_IWMLanguageList)) {
108 TRACE("(%p)->(IWMLanguageList %p)\n", This, ppv);
109 *ppv = &This->IWMLanguageList_iface;
110 }else if(IsEqualGUID(riid, &IID_IReferenceClock)) {
111 TRACE("(%p)->(IWMLanguageList %p)\n", This, ppv);
112 *ppv = &This->IReferenceClock_iface;
113 }else if(IsEqualGUID(riid, &IID_IWMProfile)) {
114 TRACE("(%p)->(IWMProfile %p)\n", This, ppv);
115 *ppv = &This->IWMProfile3_iface;
116 }else if(IsEqualGUID(riid, &IID_IWMProfile2)) {
117 TRACE("(%p)->(IWMProfile2 %p)\n", This, ppv);
118 *ppv = &This->IWMProfile3_iface;
119 }else if(IsEqualGUID(riid, &IID_IWMProfile3)) {
120 TRACE("(%p)->(IWMProfile3 %p)\n", This, ppv);
121 *ppv = &This->IWMProfile3_iface;
122 }else if(IsEqualGUID(riid, &IID_IWMPacketSize)) {
123 TRACE("(%p)->(IWMPacketSize %p)\n", This, ppv);
124 *ppv = &This->IWMPacketSize2_iface;
125 }else if(IsEqualGUID(riid, &IID_IWMPacketSize2)) {
126 TRACE("(%p)->(IWMPacketSize2 %p)\n", This, ppv);
127 *ppv = &This->IWMPacketSize2_iface;
128 }else {
129 *ppv = NULL;
130 FIXME("(%p)->(%s %p)\n", This, debugstr_guid(riid), ppv);
131 return E_NOINTERFACE;
134 IUnknown_AddRef((IUnknown*)*ppv);
135 return S_OK;
138 static ULONG WINAPI WMReader_AddRef(IWMReader *iface)
140 WMReader *This = impl_from_IWMReader(iface);
141 LONG ref = InterlockedIncrement(&This->ref);
143 TRACE("(%p) ref=%d\n", This, ref);
145 return ref;
148 static ULONG WINAPI WMReader_Release(IWMReader *iface)
150 WMReader *This = impl_from_IWMReader(iface);
151 LONG ref = InterlockedDecrement(&This->ref);
153 TRACE("(%p) ref=%d\n", This, ref);
155 if(!ref)
156 heap_free(This);
158 return ref;
161 static HRESULT WINAPI WMReader_Open(IWMReader *iface, const WCHAR *url, IWMReaderCallback *callback, void *context)
163 WMReader *This = impl_from_IWMReader(iface);
164 FIXME("(%p)->(%s %p %p)\n", This, debugstr_w(url), callback, context);
165 return E_NOTIMPL;
168 static HRESULT WINAPI WMReader_Close(IWMReader *iface)
170 WMReader *This = impl_from_IWMReader(iface);
171 FIXME("(%p)\n", This);
172 return E_NOTIMPL;
175 static HRESULT WINAPI WMReader_GetOutputCount(IWMReader *iface, DWORD *outputs)
177 WMReader *This = impl_from_IWMReader(iface);
178 FIXME("(%p)->(%p)\n", This, outputs);
179 return E_NOTIMPL;
182 static HRESULT WINAPI WMReader_GetOutputProps(IWMReader *iface, DWORD output_num, IWMOutputMediaProps **output)
184 WMReader *This = impl_from_IWMReader(iface);
185 FIXME("(%p)->(%u %p)\n", This, output_num, output);
186 return E_NOTIMPL;
189 static HRESULT WINAPI WMReader_SetOutputProps(IWMReader *iface, DWORD output_num, IWMOutputMediaProps *output)
191 WMReader *This = impl_from_IWMReader(iface);
192 FIXME("(%p)->(%u %p)\n", This, output_num, output);
193 return E_NOTIMPL;
196 static HRESULT WINAPI WMReader_GetOutputFormatCount(IWMReader *iface, DWORD output_num, DWORD *formats)
198 WMReader *This = impl_from_IWMReader(iface);
199 FIXME("(%p)->(%u %p)\n", This, output_num, formats);
200 return E_NOTIMPL;
203 static HRESULT WINAPI WMReader_GetOutputFormat(IWMReader *iface, DWORD output_num, DWORD format_num, IWMOutputMediaProps **props)
205 WMReader *This = impl_from_IWMReader(iface);
206 FIXME("(%p)->(%u %u %p)\n", This, output_num, format_num, props);
207 return E_NOTIMPL;
210 static HRESULT WINAPI WMReader_Start(IWMReader *iface, QWORD start, QWORD duration, float rate, void *context)
212 WMReader *This = impl_from_IWMReader(iface);
213 FIXME("(%p)->(%s %s %f %p)\n", This, wine_dbgstr_longlong(start), wine_dbgstr_longlong(duration), rate, context);
214 return E_NOTIMPL;
217 static HRESULT WINAPI WMReader_Stop(IWMReader *iface)
219 WMReader *This = impl_from_IWMReader(iface);
220 FIXME("(%p)\n", This);
221 return E_NOTIMPL;
224 static HRESULT WINAPI WMReader_Pause(IWMReader *iface)
226 WMReader *This = impl_from_IWMReader(iface);
227 FIXME("(%p)\n", This);
228 return E_NOTIMPL;
231 static HRESULT WINAPI WMReader_Resume(IWMReader *iface)
233 WMReader *This = impl_from_IWMReader(iface);
234 FIXME("(%p)\n", This);
235 return E_NOTIMPL;
238 static const IWMReaderVtbl WMReaderVtbl = {
239 WMReader_QueryInterface,
240 WMReader_AddRef,
241 WMReader_Release,
242 WMReader_Open,
243 WMReader_Close,
244 WMReader_GetOutputCount,
245 WMReader_GetOutputProps,
246 WMReader_SetOutputProps,
247 WMReader_GetOutputFormatCount,
248 WMReader_GetOutputFormat,
249 WMReader_Start,
250 WMReader_Stop,
251 WMReader_Pause,
252 WMReader_Resume
255 static inline WMReader *impl_from_IWMReaderAdvanced6(IWMReaderAdvanced6 *iface)
257 return CONTAINING_RECORD(iface, WMReader, IWMReaderAdvanced6_iface);
260 static HRESULT WINAPI WMReaderAdvanced_QueryInterface(IWMReaderAdvanced6 *iface, REFIID riid, void **ppv)
262 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
263 return IWMReader_QueryInterface(&This->IWMReader_iface, riid, ppv);
266 static ULONG WINAPI WMReaderAdvanced_AddRef(IWMReaderAdvanced6 *iface)
268 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
269 return IWMReader_AddRef(&This->IWMReader_iface);
272 static ULONG WINAPI WMReaderAdvanced_Release(IWMReaderAdvanced6 *iface)
274 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
275 return IWMReader_Release(&This->IWMReader_iface);
278 static HRESULT WINAPI WMReaderAdvanced_SetUserProvidedClock(IWMReaderAdvanced6 *iface, BOOL user_clock)
280 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
281 FIXME("(%p)->(%x)\n", This, user_clock);
282 return E_NOTIMPL;
285 static HRESULT WINAPI WMReaderAdvanced_GetUserProvidedClock(IWMReaderAdvanced6 *iface, BOOL *user_clock)
287 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
288 FIXME("(%p)->(%p)\n", This, user_clock);
289 return E_NOTIMPL;
292 static HRESULT WINAPI WMReaderAdvanced_DeliverTime(IWMReaderAdvanced6 *iface, QWORD time)
294 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
295 FIXME("(%p)->(%s)\n", This, wine_dbgstr_longlong(time));
296 return E_NOTIMPL;
299 static HRESULT WINAPI WMReaderAdvanced_SetManualStreamSelection(IWMReaderAdvanced6 *iface, BOOL selection)
301 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
302 FIXME("(%p)->(%x)\n", This, selection);
303 return E_NOTIMPL;
306 static HRESULT WINAPI WMReaderAdvanced_GetManualStreamSelection(IWMReaderAdvanced6 *iface, BOOL *selection)
308 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
309 FIXME("(%p)->(%p)\n", This, selection);
310 return E_NOTIMPL;
313 static HRESULT WINAPI WMReaderAdvanced_SetStreamsSelected(IWMReaderAdvanced6 *iface, WORD stream_count,
314 WORD *stream_numbers, WMT_STREAM_SELECTION *selections)
316 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
317 FIXME("(%p)->(%d %p %p)\n", This, stream_count, stream_numbers, selections);
318 return E_NOTIMPL;
321 static HRESULT WINAPI WMReaderAdvanced_GetStreamSelected(IWMReaderAdvanced6 *iface, WORD stream_num,
322 WMT_STREAM_SELECTION *selection)
324 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
325 FIXME("(%p)->(%d %p)\n", This, stream_num, selection);
326 return E_NOTIMPL;
329 static HRESULT WINAPI WMReaderAdvanced_SetReceiveSelectionCallbacks(IWMReaderAdvanced6 *iface, BOOL get_callbacks)
331 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
332 FIXME("(%p)->(%x)\n", This, get_callbacks);
333 return E_NOTIMPL;
336 static HRESULT WINAPI WMReaderAdvanced_GetReceiveSelectionCallbacks(IWMReaderAdvanced6 *iface, BOOL *get_callbacks)
338 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
339 FIXME("(%p)->(%p)\n", This, get_callbacks);
340 return E_NOTIMPL;
343 static HRESULT WINAPI WMReaderAdvanced_SetReceiveStreamSamples(IWMReaderAdvanced6 *iface, WORD stream_num,
344 BOOL receive_stream_samples)
346 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
347 FIXME("(%p)->(%d %x)\n", This, stream_num, receive_stream_samples);
348 return E_NOTIMPL;
351 static HRESULT WINAPI WMReaderAdvanced_GetReceiveStreamSamples(IWMReaderAdvanced6 *iface, WORD stream_num,
352 BOOL *receive_stream_samples)
354 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
355 FIXME("(%p)->(%d %p)\n", This, stream_num, receive_stream_samples);
356 return E_NOTIMPL;
359 static HRESULT WINAPI WMReaderAdvanced_SetAllocateForOutput(IWMReaderAdvanced6 *iface, DWORD output_num, BOOL allocate)
361 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
362 FIXME("(%p)->(%d %x)\n", This, output_num, allocate);
363 return E_NOTIMPL;
366 static HRESULT WINAPI WMReaderAdvanced_GetAllocateForOutput(IWMReaderAdvanced6 *iface, DWORD output_num, BOOL *allocate)
368 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
369 FIXME("(%p)->(%d %p)\n", This, output_num, allocate);
370 return E_NOTIMPL;
373 static HRESULT WINAPI WMReaderAdvanced_SetAllocateForStream(IWMReaderAdvanced6 *iface, WORD output_num, BOOL allocate)
375 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
376 FIXME("(%p)->(%d %x)\n", This, output_num, allocate);
377 return E_NOTIMPL;
380 static HRESULT WINAPI WMReaderAdvanced_GetAllocateForStream(IWMReaderAdvanced6 *iface, WORD output_num, BOOL *allocate)
382 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
383 FIXME("(%p)->(%d %p)\n", This, output_num, allocate);
384 return E_NOTIMPL;
387 static HRESULT WINAPI WMReaderAdvanced_GetStatistics(IWMReaderAdvanced6 *iface, WM_READER_STATISTICS *statistics)
389 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
390 FIXME("(%p)->(%p)\n", This, statistics);
391 return E_NOTIMPL;
394 static HRESULT WINAPI WMReaderAdvanced_SetClientInfo(IWMReaderAdvanced6 *iface, WM_READER_CLIENTINFO *client_info)
396 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
397 FIXME("(%p)->(%p)\n", This, client_info);
398 return E_NOTIMPL;
401 static HRESULT WINAPI WMReaderAdvanced_GetMaxOutputSampleSize(IWMReaderAdvanced6 *iface, DWORD output, DWORD *max)
403 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
404 FIXME("(%p)->(%d %p)\n", This, output, max);
405 return E_NOTIMPL;
408 static HRESULT WINAPI WMReaderAdvanced_GetMaxStreamSampleSize(IWMReaderAdvanced6 *iface, WORD stream, DWORD *max)
410 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
411 FIXME("(%p)->(%d %p)\n", This, stream, max);
412 return E_NOTIMPL;
415 static HRESULT WINAPI WMReaderAdvanced_NotifyLateDelivery(IWMReaderAdvanced6 *iface, QWORD lateness)
417 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
418 FIXME("(%p)->(%s)\n", This, wine_dbgstr_longlong(lateness));
419 return E_NOTIMPL;
422 static HRESULT WINAPI WMReaderAdvanced2_SetPlayMode(IWMReaderAdvanced6 *iface, WMT_PLAY_MODE mode)
424 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
425 FIXME("(%p)->(%d)\n", This, mode);
426 return E_NOTIMPL;
429 static HRESULT WINAPI WMReaderAdvanced2_GetPlayMode(IWMReaderAdvanced6 *iface, WMT_PLAY_MODE *mode)
431 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
432 FIXME("(%p)->(%p)\n", This, mode);
433 return E_NOTIMPL;
436 static HRESULT WINAPI WMReaderAdvanced2_GetBufferProgress(IWMReaderAdvanced6 *iface, DWORD *percent, QWORD *buffering)
438 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
439 FIXME("(%p)->(%p %p)\n", This, percent, buffering);
440 return E_NOTIMPL;
443 static HRESULT WINAPI WMReaderAdvanced2_GetDownloadProgress(IWMReaderAdvanced6 *iface, DWORD *percent,
444 QWORD *bytes_downloaded, QWORD *download)
446 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
447 FIXME("(%p)->(%p %p %p)\n", This, percent, bytes_downloaded, download);
448 return E_NOTIMPL;
451 static HRESULT WINAPI WMReaderAdvanced2_GetSaveAsProgress(IWMReaderAdvanced6 *iface, DWORD *percent)
453 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
454 FIXME("(%p)->(%p)\n", This, percent);
455 return E_NOTIMPL;
458 static HRESULT WINAPI WMReaderAdvanced2_SaveFileAs(IWMReaderAdvanced6 *iface, const WCHAR *filename)
460 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
461 FIXME("(%p)->(%s)\n", This, debugstr_w(filename));
462 return E_NOTIMPL;
465 static HRESULT WINAPI WMReaderAdvanced2_GetProtocolName(IWMReaderAdvanced6 *iface, WCHAR *protocol, DWORD *protocol_len)
467 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
468 FIXME("(%p)->(%p %p)\n", This, protocol, protocol_len);
469 return E_NOTIMPL;
472 static HRESULT WINAPI WMReaderAdvanced2_StartAtMarker(IWMReaderAdvanced6 *iface, WORD marker_index,
473 QWORD duration, float rate, void *context)
475 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
476 FIXME("(%p)->(%d %s %f %p)\n", This, marker_index, wine_dbgstr_longlong(duration), rate, context);
477 return E_NOTIMPL;
480 static HRESULT WINAPI WMReaderAdvanced2_GetOutputSetting(IWMReaderAdvanced6 *iface, DWORD output_num,
481 const WCHAR *name, WMT_ATTR_DATATYPE *type, BYTE *value, WORD *length)
483 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
484 FIXME("(%p)->(%d %s %p %p %p)\n", This, output_num, debugstr_w(name), type, value, length);
485 return E_NOTIMPL;
488 static HRESULT WINAPI WMReaderAdvanced2_SetOutputSetting(IWMReaderAdvanced6 *iface, DWORD output_num,
489 const WCHAR *name, WMT_ATTR_DATATYPE type, const BYTE *value, WORD length)
491 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
492 FIXME("(%p)->(%d %s %d %p %d)\n", This, output_num, debugstr_w(name), type, value, length);
493 return E_NOTIMPL;
496 static HRESULT WINAPI WMReaderAdvanced2_Preroll(IWMReaderAdvanced6 *iface, QWORD start, QWORD duration, float rate)
498 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
499 FIXME("(%p)->(%s %s %f)\n", This, wine_dbgstr_longlong(start), wine_dbgstr_longlong(duration), rate);
500 return E_NOTIMPL;
503 static HRESULT WINAPI WMReaderAdvanced2_SetLogClientID(IWMReaderAdvanced6 *iface, BOOL log_client_id)
505 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
506 FIXME("(%p)->(%x)\n", This, log_client_id);
507 return E_NOTIMPL;
510 static HRESULT WINAPI WMReaderAdvanced2_GetLogClientID(IWMReaderAdvanced6 *iface, BOOL *log_client_id)
512 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
513 FIXME("(%p)->(%p)\n", This, log_client_id);
514 return E_NOTIMPL;
517 static HRESULT WINAPI WMReaderAdvanced2_StopBuffering(IWMReaderAdvanced6 *iface)
519 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
520 FIXME("(%p)\n", This);
521 return E_NOTIMPL;
524 static HRESULT WINAPI WMReaderAdvanced2_OpenStream(IWMReaderAdvanced6 *iface, IStream *stream,
525 IWMReaderCallback *callback, void *context)
527 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
528 FIXME("(%p)->(%p %p %p)\n", This, stream, callback, context);
529 return E_NOTIMPL;
532 static HRESULT WINAPI WMReaderAdvanced3_StopNetStreaming(IWMReaderAdvanced6 *iface)
534 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
535 FIXME("(%p)\n", This);
536 return E_NOTIMPL;
539 static HRESULT WINAPI WMReaderAdvanced3_StartAtPosition(IWMReaderAdvanced6 *iface, WORD stream_num,
540 void *offset_start, void *duration, WMT_OFFSET_FORMAT format, float rate, void *context)
542 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
543 FIXME("(%p)->(%d %p %p %d %f %p)\n", This, stream_num, offset_start, duration, format, rate, context);
544 return E_NOTIMPL;
547 static HRESULT WINAPI WMReaderAdvanced4_GetLanguageCount(IWMReaderAdvanced6 *iface, DWORD output_num, WORD *language_count)
549 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
550 FIXME("(%p)->(%d %p)\n", This, output_num, language_count);
551 return E_NOTIMPL;
554 static HRESULT WINAPI WMReaderAdvanced4_GetLanguage(IWMReaderAdvanced6 *iface, DWORD output_num,
555 WORD language, WCHAR *language_string, WORD *language_string_len)
557 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
558 FIXME("(%p)->(%d %x %p %p)\n", This, output_num, language, language_string, language_string_len);
559 return E_NOTIMPL;
562 static HRESULT WINAPI WMReaderAdvanced4_GetMaxSpeedFactor(IWMReaderAdvanced6 *iface, double *factor)
564 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
565 FIXME("(%p)->(%p)\n", This, factor);
566 return E_NOTIMPL;
569 static HRESULT WINAPI WMReaderAdvanced4_IsUsingFastCache(IWMReaderAdvanced6 *iface, BOOL *using_fast_cache)
571 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
572 FIXME("(%p)->(%p)\n", This, using_fast_cache);
573 return E_NOTIMPL;
576 static HRESULT WINAPI WMReaderAdvanced4_AddLogParam(IWMReaderAdvanced6 *iface, const WCHAR *namespace,
577 const WCHAR *name, const WCHAR *value)
579 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
580 FIXME("(%p)->(%s %s %s)\n", This, debugstr_w(namespace), debugstr_w(name), debugstr_w(value));
581 return E_NOTIMPL;
584 static HRESULT WINAPI WMReaderAdvanced4_SendLogParams(IWMReaderAdvanced6 *iface)
586 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
587 FIXME("(%p)\n", This);
588 return E_NOTIMPL;
591 static HRESULT WINAPI WMReaderAdvanced4_CanSaveFileAs(IWMReaderAdvanced6 *iface, BOOL *can_save)
593 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
594 FIXME("(%p)->(%p)\n", This, can_save);
595 return E_NOTIMPL;
598 static HRESULT WINAPI WMReaderAdvanced4_CancelSaveFileAs(IWMReaderAdvanced6 *iface)
600 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
601 FIXME("(%p)\n", This);
602 return E_NOTIMPL;
605 static HRESULT WINAPI WMReaderAdvanced4_GetURL(IWMReaderAdvanced6 *iface, WCHAR *url, DWORD *url_len)
607 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
608 FIXME("(%p)->(%p %p)\n", This, url, url_len);
609 return E_NOTIMPL;
612 static HRESULT WINAPI WMReaderAdvanced5_SetPlayerHook(IWMReaderAdvanced6 *iface, DWORD output_num, IWMPlayerHook *hook)
614 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
615 FIXME("(%p)->(%d %p)\n", This, output_num, hook);
616 return E_NOTIMPL;
619 static HRESULT WINAPI WMReaderAdvanced6_SetProtextStreamSamples(IWMReaderAdvanced6 *iface, BYTE *cert,
620 DWORD cert_size, DWORD cert_type, DWORD flags, BYTE *initialization_vector, DWORD *initialization_vector_size)
622 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
623 FIXME("(%p)->(%p %d %d %x %p %p)\n", This, cert, cert_size, cert_type, flags, initialization_vector,
624 initialization_vector_size);
625 return E_NOTIMPL;
628 static const IWMReaderAdvanced6Vtbl WMReaderAdvanced6Vtbl = {
629 WMReaderAdvanced_QueryInterface,
630 WMReaderAdvanced_AddRef,
631 WMReaderAdvanced_Release,
632 WMReaderAdvanced_SetUserProvidedClock,
633 WMReaderAdvanced_GetUserProvidedClock,
634 WMReaderAdvanced_DeliverTime,
635 WMReaderAdvanced_SetManualStreamSelection,
636 WMReaderAdvanced_GetManualStreamSelection,
637 WMReaderAdvanced_SetStreamsSelected,
638 WMReaderAdvanced_GetStreamSelected,
639 WMReaderAdvanced_SetReceiveSelectionCallbacks,
640 WMReaderAdvanced_GetReceiveSelectionCallbacks,
641 WMReaderAdvanced_SetReceiveStreamSamples,
642 WMReaderAdvanced_GetReceiveStreamSamples,
643 WMReaderAdvanced_SetAllocateForOutput,
644 WMReaderAdvanced_GetAllocateForOutput,
645 WMReaderAdvanced_SetAllocateForStream,
646 WMReaderAdvanced_GetAllocateForStream,
647 WMReaderAdvanced_GetStatistics,
648 WMReaderAdvanced_SetClientInfo,
649 WMReaderAdvanced_GetMaxOutputSampleSize,
650 WMReaderAdvanced_GetMaxStreamSampleSize,
651 WMReaderAdvanced_NotifyLateDelivery,
652 WMReaderAdvanced2_SetPlayMode,
653 WMReaderAdvanced2_GetPlayMode,
654 WMReaderAdvanced2_GetBufferProgress,
655 WMReaderAdvanced2_GetDownloadProgress,
656 WMReaderAdvanced2_GetSaveAsProgress,
657 WMReaderAdvanced2_SaveFileAs,
658 WMReaderAdvanced2_GetProtocolName,
659 WMReaderAdvanced2_StartAtMarker,
660 WMReaderAdvanced2_GetOutputSetting,
661 WMReaderAdvanced2_SetOutputSetting,
662 WMReaderAdvanced2_Preroll,
663 WMReaderAdvanced2_SetLogClientID,
664 WMReaderAdvanced2_GetLogClientID,
665 WMReaderAdvanced2_StopBuffering,
666 WMReaderAdvanced2_OpenStream,
667 WMReaderAdvanced3_StopNetStreaming,
668 WMReaderAdvanced3_StartAtPosition,
669 WMReaderAdvanced4_GetLanguageCount,
670 WMReaderAdvanced4_GetLanguage,
671 WMReaderAdvanced4_GetMaxSpeedFactor,
672 WMReaderAdvanced4_IsUsingFastCache,
673 WMReaderAdvanced4_AddLogParam,
674 WMReaderAdvanced4_SendLogParams,
675 WMReaderAdvanced4_CanSaveFileAs,
676 WMReaderAdvanced4_CancelSaveFileAs,
677 WMReaderAdvanced4_GetURL,
678 WMReaderAdvanced5_SetPlayerHook,
679 WMReaderAdvanced6_SetProtextStreamSamples
682 static inline WMReader *impl_from_IWMReaderAccelerator(IWMReaderAccelerator *iface)
684 return CONTAINING_RECORD(iface, WMReader, IWMReaderAccelerator_iface);
687 static HRESULT WINAPI reader_accl_QueryInterface(IWMReaderAccelerator *iface, REFIID riid, void **object)
689 WMReader *This = impl_from_IWMReaderAccelerator(iface);
690 return IWMReader_QueryInterface(&This->IWMReader_iface, riid, object);
693 static ULONG WINAPI reader_accl_AddRef(IWMReaderAccelerator *iface)
695 WMReader *This = impl_from_IWMReaderAccelerator(iface);
696 return IWMReader_AddRef(&This->IWMReader_iface);
699 static ULONG WINAPI reader_accl_Release(IWMReaderAccelerator *iface)
701 WMReader *This = impl_from_IWMReaderAccelerator(iface);
702 return IWMReader_Release(&This->IWMReader_iface);
705 static HRESULT WINAPI reader_accl_GetCodecInterface(IWMReaderAccelerator *iface, DWORD output, REFIID riid, void **codec)
707 WMReader *This = impl_from_IWMReaderAccelerator(iface);
709 FIXME("%p, %d, %s, %p\n", This, output, debugstr_guid(riid), codec);
711 return E_NOTIMPL;
714 static HRESULT WINAPI reader_accl_Notify(IWMReaderAccelerator *iface, DWORD output, WM_MEDIA_TYPE *subtype)
716 WMReader *This = impl_from_IWMReaderAccelerator(iface);
718 FIXME("%p, %d, %p\n", This, output, subtype);
720 return E_NOTIMPL;
723 static const IWMReaderAcceleratorVtbl WMReaderAcceleratorVtbl = {
724 reader_accl_QueryInterface,
725 reader_accl_AddRef,
726 reader_accl_Release,
727 reader_accl_GetCodecInterface,
728 reader_accl_Notify
731 static inline WMReader *impl_from_IWMReaderNetworkConfig2(IWMReaderNetworkConfig2 *iface)
733 return CONTAINING_RECORD(iface, WMReader, IWMReaderNetworkConfig2_iface);
736 static HRESULT WINAPI networkconfig_QueryInterface(IWMReaderNetworkConfig2 *iface, REFIID riid, void **ppv)
738 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
739 return IWMReader_QueryInterface(&This->IWMReader_iface, riid, ppv);
742 static ULONG WINAPI networkconfig_AddRef(IWMReaderNetworkConfig2 *iface)
744 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
745 return IWMReader_AddRef(&This->IWMReader_iface);
748 static ULONG WINAPI networkconfig_Release(IWMReaderNetworkConfig2 *iface)
750 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
751 return IWMReader_Release(&This->IWMReader_iface);
754 static HRESULT WINAPI networkconfig_GetBufferingTime(IWMReaderNetworkConfig2 *iface, QWORD *buffering_time)
756 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
757 FIXME("%p, %p\n", This, buffering_time);
758 return E_NOTIMPL;
761 static HRESULT WINAPI networkconfig_SetBufferingTime(IWMReaderNetworkConfig2 *iface, QWORD buffering_time)
763 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
764 FIXME("%p, %s\n", This, wine_dbgstr_longlong(buffering_time));
765 return E_NOTIMPL;
768 static HRESULT WINAPI networkconfig_GetUDPPortRanges(IWMReaderNetworkConfig2 *iface, WM_PORT_NUMBER_RANGE *array,
769 DWORD *ranges)
771 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
772 FIXME("%p, %p, %p\n", This, array, ranges);
773 return E_NOTIMPL;
776 static HRESULT WINAPI networkconfig_SetUDPPortRanges(IWMReaderNetworkConfig2 *iface, WM_PORT_NUMBER_RANGE *array,
777 DWORD ranges)
779 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
780 FIXME("%p, %p, %u\n", This, array, ranges);
781 return E_NOTIMPL;
784 static HRESULT WINAPI networkconfig_GetProxySettings(IWMReaderNetworkConfig2 *iface, const WCHAR *protocol,
785 WMT_PROXY_SETTINGS *proxy)
787 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
788 FIXME("%p, %s, %p\n", This, debugstr_w(protocol), proxy);
789 return E_NOTIMPL;
792 static HRESULT WINAPI networkconfig_SetProxySettings(IWMReaderNetworkConfig2 *iface, LPCWSTR protocol,
793 WMT_PROXY_SETTINGS proxy)
795 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
796 FIXME("%p, %s, %d\n", This, debugstr_w(protocol), proxy);
797 return E_NOTIMPL;
800 static HRESULT WINAPI networkconfig_GetProxyHostName(IWMReaderNetworkConfig2 *iface, const WCHAR *protocol,
801 WCHAR *hostname, DWORD *size)
803 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
804 FIXME("%p, %s, %p, %p\n", This, debugstr_w(protocol), hostname, size);
805 return E_NOTIMPL;
808 static HRESULT WINAPI networkconfig_SetProxyHostName(IWMReaderNetworkConfig2 *iface, const WCHAR *protocol,
809 const WCHAR *hostname)
811 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
812 FIXME("%p, %s, %s\n", This, debugstr_w(protocol), debugstr_w(hostname));
813 return E_NOTIMPL;
816 static HRESULT WINAPI networkconfig_GetProxyPort(IWMReaderNetworkConfig2 *iface, const WCHAR *protocol,
817 DWORD *port)
819 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
820 FIXME("%p, %s, %p\n", This, debugstr_w(protocol), port);
821 return E_NOTIMPL;
824 static HRESULT WINAPI networkconfig_SetProxyPort(IWMReaderNetworkConfig2 *iface, const WCHAR *protocol,
825 DWORD port)
827 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
828 FIXME("%p, %s, %u\n", This, debugstr_w(protocol), port);
829 return E_NOTIMPL;
832 static HRESULT WINAPI networkconfig_GetProxyExceptionList(IWMReaderNetworkConfig2 *iface, const WCHAR *protocol,
833 WCHAR *exceptions, DWORD *count)
835 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
836 FIXME("%p, %s, %p, %p\n", This, debugstr_w(protocol), exceptions, count);
837 return E_NOTIMPL;
840 static HRESULT WINAPI networkconfig_SetProxyExceptionList(IWMReaderNetworkConfig2 *iface, const WCHAR *protocol,
841 const WCHAR *exceptions)
843 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
844 FIXME("%p, %s, %s\n", This, debugstr_w(protocol), debugstr_w(exceptions));
845 return E_NOTIMPL;
848 static HRESULT WINAPI networkconfig_GetProxyBypassForLocal(IWMReaderNetworkConfig2 *iface, const WCHAR *protocol,
849 BOOL *bypass)
851 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
852 FIXME("%p, %s, %p\n", This, debugstr_w(protocol), bypass);
853 return E_NOTIMPL;
856 static HRESULT WINAPI networkconfig_SetProxyBypassForLocal(IWMReaderNetworkConfig2 *iface, const WCHAR *protocol,
857 BOOL bypass)
859 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
860 FIXME("%p, %s, %d\n", This, debugstr_w(protocol), bypass);
861 return E_NOTIMPL;
864 static HRESULT WINAPI networkconfig_GetForceRerunAutoProxyDetection(IWMReaderNetworkConfig2 *iface,
865 BOOL *detection)
867 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
868 FIXME("%p, %p\n", This, detection);
869 return E_NOTIMPL;
872 static HRESULT WINAPI networkconfig_SetForceRerunAutoProxyDetection(IWMReaderNetworkConfig2 *iface,
873 BOOL detection)
875 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
876 FIXME("%p, %d\n", This, detection);
877 return E_NOTIMPL;
880 static HRESULT WINAPI networkconfig_GetEnableMulticast(IWMReaderNetworkConfig2 *iface, BOOL *multicast)
882 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
883 FIXME("%p, %p\n", This, multicast);
884 return E_NOTIMPL;
887 static HRESULT WINAPI networkconfig_SetEnableMulticast(IWMReaderNetworkConfig2 *iface, BOOL multicast)
889 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
890 FIXME("%p, %d\n", This, multicast);
891 return E_NOTIMPL;
894 static HRESULT WINAPI networkconfig_GetEnableHTTP(IWMReaderNetworkConfig2 *iface, BOOL *enable)
896 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
897 FIXME("%p, %p\n", This, enable);
898 return E_NOTIMPL;
901 static HRESULT WINAPI networkconfig_SetEnableHTTP(IWMReaderNetworkConfig2 *iface, BOOL enable)
903 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
904 FIXME("%p, %d\n", This, enable);
905 return E_NOTIMPL;
908 static HRESULT WINAPI networkconfig_GetEnableUDP(IWMReaderNetworkConfig2 *iface, BOOL *enable)
910 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
911 FIXME("%p, %p\n", This, enable);
912 return E_NOTIMPL;
915 static HRESULT WINAPI networkconfig_SetEnableUDP(IWMReaderNetworkConfig2 *iface, BOOL enable)
917 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
918 FIXME("%p, %d\n", This, enable);
919 return E_NOTIMPL;
922 static HRESULT WINAPI networkconfig_GetEnableTCP(IWMReaderNetworkConfig2 *iface, BOOL *enable)
924 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
925 FIXME("%p, %p\n", This, enable);
926 return E_NOTIMPL;
929 static HRESULT WINAPI networkconfig_SetEnableTCP(IWMReaderNetworkConfig2 *iface, BOOL enable)
931 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
932 FIXME("%p, %d\n", This, enable);
933 return E_NOTIMPL;
936 static HRESULT WINAPI networkconfig_ResetProtocolRollover(IWMReaderNetworkConfig2 *iface)
938 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
939 FIXME("%p\n", This);
940 return E_NOTIMPL;
943 static HRESULT WINAPI networkconfig_GetConnectionBandwidth(IWMReaderNetworkConfig2 *iface, DWORD *bandwidth)
945 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
946 FIXME("%p, %p\n", This, bandwidth);
947 return E_NOTIMPL;
950 static HRESULT WINAPI networkconfig_SetConnectionBandwidth(IWMReaderNetworkConfig2 *iface, DWORD bandwidth)
952 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
953 FIXME("%p, %u\n", This, bandwidth);
954 return E_NOTIMPL;
957 static HRESULT WINAPI networkconfig_GetNumProtocolsSupported(IWMReaderNetworkConfig2 *iface, DWORD *protocols)
959 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
960 FIXME("%p, %p\n", This, protocols);
961 return E_NOTIMPL;
964 static HRESULT WINAPI networkconfig_GetSupportedProtocolName(IWMReaderNetworkConfig2 *iface, DWORD protocol_num,
965 WCHAR *protocol, DWORD *size)
967 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
968 FIXME("%p, %u, %p %p\n", This, protocol_num, protocol, size);
969 return E_NOTIMPL;
972 static HRESULT WINAPI networkconfig_AddLoggingUrl(IWMReaderNetworkConfig2 *iface, const WCHAR *url)
974 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
975 FIXME("%p, %s\n", This, debugstr_w(url));
976 return E_NOTIMPL;
979 static HRESULT WINAPI networkconfig_GetLoggingUrl(IWMReaderNetworkConfig2 *iface, DWORD index, WCHAR *url,
980 DWORD *size)
982 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
983 FIXME("%p, %u, %p, %p\n", This, index, url, size);
984 return E_NOTIMPL;
987 static HRESULT WINAPI networkconfig_GetLoggingUrlCount(IWMReaderNetworkConfig2 *iface, DWORD *count)
989 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
990 FIXME("%p, %p\n", This, count);
991 return E_NOTIMPL;
994 static HRESULT WINAPI networkconfig_ResetLoggingUrlList(IWMReaderNetworkConfig2 *iface)
996 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
997 FIXME("%p\n", This);
998 return E_NOTIMPL;
1001 static HRESULT WINAPI networkconfig_GetEnableContentCaching(IWMReaderNetworkConfig2 *iface, BOOL *enable)
1003 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
1004 FIXME("%p, %p\n", This, enable);
1005 return E_NOTIMPL;
1008 static HRESULT WINAPI networkconfig_SetEnableContentCaching(IWMReaderNetworkConfig2 *iface, BOOL enable)
1010 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
1011 FIXME("%p, %d\n", This, enable);
1012 return E_NOTIMPL;
1015 static HRESULT WINAPI networkconfig_GetEnableFastCache(IWMReaderNetworkConfig2 *iface, BOOL *enable)
1017 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
1018 FIXME("%p, %p\n", This, enable);
1019 return E_NOTIMPL;
1022 static HRESULT WINAPI networkconfig_SetEnableFastCache(IWMReaderNetworkConfig2 *iface, BOOL enable)
1024 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
1025 FIXME("%p, %d\n", This, enable);
1026 return E_NOTIMPL;
1029 static HRESULT WINAPI networkconfig_GetAcceleratedStreamingDuration(IWMReaderNetworkConfig2 *iface,
1030 QWORD *duration)
1032 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
1033 FIXME("%p, %p\n", This, duration);
1034 return E_NOTIMPL;
1037 static HRESULT WINAPI networkconfig_SetAcceleratedStreamingDuration(IWMReaderNetworkConfig2 *iface,
1038 QWORD duration)
1040 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
1041 FIXME("%p, %s\n", This, wine_dbgstr_longlong(duration));
1042 return E_NOTIMPL;
1045 static HRESULT WINAPI networkconfig_GetAutoReconnectLimit(IWMReaderNetworkConfig2 *iface, DWORD *limit)
1047 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
1048 FIXME("%p, %p\n", This, limit);
1049 return E_NOTIMPL;
1052 static HRESULT WINAPI networkconfig_SetAutoReconnectLimit(IWMReaderNetworkConfig2 *iface, DWORD limit)
1054 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
1055 FIXME("%p, %u\n", This, limit);
1056 return E_NOTIMPL;
1059 static HRESULT WINAPI networkconfig_GetEnableResends(IWMReaderNetworkConfig2 *iface, BOOL *enable)
1061 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
1062 FIXME("%p, %p\n", This, enable);
1063 return E_NOTIMPL;
1066 static HRESULT WINAPI networkconfig_SetEnableResends(IWMReaderNetworkConfig2 *iface, BOOL enable)
1068 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
1069 FIXME("%p, %u\n", This, enable);
1070 return E_NOTIMPL;
1073 static HRESULT WINAPI networkconfig_GetEnableThinning(IWMReaderNetworkConfig2 *iface, BOOL *enable)
1075 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
1076 FIXME("%p, %p\n", This, enable);
1077 return E_NOTIMPL;
1080 static HRESULT WINAPI networkconfig_SetEnableThinning(IWMReaderNetworkConfig2 *iface, BOOL enable)
1082 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
1083 FIXME("%p, %u\n", This, enable);
1084 return E_NOTIMPL;
1087 static HRESULT WINAPI networkconfig_GetMaxNetPacketSize(IWMReaderNetworkConfig2 *iface, DWORD *packet_size)
1089 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
1090 FIXME("%p, %p\n", This, packet_size);
1091 return E_NOTIMPL;
1094 static const IWMReaderNetworkConfig2Vtbl WMReaderNetworkConfig2Vtbl =
1096 networkconfig_QueryInterface,
1097 networkconfig_AddRef,
1098 networkconfig_Release,
1099 networkconfig_GetBufferingTime,
1100 networkconfig_SetBufferingTime,
1101 networkconfig_GetUDPPortRanges,
1102 networkconfig_SetUDPPortRanges,
1103 networkconfig_GetProxySettings,
1104 networkconfig_SetProxySettings,
1105 networkconfig_GetProxyHostName,
1106 networkconfig_SetProxyHostName,
1107 networkconfig_GetProxyPort,
1108 networkconfig_SetProxyPort,
1109 networkconfig_GetProxyExceptionList,
1110 networkconfig_SetProxyExceptionList,
1111 networkconfig_GetProxyBypassForLocal,
1112 networkconfig_SetProxyBypassForLocal,
1113 networkconfig_GetForceRerunAutoProxyDetection,
1114 networkconfig_SetForceRerunAutoProxyDetection,
1115 networkconfig_GetEnableMulticast,
1116 networkconfig_SetEnableMulticast,
1117 networkconfig_GetEnableHTTP,
1118 networkconfig_SetEnableHTTP,
1119 networkconfig_GetEnableUDP,
1120 networkconfig_SetEnableUDP,
1121 networkconfig_GetEnableTCP,
1122 networkconfig_SetEnableTCP,
1123 networkconfig_ResetProtocolRollover,
1124 networkconfig_GetConnectionBandwidth,
1125 networkconfig_SetConnectionBandwidth,
1126 networkconfig_GetNumProtocolsSupported,
1127 networkconfig_GetSupportedProtocolName,
1128 networkconfig_AddLoggingUrl,
1129 networkconfig_GetLoggingUrl,
1130 networkconfig_GetLoggingUrlCount,
1131 networkconfig_ResetLoggingUrlList,
1132 networkconfig_GetEnableContentCaching,
1133 networkconfig_SetEnableContentCaching,
1134 networkconfig_GetEnableFastCache,
1135 networkconfig_SetEnableFastCache,
1136 networkconfig_GetAcceleratedStreamingDuration,
1137 networkconfig_SetAcceleratedStreamingDuration,
1138 networkconfig_GetAutoReconnectLimit,
1139 networkconfig_SetAutoReconnectLimit,
1140 networkconfig_GetEnableResends,
1141 networkconfig_SetEnableResends,
1142 networkconfig_GetEnableThinning,
1143 networkconfig_SetEnableThinning,
1144 networkconfig_GetMaxNetPacketSize
1147 static inline WMReader *impl_from_IWMReaderStreamClock(IWMReaderStreamClock *iface)
1149 return CONTAINING_RECORD(iface, WMReader, IWMReaderStreamClock_iface);
1152 static HRESULT WINAPI readclock_QueryInterface(IWMReaderStreamClock *iface, REFIID riid, void **ppv)
1154 WMReader *This = impl_from_IWMReaderStreamClock(iface);
1155 return IWMReader_QueryInterface(&This->IWMReader_iface, riid, ppv);
1158 static ULONG WINAPI readclock_AddRef(IWMReaderStreamClock *iface)
1160 WMReader *This = impl_from_IWMReaderStreamClock(iface);
1161 return IWMReader_AddRef(&This->IWMReader_iface);
1164 static ULONG WINAPI readclock_Release(IWMReaderStreamClock *iface)
1166 WMReader *This = impl_from_IWMReaderStreamClock(iface);
1167 return IWMReader_Release(&This->IWMReader_iface);
1170 static HRESULT WINAPI readclock_GetTime(IWMReaderStreamClock *iface, QWORD *now)
1172 WMReader *This = impl_from_IWMReaderStreamClock(iface);
1173 FIXME("%p, %p\n", This, now);
1174 return E_NOTIMPL;
1177 static HRESULT WINAPI readclock_SetTimer(IWMReaderStreamClock *iface, QWORD when, void *param, DWORD *id)
1179 WMReader *This = impl_from_IWMReaderStreamClock(iface);
1180 FIXME("%p, %s, %p, %p\n", This, wine_dbgstr_longlong(when), param, id);
1181 return E_NOTIMPL;
1184 static HRESULT WINAPI readclock_KillTimer(IWMReaderStreamClock *iface, DWORD id)
1186 WMReader *This = impl_from_IWMReaderStreamClock(iface);
1187 FIXME("%p, %d\n", This, id);
1188 return E_NOTIMPL;
1191 static const IWMReaderStreamClockVtbl WMReaderStreamClockVtbl =
1193 readclock_QueryInterface,
1194 readclock_AddRef,
1195 readclock_Release,
1196 readclock_GetTime,
1197 readclock_SetTimer,
1198 readclock_KillTimer
1201 static inline WMReader *impl_from_IWMReaderTypeNegotiation(IWMReaderTypeNegotiation *iface)
1203 return CONTAINING_RECORD(iface, WMReader, IWMReaderTypeNegotiation_iface);
1206 static HRESULT WINAPI negotiation_QueryInterface(IWMReaderTypeNegotiation *iface, REFIID riid, void **ppv)
1208 WMReader *This = impl_from_IWMReaderTypeNegotiation(iface);
1209 return IWMReader_QueryInterface(&This->IWMReader_iface, riid, ppv);
1212 static ULONG WINAPI negotiation_AddRef(IWMReaderTypeNegotiation *iface)
1214 WMReader *This = impl_from_IWMReaderTypeNegotiation(iface);
1215 return IWMReader_AddRef(&This->IWMReader_iface);
1218 static ULONG WINAPI negotiation_Release(IWMReaderTypeNegotiation *iface)
1220 WMReader *This = impl_from_IWMReaderTypeNegotiation(iface);
1221 return IWMReader_Release(&This->IWMReader_iface);
1224 static HRESULT WINAPI negotiation_TryOutputProps(IWMReaderTypeNegotiation *iface, DWORD output, IWMOutputMediaProps *props)
1226 WMReader *This = impl_from_IWMReaderTypeNegotiation(iface);
1227 FIXME("%p, %d, %p\n", This, output, props);
1228 return E_NOTIMPL;
1231 static const IWMReaderTypeNegotiationVtbl WMReaderTypeNegotiationVtbl =
1233 negotiation_QueryInterface,
1234 negotiation_AddRef,
1235 negotiation_Release,
1236 negotiation_TryOutputProps
1239 static inline WMReader *impl_from_IWMReaderTimecode(IWMReaderTimecode *iface)
1241 return CONTAINING_RECORD(iface, WMReader, IWMReaderTimecode_iface);
1244 static HRESULT WINAPI timecode_QueryInterface(IWMReaderTimecode *iface, REFIID riid, void **ppv)
1246 WMReader *This = impl_from_IWMReaderTimecode(iface);
1247 return IWMReader_QueryInterface(&This->IWMReader_iface, riid, ppv);
1250 static ULONG WINAPI timecode_AddRef(IWMReaderTimecode *iface)
1252 WMReader *This = impl_from_IWMReaderTimecode(iface);
1253 return IWMReader_AddRef(&This->IWMReader_iface);
1256 static ULONG WINAPI timecode_Release(IWMReaderTimecode *iface)
1258 WMReader *This = impl_from_IWMReaderTimecode(iface);
1259 return IWMReader_Release(&This->IWMReader_iface);
1262 static HRESULT WINAPI timecode_GetTimecodeRangeCount(IWMReaderTimecode *iface, WORD num, WORD *count)
1264 WMReader *This = impl_from_IWMReaderTimecode(iface);
1265 FIXME("%p, %d, %p\n", This, num, count);
1266 return E_NOTIMPL;
1269 static HRESULT WINAPI timecode_GetTimecodeRangeBounds(IWMReaderTimecode *iface, WORD stream, WORD range,
1270 DWORD *start_timecode, DWORD *end_timecode)
1272 WMReader *This = impl_from_IWMReaderTimecode(iface);
1273 FIXME("%p, %d, %d, %p, %p\n", This, stream, range, start_timecode, end_timecode);
1274 return E_NOTIMPL;
1277 static const IWMReaderTimecodeVtbl WMReaderTimecodeVtbl =
1279 timecode_QueryInterface,
1280 timecode_AddRef,
1281 timecode_Release,
1282 timecode_GetTimecodeRangeCount,
1283 timecode_GetTimecodeRangeBounds
1287 static inline WMReader *impl_from_IWMReaderPlaylistBurn(IWMReaderPlaylistBurn *iface)
1289 return CONTAINING_RECORD(iface, WMReader, IWMReaderPlaylistBurn_iface);
1292 static HRESULT WINAPI playlist_QueryInterface(IWMReaderPlaylistBurn *iface, REFIID riid, void **ppv)
1294 WMReader *This = impl_from_IWMReaderPlaylistBurn(iface);
1295 return IWMReader_QueryInterface(&This->IWMReader_iface, riid, ppv);
1298 static ULONG WINAPI playlist_AddRef(IWMReaderPlaylistBurn *iface)
1300 WMReader *This = impl_from_IWMReaderPlaylistBurn(iface);
1301 return IWMReader_AddRef(&This->IWMReader_iface);
1304 static ULONG WINAPI playlist_Release(IWMReaderPlaylistBurn *iface)
1306 WMReader *This = impl_from_IWMReaderPlaylistBurn(iface);
1307 return IWMReader_Release(&This->IWMReader_iface);
1310 static HRESULT WINAPI playlist_InitPlaylistBurn(IWMReaderPlaylistBurn *iface, DWORD count,
1311 LPCWSTR_WMSDK_TYPE_SAFE *filenames, IWMStatusCallback *callback, void *context)
1313 WMReader *This = impl_from_IWMReaderPlaylistBurn(iface);
1314 FIXME("%p, %d, %p, %p, %p\n", This, count, filenames, callback, context);
1315 return E_NOTIMPL;
1318 static HRESULT WINAPI playlist_GetInitResults(IWMReaderPlaylistBurn *iface, DWORD count, HRESULT *stat)
1320 WMReader *This = impl_from_IWMReaderPlaylistBurn(iface);
1321 FIXME("%p, %d, %p\n", This, count, stat);
1322 return E_NOTIMPL;
1325 static HRESULT WINAPI playlist_Cancel(IWMReaderPlaylistBurn *iface)
1327 WMReader *This = impl_from_IWMReaderPlaylistBurn(iface);
1328 FIXME("%p\n", This);
1329 return E_NOTIMPL;
1332 static HRESULT WINAPI playlist_EndPlaylistBurn(IWMReaderPlaylistBurn *iface, HRESULT result)
1334 WMReader *This = impl_from_IWMReaderPlaylistBurn(iface);
1335 FIXME("%p, 0x%08x\n", This, result);
1336 return E_NOTIMPL;
1339 static const IWMReaderPlaylistBurnVtbl WMReaderPlaylistBurnVtbl =
1341 playlist_QueryInterface,
1342 playlist_AddRef,
1343 playlist_Release,
1344 playlist_InitPlaylistBurn,
1345 playlist_GetInitResults,
1346 playlist_Cancel,
1347 playlist_EndPlaylistBurn
1350 static inline WMReader *impl_from_IWMHeaderInfo3(IWMHeaderInfo3 *iface)
1352 return CONTAINING_RECORD(iface, WMReader, IWMHeaderInfo3_iface);
1355 static HRESULT WINAPI headerinfo_QueryInterface(IWMHeaderInfo3 *iface, REFIID riid, void **ppv)
1357 WMReader *This = impl_from_IWMHeaderInfo3(iface);
1358 return IWMReader_QueryInterface(&This->IWMReader_iface, riid, ppv);
1361 static ULONG WINAPI headerinfo_AddRef(IWMHeaderInfo3 *iface)
1363 WMReader *This = impl_from_IWMHeaderInfo3(iface);
1364 return IWMReader_AddRef(&This->IWMReader_iface);
1367 static ULONG WINAPI headerinfo_Release(IWMHeaderInfo3 *iface)
1369 WMReader *This = impl_from_IWMHeaderInfo3(iface);
1370 return IWMReader_Release(&This->IWMReader_iface);
1373 static HRESULT WINAPI headerinfo_GetAttributeCount(IWMHeaderInfo3 *iface, WORD stream_num, WORD *attributes)
1375 WMReader *This = impl_from_IWMHeaderInfo3(iface);
1376 FIXME("%p, %d, %p\n", This, stream_num, attributes);
1377 return E_NOTIMPL;
1380 static HRESULT WINAPI headerinfo_GetAttributeByIndex(IWMHeaderInfo3 *iface, WORD index, WORD *stream_num,
1381 WCHAR *name, WORD *name_len, WMT_ATTR_DATATYPE *type, BYTE *value, WORD *length)
1383 WMReader *This = impl_from_IWMHeaderInfo3(iface);
1384 FIXME("%p, %d, %p, %p, %p, %p, %p, %p\n", This, index, stream_num, name, name_len, type,
1385 value, length);
1386 return E_NOTIMPL;
1389 static HRESULT WINAPI headerinfo_GetAttributeByName(IWMHeaderInfo3 *iface, WORD *stream_num, LPCWSTR name,
1390 WMT_ATTR_DATATYPE *type, BYTE *value, WORD *length)
1392 WMReader *This = impl_from_IWMHeaderInfo3(iface);
1393 FIXME("%p, %p, %s, %p, %p, %p\n", This, stream_num, debugstr_w(name), type, value, length);
1394 return E_NOTIMPL;
1397 static HRESULT WINAPI headerinfo_SetAttribute(IWMHeaderInfo3 *iface, WORD stream_num, LPCWSTR name,
1398 WMT_ATTR_DATATYPE type, const BYTE *value, WORD length)
1400 WMReader *This = impl_from_IWMHeaderInfo3(iface);
1401 FIXME("%p, %d, %s, %d, %p, %d\n", This, stream_num, debugstr_w(name), type, value, length);
1402 return E_NOTIMPL;
1405 static HRESULT WINAPI headerinfo_GetMarkerCount(IWMHeaderInfo3 *iface, WORD *markers)
1407 WMReader *This = impl_from_IWMHeaderInfo3(iface);
1408 FIXME("%p, %p\n", This, markers);
1409 return E_NOTIMPL;
1412 static HRESULT WINAPI headerinfo_GetMarker(IWMHeaderInfo3 *iface, WORD index, WCHAR *marker_name,
1413 WORD *marker_len, QWORD *marker_time)
1415 WMReader *This = impl_from_IWMHeaderInfo3(iface);
1416 FIXME("%p, %d, %p, %p, %p\n", This, index, marker_name, marker_len, marker_time);
1417 return E_NOTIMPL;
1420 static HRESULT WINAPI headerinfo_AddMarker(IWMHeaderInfo3 *iface, LPCWSTR_WMSDK_TYPE_SAFE marker_name,
1421 QWORD marker_time)
1423 WMReader *This = impl_from_IWMHeaderInfo3(iface);
1424 FIXME("%p, %p, %s\n", This, marker_name, wine_dbgstr_longlong(marker_time));
1425 return E_NOTIMPL;
1428 static HRESULT WINAPI headerinfo_RemoveMarker(IWMHeaderInfo3 *iface, WORD index)
1430 WMReader *This = impl_from_IWMHeaderInfo3(iface);
1431 FIXME("%p, %d\n", This, index);
1432 return E_NOTIMPL;
1435 static HRESULT WINAPI headerinfo_GetScriptCount(IWMHeaderInfo3 *iface, WORD *scripts)
1437 WMReader *This = impl_from_IWMHeaderInfo3(iface);
1438 FIXME("%p, %p\n", This, scripts);
1439 return E_NOTIMPL;
1442 static HRESULT WINAPI headerinfo_GetScript(IWMHeaderInfo3 *iface, WORD index, WCHAR *type,
1443 WORD *type_len, WCHAR *command, WORD *command_len, QWORD *script_time)
1445 WMReader *This = impl_from_IWMHeaderInfo3(iface);
1446 FIXME("%p, %d, %p, %p, %p, %p, %p\n", This, index, type, type_len, command, command_len, script_time);
1447 return E_NOTIMPL;
1450 static HRESULT WINAPI headerinfo_AddScript(IWMHeaderInfo3 *iface, LPCWSTR_WMSDK_TYPE_SAFE type,
1451 LPCWSTR_WMSDK_TYPE_SAFE command, QWORD script_time)
1453 WMReader *This = impl_from_IWMHeaderInfo3(iface);
1454 FIXME("%p, %s, %s, %s\n", This, debugstr_w(type), debugstr_w(command), wine_dbgstr_longlong(script_time));
1455 return E_NOTIMPL;
1458 static HRESULT WINAPI headerinfo_RemoveScript(IWMHeaderInfo3 *iface, WORD index)
1460 WMReader *This = impl_from_IWMHeaderInfo3(iface);
1461 FIXME("%p, %d\n", This, index);
1462 return E_NOTIMPL;
1465 static HRESULT WINAPI headerinfo_GetCodecInfoCount(IWMHeaderInfo3 *iface, DWORD *codec_infos)
1467 WMReader *This = impl_from_IWMHeaderInfo3(iface);
1468 FIXME("%p, %p\n", This, codec_infos);
1469 return E_NOTIMPL;
1472 static HRESULT WINAPI headerinfo_GetCodecInfo(IWMHeaderInfo3 *iface, DWORD index, WORD *name_len,
1473 WCHAR *name, WORD *description_len, WCHAR *description, WMT_CODEC_INFO_TYPE *codec_type,
1474 WORD *codec_info_cnt, BYTE *codec_info)
1476 WMReader *This = impl_from_IWMHeaderInfo3(iface);
1477 FIXME("%p, %d, %p, %p, %p, %p, %p, %p, %p\n", This, index, name_len, name, description_len,
1478 description, codec_type, codec_info_cnt, codec_info);
1479 return E_NOTIMPL;
1482 static HRESULT WINAPI headerinfo_GetAttributeCountEx(IWMHeaderInfo3 *iface, WORD stream_num, WORD *attributes)
1484 WMReader *This = impl_from_IWMHeaderInfo3(iface);
1485 FIXME("%p, %d, %p\n", This, stream_num, attributes);
1486 return E_NOTIMPL;
1489 static HRESULT WINAPI headerinfo_GetAttributeIndices(IWMHeaderInfo3 *iface, WORD stream_num, LPCWSTR name,
1490 WORD *lang_index, WORD *indices, WORD *count)
1492 WMReader *This = impl_from_IWMHeaderInfo3(iface);
1493 FIXME("%p, %d, %s, %p, %p, %p\n", This, stream_num, debugstr_w(name), lang_index, indices, count);
1494 return E_NOTIMPL;
1497 static HRESULT WINAPI headerinfo_GetAttributeByIndexEx(IWMHeaderInfo3 *iface, WORD stream_num,
1498 WORD index, LPWSTR name, WORD *name_len, WMT_ATTR_DATATYPE *type, WORD *lang_index,
1499 BYTE *value, DWORD *data_len)
1501 WMReader *This = impl_from_IWMHeaderInfo3(iface);
1502 FIXME("%p, %d, %d, %s, %p, %p, %p, %p, %p\n", This, stream_num, index, debugstr_w(name), name_len,
1503 type, lang_index, value, data_len);
1504 return E_NOTIMPL;
1507 static HRESULT WINAPI headerinfo_ModifyAttribute(IWMHeaderInfo3 *iface, WORD stream_num,
1508 WORD index, WMT_ATTR_DATATYPE type, WORD lang_index, const BYTE *value, DWORD length)
1510 WMReader *This = impl_from_IWMHeaderInfo3(iface);
1511 FIXME("%p, %d, %d, %d, %d, %p, %d\n", This, stream_num, index, type, lang_index, value, length);
1512 return E_NOTIMPL;
1515 static HRESULT WINAPI headerinfo_AddAttribute(IWMHeaderInfo3 *iface, WORD stream_num, LPCWSTR name,
1516 WORD *index, WMT_ATTR_DATATYPE type, WORD lang_index, const BYTE *value, DWORD length)
1518 WMReader *This = impl_from_IWMHeaderInfo3(iface);
1519 FIXME("%p, %d, %s, %p, %d, %d, %p, %d\n", This, stream_num, debugstr_w(name), index,
1520 type, lang_index, value, length);
1521 return E_NOTIMPL;
1524 static HRESULT WINAPI headerinfo_DeleteAttribute(IWMHeaderInfo3 *iface, WORD stream_num, WORD index)
1526 WMReader *This = impl_from_IWMHeaderInfo3(iface);
1527 FIXME("%p, %d, %d\n", This, stream_num, index);
1528 return E_NOTIMPL;
1531 static HRESULT WINAPI headerinfo_AddCodecInfo(IWMHeaderInfo3 *iface, LPCWSTR_WMSDK_TYPE_SAFE name,
1532 LPCWSTR_WMSDK_TYPE_SAFE description, WMT_CODEC_INFO_TYPE codec_type, WORD codec_info_cnt,
1533 BYTE *codec_info)
1535 WMReader *This = impl_from_IWMHeaderInfo3(iface);
1536 FIXME("%p, %p, %p, %d, %d, %p\n", This, name, description, codec_type, codec_info_cnt,
1537 codec_info);
1538 return E_NOTIMPL;
1541 static const IWMHeaderInfo3Vtbl WMHeaderInfo3Vtbl =
1543 headerinfo_QueryInterface,
1544 headerinfo_AddRef,
1545 headerinfo_Release,
1546 headerinfo_GetAttributeCount,
1547 headerinfo_GetAttributeByIndex,
1548 headerinfo_GetAttributeByName,
1549 headerinfo_SetAttribute,
1550 headerinfo_GetMarkerCount,
1551 headerinfo_GetMarker,
1552 headerinfo_AddMarker,
1553 headerinfo_RemoveMarker,
1554 headerinfo_GetScriptCount,
1555 headerinfo_GetScript,
1556 headerinfo_AddScript,
1557 headerinfo_RemoveScript,
1558 headerinfo_GetCodecInfoCount,
1559 headerinfo_GetCodecInfo,
1560 headerinfo_GetAttributeCountEx,
1561 headerinfo_GetAttributeIndices,
1562 headerinfo_GetAttributeByIndexEx,
1563 headerinfo_ModifyAttribute,
1564 headerinfo_AddAttribute,
1565 headerinfo_DeleteAttribute,
1566 headerinfo_AddCodecInfo
1570 static inline WMReader *impl_from_IWMLanguageList(IWMLanguageList *iface)
1572 return CONTAINING_RECORD(iface, WMReader, IWMLanguageList_iface);
1575 static HRESULT WINAPI langlist_QueryInterface(IWMLanguageList *iface, REFIID riid, void **ppv)
1577 WMReader *This = impl_from_IWMLanguageList(iface);
1578 return IWMReader_QueryInterface(&This->IWMReader_iface, riid, ppv);
1581 static ULONG WINAPI langlist_AddRef(IWMLanguageList *iface)
1583 WMReader *This = impl_from_IWMLanguageList(iface);
1584 return IWMReader_AddRef(&This->IWMReader_iface);
1587 static ULONG WINAPI langlist_Release(IWMLanguageList *iface)
1589 WMReader *This = impl_from_IWMLanguageList(iface);
1590 return IWMReader_Release(&This->IWMReader_iface);
1593 static HRESULT WINAPI langlist_GetLanguageCount(IWMLanguageList *iface, WORD *count)
1595 WMReader *This = impl_from_IWMLanguageList(iface);
1596 FIXME("%p, %p\n", This, count);
1597 return E_NOTIMPL;
1600 static HRESULT WINAPI langlist_GetLanguageDetails(IWMLanguageList *iface, WORD index,
1601 WCHAR *language, WORD *length)
1603 WMReader *This = impl_from_IWMLanguageList(iface);
1604 FIXME("%p, %d, %p, %p\n", This, index, language, length);
1605 return E_NOTIMPL;
1608 static HRESULT WINAPI langlist_AddLanguageByRFC1766String(IWMLanguageList *iface, LPCWSTR_WMSDK_TYPE_SAFE language,
1609 WORD *index)
1611 WMReader *This = impl_from_IWMLanguageList(iface);
1612 FIXME("%p, %p, %p\n", This, language, index);
1613 return E_NOTIMPL;
1616 static const IWMLanguageListVtbl WMLanguageListVtbl =
1618 langlist_QueryInterface,
1619 langlist_AddRef,
1620 langlist_Release,
1621 langlist_GetLanguageCount,
1622 langlist_GetLanguageDetails,
1623 langlist_AddLanguageByRFC1766String
1626 static inline WMReader *impl_from_IReferenceClock(IReferenceClock *iface)
1628 return CONTAINING_RECORD(iface, WMReader, IReferenceClock_iface);
1631 static HRESULT WINAPI refclock_QueryInterface(IReferenceClock *iface, REFIID riid, void **ppv)
1633 WMReader *This = impl_from_IReferenceClock(iface);
1634 return IWMReader_QueryInterface(&This->IWMReader_iface, riid, ppv);
1637 static ULONG WINAPI refclock_AddRef(IReferenceClock *iface)
1639 WMReader *This = impl_from_IReferenceClock(iface);
1640 return IWMReader_AddRef(&This->IWMReader_iface);
1643 static ULONG WINAPI refclock_Release(IReferenceClock *iface)
1645 WMReader *This = impl_from_IReferenceClock(iface);
1646 return IWMReader_Release(&This->IWMReader_iface);
1649 static HRESULT WINAPI refclock_GetTime(IReferenceClock *iface, REFERENCE_TIME *time)
1651 WMReader *This = impl_from_IReferenceClock(iface);
1652 FIXME("%p, %p\n", This, time);
1653 return E_NOTIMPL;
1656 static HRESULT WINAPI refclock_AdviseTime(IReferenceClock *iface, REFERENCE_TIME basetime,
1657 REFERENCE_TIME streamtime, HEVENT event, DWORD_PTR *cookie)
1659 WMReader *This = impl_from_IReferenceClock(iface);
1660 FIXME("%p, %s, %s, %lu, %p\n", This, wine_dbgstr_longlong(basetime),
1661 wine_dbgstr_longlong(streamtime), event, cookie);
1662 return E_NOTIMPL;
1665 static HRESULT WINAPI refclock_AdvisePeriodic(IReferenceClock *iface, REFERENCE_TIME starttime,
1666 REFERENCE_TIME period, HSEMAPHORE semaphore, DWORD_PTR *cookie)
1668 WMReader *This = impl_from_IReferenceClock(iface);
1669 FIXME("%p, %s, %s, %lu, %p\n", This, wine_dbgstr_longlong(starttime),
1670 wine_dbgstr_longlong(period), semaphore, cookie);
1671 return E_NOTIMPL;
1674 static HRESULT WINAPI refclock_Unadvise(IReferenceClock *iface, DWORD_PTR cookie)
1676 WMReader *This = impl_from_IReferenceClock(iface);
1677 FIXME("%p, %lu\n", This, cookie);
1678 return E_NOTIMPL;
1681 static const IReferenceClockVtbl ReferenceClockVtbl =
1683 refclock_QueryInterface,
1684 refclock_AddRef,
1685 refclock_Release,
1686 refclock_GetTime,
1687 refclock_AdviseTime,
1688 refclock_AdvisePeriodic,
1689 refclock_Unadvise
1692 static inline WMReader *impl_from_IWMProfile3(IWMProfile3 *iface)
1694 return CONTAINING_RECORD(iface, WMReader, IWMProfile3_iface);
1697 static HRESULT WINAPI profile3_QueryInterface(IWMProfile3 *iface, REFIID riid, void **ppv)
1699 WMReader *This = impl_from_IWMProfile3(iface);
1700 return IWMReader_QueryInterface(&This->IWMReader_iface, riid, ppv);
1703 static ULONG WINAPI profile3_AddRef(IWMProfile3 *iface)
1705 WMReader *This = impl_from_IWMProfile3(iface);
1706 return IWMReader_AddRef(&This->IWMReader_iface);
1709 static ULONG WINAPI profile3_Release(IWMProfile3 *iface)
1711 WMReader *This = impl_from_IWMProfile3(iface);
1712 return IWMReader_Release(&This->IWMReader_iface);
1715 static HRESULT WINAPI profile3_GetVersion(IWMProfile3 *iface, WMT_VERSION *version)
1717 WMReader *This = impl_from_IWMProfile3(iface);
1718 FIXME("%p, %p\n", This, version);
1719 return E_NOTIMPL;
1722 static HRESULT WINAPI profile3_GetName(IWMProfile3 *iface, WCHAR *name, DWORD *length)
1724 WMReader *This = impl_from_IWMProfile3(iface);
1725 FIXME("%p, %p, %p\n", This, name, length);
1726 return E_NOTIMPL;
1729 static HRESULT WINAPI profile3_SetName(IWMProfile3 *iface, const WCHAR *name)
1731 WMReader *This = impl_from_IWMProfile3(iface);
1732 FIXME("%p, %s\n", This, debugstr_w(name));
1733 return E_NOTIMPL;
1736 static HRESULT WINAPI profile3_GetDescription(IWMProfile3 *iface, WCHAR *description, DWORD *length)
1738 WMReader *This = impl_from_IWMProfile3(iface);
1739 FIXME("%p, %p, %p\n", This, description, length);
1740 return E_NOTIMPL;
1743 static HRESULT WINAPI profile3_SetDescription(IWMProfile3 *iface, const WCHAR *description)
1745 WMReader *This = impl_from_IWMProfile3(iface);
1746 FIXME("%p, %s\n", This, debugstr_w(description));
1747 return E_NOTIMPL;
1750 static HRESULT WINAPI profile3_GetStreamCount(IWMProfile3 *iface, DWORD *count)
1752 WMReader *This = impl_from_IWMProfile3(iface);
1753 FIXME("%p, %p\n", This, count);
1754 return E_NOTIMPL;
1757 static HRESULT WINAPI profile3_GetStream(IWMProfile3 *iface, DWORD index, IWMStreamConfig **config)
1759 WMReader *This = impl_from_IWMProfile3(iface);
1760 FIXME("%p, %d, %p\n", This, index, config);
1761 return E_NOTIMPL;
1764 static HRESULT WINAPI profile3_GetStreamByNumber(IWMProfile3 *iface, WORD stream, IWMStreamConfig **config)
1766 WMReader *This = impl_from_IWMProfile3(iface);
1767 FIXME("%p, %d, %p\n", This, stream, config);
1768 return E_NOTIMPL;
1771 static HRESULT WINAPI profile3_RemoveStream(IWMProfile3 *iface, IWMStreamConfig *config)
1773 WMReader *This = impl_from_IWMProfile3(iface);
1774 FIXME("%p, %p\n", This, config);
1775 return E_NOTIMPL;
1778 static HRESULT WINAPI profile3_RemoveStreamByNumber(IWMProfile3 *iface, WORD stream)
1780 WMReader *This = impl_from_IWMProfile3(iface);
1781 FIXME("%p, %d\n", This, stream);
1782 return E_NOTIMPL;
1785 static HRESULT WINAPI profile3_AddStream(IWMProfile3 *iface, IWMStreamConfig *config)
1787 WMReader *This = impl_from_IWMProfile3(iface);
1788 FIXME("%p, %p\n", This, config);
1789 return E_NOTIMPL;
1792 static HRESULT WINAPI profile3_ReconfigStream(IWMProfile3 *iface, IWMStreamConfig *config)
1794 WMReader *This = impl_from_IWMProfile3(iface);
1795 FIXME("%p, %p\n", This, config);
1796 return E_NOTIMPL;
1799 static HRESULT WINAPI profile3_CreateNewStream(IWMProfile3 *iface, REFGUID type, IWMStreamConfig **config)
1801 WMReader *This = impl_from_IWMProfile3(iface);
1802 FIXME("%p, %s, %p\n", This, debugstr_guid(type), config);
1803 return E_NOTIMPL;
1806 static HRESULT WINAPI profile3_GetMutualExclusionCount(IWMProfile3 *iface, DWORD *count)
1808 WMReader *This = impl_from_IWMProfile3(iface);
1809 FIXME("%p, %p\n", This, count);
1810 return E_NOTIMPL;
1813 static HRESULT WINAPI profile3_GetMutualExclusion(IWMProfile3 *iface, DWORD index, IWMMutualExclusion **mutual)
1815 WMReader *This = impl_from_IWMProfile3(iface);
1816 FIXME("%p, %d, %p\n", This, index, mutual);
1817 return E_NOTIMPL;
1820 static HRESULT WINAPI profile3_RemoveMutualExclusion(IWMProfile3 *iface, IWMMutualExclusion *mutual)
1822 WMReader *This = impl_from_IWMProfile3(iface);
1823 FIXME("%p, %p\n", This, mutual);
1824 return E_NOTIMPL;
1827 static HRESULT WINAPI profile3_AddMutualExclusion(IWMProfile3 *iface, IWMMutualExclusion *mutual)
1829 WMReader *This = impl_from_IWMProfile3(iface);
1830 FIXME("%p, %p\n", This, mutual);
1831 return E_NOTIMPL;
1834 static HRESULT WINAPI profile3_CreateNewMutualExclusion(IWMProfile3 *iface, IWMMutualExclusion **mutual)
1836 WMReader *This = impl_from_IWMProfile3(iface);
1837 FIXME("%p, %p\n", This, mutual);
1838 return E_NOTIMPL;
1841 static HRESULT WINAPI profile3_GetProfileID(IWMProfile3 *iface, GUID *guid)
1843 WMReader *This = impl_from_IWMProfile3(iface);
1844 FIXME("%p, %p\n", This, guid);
1845 return E_NOTIMPL;
1848 static HRESULT WINAPI profile3_GetStorageFormat(IWMProfile3 *iface, WMT_STORAGE_FORMAT *storage)
1850 WMReader *This = impl_from_IWMProfile3(iface);
1851 FIXME("%p, %p\n", This, storage);
1852 return E_NOTIMPL;
1855 static HRESULT WINAPI profile3_SetStorageFormat(IWMProfile3 *iface, WMT_STORAGE_FORMAT storage)
1857 WMReader *This = impl_from_IWMProfile3(iface);
1858 FIXME("%p, %d\n", This, storage);
1859 return E_NOTIMPL;
1862 static HRESULT WINAPI profile3_GetBandwidthSharingCount(IWMProfile3 *iface, DWORD *count)
1864 WMReader *This = impl_from_IWMProfile3(iface);
1865 FIXME("%p, %p\n", This, count);
1866 return E_NOTIMPL;
1869 static HRESULT WINAPI profile3_GetBandwidthSharing(IWMProfile3 *iface, DWORD index, IWMBandwidthSharing **bandwidth)
1871 WMReader *This = impl_from_IWMProfile3(iface);
1872 FIXME("%p, %d, %p\n", This, index, bandwidth);
1873 return E_NOTIMPL;
1876 static HRESULT WINAPI profile3_RemoveBandwidthSharing( IWMProfile3 *iface, IWMBandwidthSharing *bandwidth)
1878 WMReader *This = impl_from_IWMProfile3(iface);
1879 FIXME("%p, %p\n", This, bandwidth);
1880 return E_NOTIMPL;
1883 static HRESULT WINAPI profile3_AddBandwidthSharing(IWMProfile3 *iface, IWMBandwidthSharing *bandwidth)
1885 WMReader *This = impl_from_IWMProfile3(iface);
1886 FIXME("%p, %p\n", This, bandwidth);
1887 return E_NOTIMPL;
1890 static HRESULT WINAPI profile3_CreateNewBandwidthSharing( IWMProfile3 *iface, IWMBandwidthSharing **bandwidth)
1892 WMReader *This = impl_from_IWMProfile3(iface);
1893 FIXME("%p, %p\n", This, bandwidth);
1894 return E_NOTIMPL;
1897 static HRESULT WINAPI profile3_GetStreamPrioritization(IWMProfile3 *iface, IWMStreamPrioritization **stream)
1899 WMReader *This = impl_from_IWMProfile3(iface);
1900 FIXME("%p, %p\n", This, stream);
1901 return E_NOTIMPL;
1904 static HRESULT WINAPI profile3_SetStreamPrioritization(IWMProfile3 *iface, IWMStreamPrioritization *stream)
1906 WMReader *This = impl_from_IWMProfile3(iface);
1907 FIXME("%p, %p\n", This, stream);
1908 return E_NOTIMPL;
1911 static HRESULT WINAPI profile3_RemoveStreamPrioritization(IWMProfile3 *iface)
1913 WMReader *This = impl_from_IWMProfile3(iface);
1914 FIXME("%p\n", This);
1915 return E_NOTIMPL;
1918 static HRESULT WINAPI profile3_CreateNewStreamPrioritization(IWMProfile3 *iface, IWMStreamPrioritization **stream)
1920 WMReader *This = impl_from_IWMProfile3(iface);
1921 FIXME("%p, %p\n", This, stream);
1922 return E_NOTIMPL;
1925 static HRESULT WINAPI profile3_GetExpectedPacketCount(IWMProfile3 *iface, QWORD duration, QWORD *packets)
1927 WMReader *This = impl_from_IWMProfile3(iface);
1928 FIXME("%p, %s, %p\n", This, wine_dbgstr_longlong(duration), packets);
1929 return E_NOTIMPL;
1932 static const IWMProfile3Vtbl WMProfile3Vtbl =
1934 profile3_QueryInterface,
1935 profile3_AddRef,
1936 profile3_Release,
1937 profile3_GetVersion,
1938 profile3_GetName,
1939 profile3_SetName,
1940 profile3_GetDescription,
1941 profile3_SetDescription,
1942 profile3_GetStreamCount,
1943 profile3_GetStream,
1944 profile3_GetStreamByNumber,
1945 profile3_RemoveStream,
1946 profile3_RemoveStreamByNumber,
1947 profile3_AddStream,
1948 profile3_ReconfigStream,
1949 profile3_CreateNewStream,
1950 profile3_GetMutualExclusionCount,
1951 profile3_GetMutualExclusion,
1952 profile3_RemoveMutualExclusion,
1953 profile3_AddMutualExclusion,
1954 profile3_CreateNewMutualExclusion,
1955 profile3_GetProfileID,
1956 profile3_GetStorageFormat,
1957 profile3_SetStorageFormat,
1958 profile3_GetBandwidthSharingCount,
1959 profile3_GetBandwidthSharing,
1960 profile3_RemoveBandwidthSharing,
1961 profile3_AddBandwidthSharing,
1962 profile3_CreateNewBandwidthSharing,
1963 profile3_GetStreamPrioritization,
1964 profile3_SetStreamPrioritization,
1965 profile3_RemoveStreamPrioritization,
1966 profile3_CreateNewStreamPrioritization,
1967 profile3_GetExpectedPacketCount
1970 static inline WMReader *impl_from_IWMPacketSize2(IWMPacketSize2 *iface)
1972 return CONTAINING_RECORD(iface, WMReader, IWMPacketSize2_iface);
1975 static HRESULT WINAPI packetsize_QueryInterface(IWMPacketSize2 *iface, REFIID riid, void **ppv)
1977 WMReader *This = impl_from_IWMPacketSize2(iface);
1978 return IWMReader_QueryInterface(&This->IWMReader_iface, riid, ppv);
1981 static ULONG WINAPI packetsize_AddRef(IWMPacketSize2 *iface)
1983 WMReader *This = impl_from_IWMPacketSize2(iface);
1984 return IWMReader_AddRef(&This->IWMReader_iface);
1987 static ULONG WINAPI packetsize_Release(IWMPacketSize2 *iface)
1989 WMReader *This = impl_from_IWMPacketSize2(iface);
1990 return IWMReader_Release(&This->IWMReader_iface);
1993 static HRESULT WINAPI packetsize_GetMaxPacketSize(IWMPacketSize2 *iface, DWORD *size)
1995 WMReader *This = impl_from_IWMPacketSize2(iface);
1996 FIXME("%p, %p\n", This, size);
1997 return E_NOTIMPL;
2000 static HRESULT WINAPI packetsize_SetMaxPacketSize(IWMPacketSize2 *iface, DWORD size)
2002 WMReader *This = impl_from_IWMPacketSize2(iface);
2003 FIXME("%p, %d\n", This, size);
2004 return E_NOTIMPL;
2007 static HRESULT WINAPI packetsize_GetMinPacketSize(IWMPacketSize2 *iface, DWORD *size)
2009 WMReader *This = impl_from_IWMPacketSize2(iface);
2010 FIXME("%p, %p\n", This, size);
2011 return E_NOTIMPL;
2014 static HRESULT WINAPI packetsize_SetMinPacketSize(IWMPacketSize2 *iface, DWORD size)
2016 WMReader *This = impl_from_IWMPacketSize2(iface);
2017 FIXME("%p, %d\n", This, size);
2018 return E_NOTIMPL;
2021 static const IWMPacketSize2Vtbl WMPacketSize2Vtbl =
2023 packetsize_QueryInterface,
2024 packetsize_AddRef,
2025 packetsize_Release,
2026 packetsize_GetMaxPacketSize,
2027 packetsize_SetMaxPacketSize,
2028 packetsize_GetMinPacketSize,
2029 packetsize_SetMinPacketSize
2032 HRESULT WINAPI WMCreateReader(IUnknown *reserved, DWORD rights, IWMReader **ret_reader)
2034 WMReader *reader;
2036 TRACE("(%p, %x, %p)\n", reserved, rights, ret_reader);
2038 reader = heap_alloc(sizeof(*reader));
2039 if(!reader)
2040 return E_OUTOFMEMORY;
2042 reader->IWMReader_iface.lpVtbl = &WMReaderVtbl;
2043 reader->IWMReaderAdvanced6_iface.lpVtbl = &WMReaderAdvanced6Vtbl;
2044 reader->IWMReaderAccelerator_iface.lpVtbl = &WMReaderAcceleratorVtbl;
2045 reader->IWMReaderNetworkConfig2_iface.lpVtbl = &WMReaderNetworkConfig2Vtbl;
2046 reader->IWMReaderStreamClock_iface.lpVtbl = &WMReaderStreamClockVtbl;
2047 reader->IWMReaderTypeNegotiation_iface.lpVtbl = &WMReaderTypeNegotiationVtbl;
2048 reader->IWMReaderTimecode_iface.lpVtbl = &WMReaderTimecodeVtbl;
2049 reader->IWMReaderPlaylistBurn_iface.lpVtbl = &WMReaderPlaylistBurnVtbl;
2050 reader->IWMHeaderInfo3_iface.lpVtbl = &WMHeaderInfo3Vtbl;
2051 reader->IWMLanguageList_iface.lpVtbl = &WMLanguageListVtbl;
2052 reader->IReferenceClock_iface.lpVtbl = &ReferenceClockVtbl;
2053 reader->IWMProfile3_iface.lpVtbl = &WMProfile3Vtbl;
2054 reader->IWMPacketSize2_iface.lpVtbl = &WMPacketSize2Vtbl;
2055 reader->ref = 1;
2057 *ret_reader = &reader->IWMReader_iface;
2058 return S_OK;
2061 HRESULT WINAPI WMCreateReaderPriv(IWMReader **ret_reader)
2063 return WMCreateReader(NULL, 0, ret_reader);
2066 typedef struct {
2067 IWMSyncReader IWMSyncReader_iface;
2068 LONG ref;
2069 } WMSyncReader;
2071 static inline WMSyncReader *impl_from_IWMSyncReader(IWMSyncReader *iface)
2073 return CONTAINING_RECORD(iface, WMSyncReader, IWMSyncReader_iface);
2076 static HRESULT WINAPI WMSyncReader_QueryInterface(IWMSyncReader *iface, REFIID riid, void **ppv)
2078 WMSyncReader *This = impl_from_IWMSyncReader(iface);
2080 if(IsEqualGUID(riid, &IID_IUnknown)) {
2081 TRACE("(%p)->(IID_IUnknown %p)\n", This, ppv);
2082 *ppv = &This->IWMSyncReader_iface;
2083 }else if(IsEqualGUID(riid, &IID_IWMSyncReader)) {
2084 TRACE("(%p)->(IID_IWMSyncReader %p)\n", This, ppv);
2085 *ppv = &This->IWMSyncReader_iface;
2086 }else {
2087 *ppv = NULL;
2088 FIXME("(%p)->(%s %p)\n", This, debugstr_guid(riid), ppv);
2089 return E_NOINTERFACE;
2092 IUnknown_AddRef((IUnknown*)*ppv);
2093 return S_OK;
2096 static ULONG WINAPI WMSyncReader_AddRef(IWMSyncReader *iface)
2098 WMSyncReader *This = impl_from_IWMSyncReader(iface);
2099 LONG ref = InterlockedIncrement(&This->ref);
2101 TRACE("(%p) ref=%d\n", This, ref);
2103 return ref;
2106 static ULONG WINAPI WMSyncReader_Release(IWMSyncReader *iface)
2108 WMSyncReader *This = impl_from_IWMSyncReader(iface);
2109 LONG ref = InterlockedDecrement(&This->ref);
2111 TRACE("(%p) ref=%d\n", This, ref);
2113 if(!ref)
2114 heap_free(This);
2116 return ref;
2119 static HRESULT WINAPI WMSyncReader_Close(IWMSyncReader *iface)
2121 WMSyncReader *This = impl_from_IWMSyncReader(iface);
2122 FIXME("(%p): stub!\n", This);
2123 return E_NOTIMPL;
2126 static HRESULT WINAPI WMSyncReader_GetMaxOutputSampleSize(IWMSyncReader *iface, DWORD output, DWORD *max)
2128 WMSyncReader *This = impl_from_IWMSyncReader(iface);
2129 FIXME("(%p)->(%d %p): stub!\n", This, output, max);
2130 return E_NOTIMPL;
2133 static HRESULT WINAPI WMSyncReader_GetMaxStreamSampleSize(IWMSyncReader *iface, WORD stream, DWORD *max)
2135 WMSyncReader *This = impl_from_IWMSyncReader(iface);
2136 FIXME("(%p)->(%d %p): stub!\n", This, stream, max);
2137 return E_NOTIMPL;
2140 static HRESULT WINAPI WMSyncReader_GetNextSample(IWMSyncReader *iface, WORD stream, INSSBuffer **sample,
2141 QWORD *sample_time, QWORD *sample_duration, DWORD *flags, DWORD *output_num, WORD *stream_num)
2143 WMSyncReader *This = impl_from_IWMSyncReader(iface);
2144 FIXME("(%p)->(%d %p %p %p %p %p %p): stub!\n", This, stream, sample, sample_time,
2145 sample_duration, flags, output_num, stream_num);
2146 return E_NOTIMPL;
2149 static HRESULT WINAPI WMSyncReader_GetOutputCount(IWMSyncReader *iface, DWORD *outputs)
2151 WMSyncReader *This = impl_from_IWMSyncReader(iface);
2152 FIXME("(%p)->(%p): stub!\n", This, outputs);
2153 return E_NOTIMPL;
2156 static HRESULT WINAPI WMSyncReader_GetOutputFormat(IWMSyncReader *iface, DWORD output_num, DWORD format_num,
2157 IWMOutputMediaProps **props)
2159 WMSyncReader *This = impl_from_IWMSyncReader(iface);
2160 FIXME("(%p)->(%u %u %p): stub!\n", This, output_num, format_num, props);
2161 return E_NOTIMPL;
2164 static HRESULT WINAPI WMSyncReader_GetOutputFormatCount(IWMSyncReader *iface, DWORD output_num, DWORD *formats)
2166 WMSyncReader *This = impl_from_IWMSyncReader(iface);
2167 FIXME("(%p)->(%u %p): stub!\n", This, output_num, formats);
2168 return E_NOTIMPL;
2171 static HRESULT WINAPI WMSyncReader_GetOutputNumberForStream(IWMSyncReader *iface, WORD stream_num, DWORD *output_num)
2173 WMSyncReader *This = impl_from_IWMSyncReader(iface);
2174 FIXME("(%p)->(%u %p): stub!\n", This, stream_num, output_num);
2175 return E_NOTIMPL;
2178 static HRESULT WINAPI WMSyncReader_GetOutputProps(IWMSyncReader *iface, DWORD output_num, IWMOutputMediaProps **output)
2180 WMSyncReader *This = impl_from_IWMSyncReader(iface);
2181 FIXME("(%p)->(%u %p): stub!\n", This, output_num, output);
2182 return E_NOTIMPL;
2185 static HRESULT WINAPI WMSyncReader_GetOutputSetting(IWMSyncReader *iface, DWORD output_num, const WCHAR *name,
2186 WMT_ATTR_DATATYPE *type, BYTE *value, WORD *length)
2188 WMSyncReader *This = impl_from_IWMSyncReader(iface);
2189 FIXME("(%p)->(%u %s %p %p %p): stub!\n", This, output_num, debugstr_w(name), type, value, length);
2190 return E_NOTIMPL;
2193 static HRESULT WINAPI WMSyncReader_GetReadStreamSamples(IWMSyncReader *iface, WORD stream_num, BOOL *compressed)
2195 WMSyncReader *This = impl_from_IWMSyncReader(iface);
2196 FIXME("(%p)->(%d %p): stub!\n", This, stream_num, compressed);
2197 return E_NOTIMPL;
2200 static HRESULT WINAPI WMSyncReader_GetStreamNumberForOutput(IWMSyncReader *iface, DWORD output, WORD *stream_num)
2202 WMSyncReader *This = impl_from_IWMSyncReader(iface);
2203 FIXME("(%p)->(%u %p): stub!\n", This, output, stream_num);
2204 return S_OK;
2207 static HRESULT WINAPI WMSyncReader_GetStreamSelected(IWMSyncReader *iface, WORD stream_num, WMT_STREAM_SELECTION *selection)
2209 WMSyncReader *This = impl_from_IWMSyncReader(iface);
2210 FIXME("(%p)->(%d %p): stub!\n", This, stream_num, selection);
2211 return E_NOTIMPL;
2214 static HRESULT WINAPI WMSyncReader_Open(IWMSyncReader *iface, const WCHAR *filename)
2216 WMSyncReader *This = impl_from_IWMSyncReader(iface);
2217 FIXME("(%p)->(%s): stub!\n", This, debugstr_w(filename));
2218 return E_NOTIMPL;
2221 static HRESULT WINAPI WMSyncReader_OpenStream(IWMSyncReader *iface, IStream *stream)
2223 WMSyncReader *This = impl_from_IWMSyncReader(iface);
2224 FIXME("(%p)->(%p): stub!\n", This, stream);
2225 return E_NOTIMPL;
2228 static HRESULT WINAPI WMSyncReader_SetOutputProps(IWMSyncReader *iface, DWORD output_num, IWMOutputMediaProps *output)
2230 WMSyncReader *This = impl_from_IWMSyncReader(iface);
2231 FIXME("(%p)->(%u %p): stub!\n", This, output_num, output);
2232 return E_NOTIMPL;
2235 static HRESULT WINAPI WMSyncReader_SetOutputSetting(IWMSyncReader *iface, DWORD output_num, const WCHAR *name,
2236 WMT_ATTR_DATATYPE type, const BYTE *value, WORD length)
2238 WMSyncReader *This = impl_from_IWMSyncReader(iface);
2239 FIXME("(%p)->(%d %s %d %p %d): stub!\n", This, output_num, debugstr_w(name), type, value, length);
2240 return E_NOTIMPL;
2243 static HRESULT WINAPI WMSyncReader_SetRange(IWMSyncReader *iface, QWORD start, LONGLONG duration)
2245 WMSyncReader *This = impl_from_IWMSyncReader(iface);
2246 FIXME("(%p)->(%s %s): stub!\n", This, wine_dbgstr_longlong(start), wine_dbgstr_longlong(duration));
2247 return E_NOTIMPL;
2250 static HRESULT WINAPI WMSyncReader_SetRangeByFrame(IWMSyncReader *iface, WORD stream_num, QWORD frame_num,
2251 LONGLONG frames)
2253 WMSyncReader *This = impl_from_IWMSyncReader(iface);
2254 FIXME("(%p)->(%d %s %s): stub!\n", This, stream_num, wine_dbgstr_longlong(frame_num), wine_dbgstr_longlong(frames));
2255 return E_NOTIMPL;
2258 static HRESULT WINAPI WMSyncReader_SetReadStreamSamples(IWMSyncReader *iface, WORD stream_num, BOOL compressed)
2260 WMSyncReader *This = impl_from_IWMSyncReader(iface);
2261 FIXME("(%p)->(%u %x): stub!\n", This, stream_num, compressed);
2262 return E_NOTIMPL;
2265 static HRESULT WINAPI WMSyncReader_SetStreamsSelected(IWMSyncReader *iface, WORD stream_count,
2266 WORD *stream_numbers, WMT_STREAM_SELECTION *selections)
2268 WMSyncReader *This = impl_from_IWMSyncReader(iface);
2269 FIXME("(%p)->(%d %p %p): stub!\n", This, stream_count, stream_numbers, selections);
2270 return S_OK;
2273 static const IWMSyncReaderVtbl WMSyncReaderVtbl = {
2274 WMSyncReader_QueryInterface,
2275 WMSyncReader_AddRef,
2276 WMSyncReader_Release,
2277 WMSyncReader_Open,
2278 WMSyncReader_Close,
2279 WMSyncReader_SetRange,
2280 WMSyncReader_SetRangeByFrame,
2281 WMSyncReader_GetNextSample,
2282 WMSyncReader_SetStreamsSelected,
2283 WMSyncReader_GetStreamSelected,
2284 WMSyncReader_SetReadStreamSamples,
2285 WMSyncReader_GetReadStreamSamples,
2286 WMSyncReader_GetOutputSetting,
2287 WMSyncReader_SetOutputSetting,
2288 WMSyncReader_GetOutputCount,
2289 WMSyncReader_GetOutputProps,
2290 WMSyncReader_SetOutputProps,
2291 WMSyncReader_GetOutputFormatCount,
2292 WMSyncReader_GetOutputFormat,
2293 WMSyncReader_GetOutputNumberForStream,
2294 WMSyncReader_GetStreamNumberForOutput,
2295 WMSyncReader_GetMaxOutputSampleSize,
2296 WMSyncReader_GetMaxStreamSampleSize,
2297 WMSyncReader_OpenStream
2300 HRESULT WINAPI WMCreateSyncReader(IUnknown *pcert, DWORD rights, IWMSyncReader **syncreader)
2302 WMSyncReader *sync;
2304 TRACE("(%p, %x, %p)\n", pcert, rights, syncreader);
2306 sync = heap_alloc(sizeof(*sync));
2308 if (!sync)
2309 return E_OUTOFMEMORY;
2311 sync->IWMSyncReader_iface.lpVtbl = &WMSyncReaderVtbl;
2312 sync->ref = 1;
2314 *syncreader = &sync->IWMSyncReader_iface;
2316 return S_OK;
2319 HRESULT WINAPI WMCreateSyncReaderPriv(IWMSyncReader **syncreader)
2321 return WMCreateSyncReader(NULL, 0, syncreader);