bcrypt: Require macOS version 10.7 or newer for encryption support.
[wine.git] / dlls / wmvcore / wmvcore_main.c
blobae8b486532ebfe58209a8a2ae218d93826a1cc93
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 "initguid.h"
22 #include "wmsdk.h"
23 #include "wine/debug.h"
25 WINE_DEFAULT_DEBUG_CHANNEL(wmvcore);
27 BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
29 TRACE("(0x%p, %d, %p)\n", hinstDLL, fdwReason, lpvReserved);
31 switch (fdwReason)
33 case DLL_WINE_PREATTACH:
34 return FALSE; /* prefer native version */
35 case DLL_PROCESS_ATTACH:
36 DisableThreadLibraryCalls(hinstDLL);
37 break;
40 return TRUE;
43 HRESULT WINAPI DllRegisterServer(void)
45 FIXME("(): stub\n");
47 return S_OK;
50 HRESULT WINAPI WMCheckURLScheme(const WCHAR *scheme)
52 FIXME("(%s): stub\n", wine_dbgstr_w(scheme));
54 return NS_E_INVALID_NAME;
57 HRESULT WINAPI WMCreateEditor(IWMMetadataEditor **editor)
59 FIXME("(%p): stub\n", editor);
61 *editor = NULL;
63 return E_NOTIMPL;
66 typedef struct {
67 IWMReader IWMReader_iface;
68 IWMReaderAdvanced6 IWMReaderAdvanced6_iface;
69 IWMReaderAccelerator IWMReaderAccelerator_iface;
70 IWMReaderNetworkConfig2 IWMReaderNetworkConfig2_iface;
71 IWMReaderStreamClock IWMReaderStreamClock_iface;
72 IWMReaderTypeNegotiation IWMReaderTypeNegotiation_iface;
73 IWMReaderTimecode IWMReaderTimecode_iface;
74 IWMReaderPlaylistBurn IWMReaderPlaylistBurn_iface;
75 IWMHeaderInfo3 IWMHeaderInfo3_iface;
76 IWMLanguageList IWMLanguageList_iface;
77 IReferenceClock IReferenceClock_iface;
78 IWMProfile3 IWMProfile3_iface;
79 IWMPacketSize2 IWMPacketSize2_iface;
80 LONG ref;
81 } WMReader;
83 static inline WMReader *impl_from_IWMReader(IWMReader *iface)
85 return CONTAINING_RECORD(iface, WMReader, IWMReader_iface);
88 static HRESULT WINAPI WMReader_QueryInterface(IWMReader *iface, REFIID riid, void **ppv)
90 WMReader *This = impl_from_IWMReader(iface);
92 if(IsEqualGUID(riid, &IID_IUnknown)) {
93 TRACE("(%p)->(IID_IUnknown %p)\n", This, ppv);
94 *ppv = &This->IWMReader_iface;
95 }else if(IsEqualGUID(riid, &IID_IWMReader)) {
96 TRACE("(%p)->(IID_IWMReader %p)\n", This, ppv);
97 *ppv = &This->IWMReader_iface;
98 }else if(IsEqualGUID(riid, &IID_IWMReaderAdvanced)) {
99 TRACE("(%p)->(IID_IWMReaderAdvanced %p)\n", This, ppv);
100 *ppv = &This->IWMReaderAdvanced6_iface;
101 }else if(IsEqualGUID(riid, &IID_IWMReaderAdvanced2)) {
102 TRACE("(%p)->(IID_IWMReaderAdvanced2 %p)\n", This, ppv);
103 *ppv = &This->IWMReaderAdvanced6_iface;
104 }else if(IsEqualGUID(riid, &IID_IWMReaderAdvanced3)) {
105 TRACE("(%p)->(IID_IWMReaderAdvanced3 %p)\n", This, ppv);
106 *ppv = &This->IWMReaderAdvanced6_iface;
107 }else if(IsEqualGUID(riid, &IID_IWMReaderAdvanced4)) {
108 TRACE("(%p)->(IID_IWMReaderAdvanced4 %p)\n", This, ppv);
109 *ppv = &This->IWMReaderAdvanced6_iface;
110 }else if(IsEqualGUID(riid, &IID_IWMReaderAdvanced5)) {
111 TRACE("(%p)->(IID_IWMReaderAdvanced5 %p)\n", This, ppv);
112 *ppv = &This->IWMReaderAdvanced6_iface;
113 }else if(IsEqualGUID(riid, &IID_IWMReaderAdvanced6)) {
114 TRACE("(%p)->(IID_IWMReaderAdvanced6 %p)\n", This, ppv);
115 *ppv = &This->IWMReaderAdvanced6_iface;
116 }else if(IsEqualGUID(riid, &IID_IWMReaderAccelerator)) {
117 TRACE("(%p)->(IID_IWMReaderAccelerator %p)\n", This, ppv);
118 *ppv = &This->IWMReaderAccelerator_iface;
119 }else if(IsEqualGUID(riid, &IID_IWMReaderNetworkConfig)) {
120 TRACE("(%p)->(IWMReaderNetworkConfig %p)\n", This, ppv);
121 *ppv = &This->IWMReaderNetworkConfig2_iface;
122 }else if(IsEqualGUID(riid, &IID_IWMReaderNetworkConfig2)) {
123 TRACE("(%p)->(IWMReaderNetworkConfig2 %p)\n", This, ppv);
124 *ppv = &This->IWMReaderNetworkConfig2_iface;
125 }else if(IsEqualGUID(riid, &IID_IWMReaderStreamClock)) {
126 TRACE("(%p)->(IWMReaderStreamClock %p)\n", This, ppv);
127 *ppv = &This->IWMReaderStreamClock_iface;
128 }else if(IsEqualGUID(riid, &IID_IWMReaderTypeNegotiation)) {
129 TRACE("(%p)->(IWMReaderTypeNegotiation %p)\n", This, ppv);
130 *ppv = &This->IWMReaderTypeNegotiation_iface;
131 }else if(IsEqualGUID(riid, &IID_IWMReaderTimecode)) {
132 TRACE("(%p)->(IWMReaderTimecode %p)\n", This, ppv);
133 *ppv = &This->IWMReaderTimecode_iface;
134 }else if(IsEqualGUID(riid, &IID_IWMReaderPlaylistBurn)) {
135 TRACE("(%p)->(IWMReaderPlaylistBurn %p)\n", This, ppv);
136 *ppv = &This->IWMReaderPlaylistBurn_iface;
137 }else if(IsEqualGUID(riid, &IID_IWMHeaderInfo)) {
138 TRACE("(%p)->(IWMHeaderInfo %p)\n", This, ppv);
139 *ppv = &This->IWMHeaderInfo3_iface;
140 }else if(IsEqualGUID(riid, &IID_IWMHeaderInfo2)) {
141 TRACE("(%p)->(IWMHeaderInfo2 %p)\n", This, ppv);
142 *ppv = &This->IWMHeaderInfo3_iface;
143 }else if(IsEqualGUID(riid, &IID_IWMHeaderInfo3)) {
144 TRACE("(%p)->(IWMHeaderInfo3 %p)\n", This, ppv);
145 *ppv = &This->IWMHeaderInfo3_iface;
146 }else if(IsEqualGUID(riid, &IID_IWMLanguageList)) {
147 TRACE("(%p)->(IWMLanguageList %p)\n", This, ppv);
148 *ppv = &This->IWMLanguageList_iface;
149 }else if(IsEqualGUID(riid, &IID_IReferenceClock)) {
150 TRACE("(%p)->(IWMLanguageList %p)\n", This, ppv);
151 *ppv = &This->IReferenceClock_iface;
152 }else if(IsEqualGUID(riid, &IID_IWMProfile)) {
153 TRACE("(%p)->(IWMProfile %p)\n", This, ppv);
154 *ppv = &This->IWMProfile3_iface;
155 }else if(IsEqualGUID(riid, &IID_IWMProfile2)) {
156 TRACE("(%p)->(IWMProfile2 %p)\n", This, ppv);
157 *ppv = &This->IWMProfile3_iface;
158 }else if(IsEqualGUID(riid, &IID_IWMProfile3)) {
159 TRACE("(%p)->(IWMProfile3 %p)\n", This, ppv);
160 *ppv = &This->IWMProfile3_iface;
161 }else if(IsEqualGUID(riid, &IID_IWMPacketSize)) {
162 TRACE("(%p)->(IWMPacketSize %p)\n", This, ppv);
163 *ppv = &This->IWMPacketSize2_iface;
164 }else if(IsEqualGUID(riid, &IID_IWMPacketSize2)) {
165 TRACE("(%p)->(IWMPacketSize2 %p)\n", This, ppv);
166 *ppv = &This->IWMPacketSize2_iface;
167 }else {
168 *ppv = NULL;
169 FIXME("(%p)->(%s %p)\n", This, debugstr_guid(riid), ppv);
170 return E_NOINTERFACE;
173 IUnknown_AddRef((IUnknown*)*ppv);
174 return S_OK;
177 static ULONG WINAPI WMReader_AddRef(IWMReader *iface)
179 WMReader *This = impl_from_IWMReader(iface);
180 LONG ref = InterlockedIncrement(&This->ref);
182 TRACE("(%p) ref=%d\n", This, ref);
184 return ref;
187 static ULONG WINAPI WMReader_Release(IWMReader *iface)
189 WMReader *This = impl_from_IWMReader(iface);
190 LONG ref = InterlockedDecrement(&This->ref);
192 TRACE("(%p) ref=%d\n", This, ref);
194 if(!ref)
195 heap_free(This);
197 return ref;
200 static HRESULT WINAPI WMReader_Open(IWMReader *iface, const WCHAR *url, IWMReaderCallback *callback, void *context)
202 WMReader *This = impl_from_IWMReader(iface);
203 FIXME("(%p)->(%s %p %p)\n", This, debugstr_w(url), callback, context);
204 return E_NOTIMPL;
207 static HRESULT WINAPI WMReader_Close(IWMReader *iface)
209 WMReader *This = impl_from_IWMReader(iface);
210 FIXME("(%p)\n", This);
211 return E_NOTIMPL;
214 static HRESULT WINAPI WMReader_GetOutputCount(IWMReader *iface, DWORD *outputs)
216 WMReader *This = impl_from_IWMReader(iface);
217 FIXME("(%p)->(%p)\n", This, outputs);
218 return E_NOTIMPL;
221 static HRESULT WINAPI WMReader_GetOutputProps(IWMReader *iface, DWORD output_num, IWMOutputMediaProps **output)
223 WMReader *This = impl_from_IWMReader(iface);
224 FIXME("(%p)->(%u %p)\n", This, output_num, output);
225 return E_NOTIMPL;
228 static HRESULT WINAPI WMReader_SetOutputProps(IWMReader *iface, DWORD output_num, IWMOutputMediaProps *output)
230 WMReader *This = impl_from_IWMReader(iface);
231 FIXME("(%p)->(%u %p)\n", This, output_num, output);
232 return E_NOTIMPL;
235 static HRESULT WINAPI WMReader_GetOutputFormatCount(IWMReader *iface, DWORD output_num, DWORD *formats)
237 WMReader *This = impl_from_IWMReader(iface);
238 FIXME("(%p)->(%u %p)\n", This, output_num, formats);
239 return E_NOTIMPL;
242 static HRESULT WINAPI WMReader_GetOutputFormat(IWMReader *iface, DWORD output_num, DWORD format_num, IWMOutputMediaProps **props)
244 WMReader *This = impl_from_IWMReader(iface);
245 FIXME("(%p)->(%u %u %p)\n", This, output_num, format_num, props);
246 return E_NOTIMPL;
249 static HRESULT WINAPI WMReader_Start(IWMReader *iface, QWORD start, QWORD duration, float rate, void *context)
251 WMReader *This = impl_from_IWMReader(iface);
252 FIXME("(%p)->(%s %s %f %p)\n", This, wine_dbgstr_longlong(start), wine_dbgstr_longlong(duration), rate, context);
253 return E_NOTIMPL;
256 static HRESULT WINAPI WMReader_Stop(IWMReader *iface)
258 WMReader *This = impl_from_IWMReader(iface);
259 FIXME("(%p)\n", This);
260 return E_NOTIMPL;
263 static HRESULT WINAPI WMReader_Pause(IWMReader *iface)
265 WMReader *This = impl_from_IWMReader(iface);
266 FIXME("(%p)\n", This);
267 return E_NOTIMPL;
270 static HRESULT WINAPI WMReader_Resume(IWMReader *iface)
272 WMReader *This = impl_from_IWMReader(iface);
273 FIXME("(%p)\n", This);
274 return E_NOTIMPL;
277 static const IWMReaderVtbl WMReaderVtbl = {
278 WMReader_QueryInterface,
279 WMReader_AddRef,
280 WMReader_Release,
281 WMReader_Open,
282 WMReader_Close,
283 WMReader_GetOutputCount,
284 WMReader_GetOutputProps,
285 WMReader_SetOutputProps,
286 WMReader_GetOutputFormatCount,
287 WMReader_GetOutputFormat,
288 WMReader_Start,
289 WMReader_Stop,
290 WMReader_Pause,
291 WMReader_Resume
294 static inline WMReader *impl_from_IWMReaderAdvanced6(IWMReaderAdvanced6 *iface)
296 return CONTAINING_RECORD(iface, WMReader, IWMReaderAdvanced6_iface);
299 static HRESULT WINAPI WMReaderAdvanced_QueryInterface(IWMReaderAdvanced6 *iface, REFIID riid, void **ppv)
301 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
302 return IWMReader_QueryInterface(&This->IWMReader_iface, riid, ppv);
305 static ULONG WINAPI WMReaderAdvanced_AddRef(IWMReaderAdvanced6 *iface)
307 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
308 return IWMReader_AddRef(&This->IWMReader_iface);
311 static ULONG WINAPI WMReaderAdvanced_Release(IWMReaderAdvanced6 *iface)
313 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
314 return IWMReader_Release(&This->IWMReader_iface);
317 static HRESULT WINAPI WMReaderAdvanced_SetUserProvidedClock(IWMReaderAdvanced6 *iface, BOOL user_clock)
319 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
320 FIXME("(%p)->(%x)\n", This, user_clock);
321 return E_NOTIMPL;
324 static HRESULT WINAPI WMReaderAdvanced_GetUserProvidedClock(IWMReaderAdvanced6 *iface, BOOL *user_clock)
326 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
327 FIXME("(%p)->(%p)\n", This, user_clock);
328 return E_NOTIMPL;
331 static HRESULT WINAPI WMReaderAdvanced_DeliverTime(IWMReaderAdvanced6 *iface, QWORD time)
333 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
334 FIXME("(%p)->(%s)\n", This, wine_dbgstr_longlong(time));
335 return E_NOTIMPL;
338 static HRESULT WINAPI WMReaderAdvanced_SetManualStreamSelection(IWMReaderAdvanced6 *iface, BOOL selection)
340 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
341 FIXME("(%p)->(%x)\n", This, selection);
342 return E_NOTIMPL;
345 static HRESULT WINAPI WMReaderAdvanced_GetManualStreamSelection(IWMReaderAdvanced6 *iface, BOOL *selection)
347 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
348 FIXME("(%p)->(%p)\n", This, selection);
349 return E_NOTIMPL;
352 static HRESULT WINAPI WMReaderAdvanced_SetStreamsSelected(IWMReaderAdvanced6 *iface, WORD stream_count,
353 WORD *stream_numbers, WMT_STREAM_SELECTION *selections)
355 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
356 FIXME("(%p)->(%d %p %p)\n", This, stream_count, stream_numbers, selections);
357 return E_NOTIMPL;
360 static HRESULT WINAPI WMReaderAdvanced_GetStreamSelected(IWMReaderAdvanced6 *iface, WORD stream_num,
361 WMT_STREAM_SELECTION *selection)
363 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
364 FIXME("(%p)->(%d %p)\n", This, stream_num, selection);
365 return E_NOTIMPL;
368 static HRESULT WINAPI WMReaderAdvanced_SetReceiveSelectionCallbacks(IWMReaderAdvanced6 *iface, BOOL get_callbacks)
370 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
371 FIXME("(%p)->(%x)\n", This, get_callbacks);
372 return E_NOTIMPL;
375 static HRESULT WINAPI WMReaderAdvanced_GetReceiveSelectionCallbacks(IWMReaderAdvanced6 *iface, BOOL *get_callbacks)
377 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
378 FIXME("(%p)->(%p)\n", This, get_callbacks);
379 return E_NOTIMPL;
382 static HRESULT WINAPI WMReaderAdvanced_SetReceiveStreamSamples(IWMReaderAdvanced6 *iface, WORD stream_num,
383 BOOL receive_stream_samples)
385 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
386 FIXME("(%p)->(%d %x)\n", This, stream_num, receive_stream_samples);
387 return E_NOTIMPL;
390 static HRESULT WINAPI WMReaderAdvanced_GetReceiveStreamSamples(IWMReaderAdvanced6 *iface, WORD stream_num,
391 BOOL *receive_stream_samples)
393 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
394 FIXME("(%p)->(%d %p)\n", This, stream_num, receive_stream_samples);
395 return E_NOTIMPL;
398 static HRESULT WINAPI WMReaderAdvanced_SetAllocateForOutput(IWMReaderAdvanced6 *iface, DWORD output_num, BOOL allocate)
400 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
401 FIXME("(%p)->(%d %x)\n", This, output_num, allocate);
402 return E_NOTIMPL;
405 static HRESULT WINAPI WMReaderAdvanced_GetAllocateForOutput(IWMReaderAdvanced6 *iface, DWORD output_num, BOOL *allocate)
407 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
408 FIXME("(%p)->(%d %p)\n", This, output_num, allocate);
409 return E_NOTIMPL;
412 static HRESULT WINAPI WMReaderAdvanced_SetAllocateForStream(IWMReaderAdvanced6 *iface, WORD output_num, BOOL allocate)
414 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
415 FIXME("(%p)->(%d %x)\n", This, output_num, allocate);
416 return E_NOTIMPL;
419 static HRESULT WINAPI WMReaderAdvanced_GetAllocateForStream(IWMReaderAdvanced6 *iface, WORD output_num, BOOL *allocate)
421 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
422 FIXME("(%p)->(%d %p)\n", This, output_num, allocate);
423 return E_NOTIMPL;
426 static HRESULT WINAPI WMReaderAdvanced_GetStatistics(IWMReaderAdvanced6 *iface, WM_READER_STATISTICS *statistics)
428 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
429 FIXME("(%p)->(%p)\n", This, statistics);
430 return E_NOTIMPL;
433 static HRESULT WINAPI WMReaderAdvanced_SetClientInfo(IWMReaderAdvanced6 *iface, WM_READER_CLIENTINFO *client_info)
435 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
436 FIXME("(%p)->(%p)\n", This, client_info);
437 return E_NOTIMPL;
440 static HRESULT WINAPI WMReaderAdvanced_GetMaxOutputSampleSize(IWMReaderAdvanced6 *iface, DWORD output, DWORD *max)
442 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
443 FIXME("(%p)->(%d %p)\n", This, output, max);
444 return E_NOTIMPL;
447 static HRESULT WINAPI WMReaderAdvanced_GetMaxStreamSampleSize(IWMReaderAdvanced6 *iface, WORD stream, DWORD *max)
449 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
450 FIXME("(%p)->(%d %p)\n", This, stream, max);
451 return E_NOTIMPL;
454 static HRESULT WINAPI WMReaderAdvanced_NotifyLateDelivery(IWMReaderAdvanced6 *iface, QWORD lateness)
456 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
457 FIXME("(%p)->(%s)\n", This, wine_dbgstr_longlong(lateness));
458 return E_NOTIMPL;
461 static HRESULT WINAPI WMReaderAdvanced2_SetPlayMode(IWMReaderAdvanced6 *iface, WMT_PLAY_MODE mode)
463 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
464 FIXME("(%p)->(%d)\n", This, mode);
465 return E_NOTIMPL;
468 static HRESULT WINAPI WMReaderAdvanced2_GetPlayMode(IWMReaderAdvanced6 *iface, WMT_PLAY_MODE *mode)
470 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
471 FIXME("(%p)->(%p)\n", This, mode);
472 return E_NOTIMPL;
475 static HRESULT WINAPI WMReaderAdvanced2_GetBufferProgress(IWMReaderAdvanced6 *iface, DWORD *percent, QWORD *buffering)
477 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
478 FIXME("(%p)->(%p %p)\n", This, percent, buffering);
479 return E_NOTIMPL;
482 static HRESULT WINAPI WMReaderAdvanced2_GetDownloadProgress(IWMReaderAdvanced6 *iface, DWORD *percent,
483 QWORD *bytes_downloaded, QWORD *download)
485 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
486 FIXME("(%p)->(%p %p %p)\n", This, percent, bytes_downloaded, download);
487 return E_NOTIMPL;
490 static HRESULT WINAPI WMReaderAdvanced2_GetSaveAsProgress(IWMReaderAdvanced6 *iface, DWORD *percent)
492 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
493 FIXME("(%p)->(%p)\n", This, percent);
494 return E_NOTIMPL;
497 static HRESULT WINAPI WMReaderAdvanced2_SaveFileAs(IWMReaderAdvanced6 *iface, const WCHAR *filename)
499 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
500 FIXME("(%p)->(%s)\n", This, debugstr_w(filename));
501 return E_NOTIMPL;
504 static HRESULT WINAPI WMReaderAdvanced2_GetProtocolName(IWMReaderAdvanced6 *iface, WCHAR *protocol, DWORD *protocol_len)
506 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
507 FIXME("(%p)->(%p %p)\n", This, protocol, protocol_len);
508 return E_NOTIMPL;
511 static HRESULT WINAPI WMReaderAdvanced2_StartAtMarker(IWMReaderAdvanced6 *iface, WORD marker_index,
512 QWORD duration, float rate, void *context)
514 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
515 FIXME("(%p)->(%d %s %f %p)\n", This, marker_index, wine_dbgstr_longlong(duration), rate, context);
516 return E_NOTIMPL;
519 static HRESULT WINAPI WMReaderAdvanced2_GetOutputSetting(IWMReaderAdvanced6 *iface, DWORD output_num,
520 const WCHAR *name, WMT_ATTR_DATATYPE *type, BYTE *value, WORD *length)
522 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
523 FIXME("(%p)->(%d %s %p %p %p)\n", This, output_num, debugstr_w(name), type, value, length);
524 return E_NOTIMPL;
527 static HRESULT WINAPI WMReaderAdvanced2_SetOutputSetting(IWMReaderAdvanced6 *iface, DWORD output_num,
528 const WCHAR *name, WMT_ATTR_DATATYPE type, const BYTE *value, WORD length)
530 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
531 FIXME("(%p)->(%d %s %d %p %d)\n", This, output_num, debugstr_w(name), type, value, length);
532 return E_NOTIMPL;
535 static HRESULT WINAPI WMReaderAdvanced2_Preroll(IWMReaderAdvanced6 *iface, QWORD start, QWORD duration, float rate)
537 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
538 FIXME("(%p)->(%s %s %f)\n", This, wine_dbgstr_longlong(start), wine_dbgstr_longlong(duration), rate);
539 return E_NOTIMPL;
542 static HRESULT WINAPI WMReaderAdvanced2_SetLogClientID(IWMReaderAdvanced6 *iface, BOOL log_client_id)
544 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
545 FIXME("(%p)->(%x)\n", This, log_client_id);
546 return E_NOTIMPL;
549 static HRESULT WINAPI WMReaderAdvanced2_GetLogClientID(IWMReaderAdvanced6 *iface, BOOL *log_client_id)
551 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
552 FIXME("(%p)->(%p)\n", This, log_client_id);
553 return E_NOTIMPL;
556 static HRESULT WINAPI WMReaderAdvanced2_StopBuffering(IWMReaderAdvanced6 *iface)
558 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
559 FIXME("(%p)\n", This);
560 return E_NOTIMPL;
563 static HRESULT WINAPI WMReaderAdvanced2_OpenStream(IWMReaderAdvanced6 *iface, IStream *stream,
564 IWMReaderCallback *callback, void *context)
566 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
567 FIXME("(%p)->(%p %p %p)\n", This, stream, callback, context);
568 return E_NOTIMPL;
571 static HRESULT WINAPI WMReaderAdvanced3_StopNetStreaming(IWMReaderAdvanced6 *iface)
573 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
574 FIXME("(%p)\n", This);
575 return E_NOTIMPL;
578 static HRESULT WINAPI WMReaderAdvanced3_StartAtPosition(IWMReaderAdvanced6 *iface, WORD stream_num,
579 void *offset_start, void *duration, WMT_OFFSET_FORMAT format, float rate, void *context)
581 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
582 FIXME("(%p)->(%d %p %p %d %f %p)\n", This, stream_num, offset_start, duration, format, rate, context);
583 return E_NOTIMPL;
586 static HRESULT WINAPI WMReaderAdvanced4_GetLanguageCount(IWMReaderAdvanced6 *iface, DWORD output_num, WORD *language_count)
588 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
589 FIXME("(%p)->(%d %p)\n", This, output_num, language_count);
590 return E_NOTIMPL;
593 static HRESULT WINAPI WMReaderAdvanced4_GetLanguage(IWMReaderAdvanced6 *iface, DWORD output_num,
594 WORD language, WCHAR *language_string, WORD *language_string_len)
596 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
597 FIXME("(%p)->(%d %x %p %p)\n", This, output_num, language, language_string, language_string_len);
598 return E_NOTIMPL;
601 static HRESULT WINAPI WMReaderAdvanced4_GetMaxSpeedFactor(IWMReaderAdvanced6 *iface, double *factor)
603 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
604 FIXME("(%p)->(%p)\n", This, factor);
605 return E_NOTIMPL;
608 static HRESULT WINAPI WMReaderAdvanced4_IsUsingFastCache(IWMReaderAdvanced6 *iface, BOOL *using_fast_cache)
610 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
611 FIXME("(%p)->(%p)\n", This, using_fast_cache);
612 return E_NOTIMPL;
615 static HRESULT WINAPI WMReaderAdvanced4_AddLogParam(IWMReaderAdvanced6 *iface, const WCHAR *namespace,
616 const WCHAR *name, const WCHAR *value)
618 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
619 FIXME("(%p)->(%s %s %s)\n", This, debugstr_w(namespace), debugstr_w(name), debugstr_w(value));
620 return E_NOTIMPL;
623 static HRESULT WINAPI WMReaderAdvanced4_SendLogParams(IWMReaderAdvanced6 *iface)
625 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
626 FIXME("(%p)\n", This);
627 return E_NOTIMPL;
630 static HRESULT WINAPI WMReaderAdvanced4_CanSaveFileAs(IWMReaderAdvanced6 *iface, BOOL *can_save)
632 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
633 FIXME("(%p)->(%p)\n", This, can_save);
634 return E_NOTIMPL;
637 static HRESULT WINAPI WMReaderAdvanced4_CancelSaveFileAs(IWMReaderAdvanced6 *iface)
639 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
640 FIXME("(%p)\n", This);
641 return E_NOTIMPL;
644 static HRESULT WINAPI WMReaderAdvanced4_GetURL(IWMReaderAdvanced6 *iface, WCHAR *url, DWORD *url_len)
646 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
647 FIXME("(%p)->(%p %p)\n", This, url, url_len);
648 return E_NOTIMPL;
651 static HRESULT WINAPI WMReaderAdvanced5_SetPlayerHook(IWMReaderAdvanced6 *iface, DWORD output_num, IWMPlayerHook *hook)
653 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
654 FIXME("(%p)->(%d %p)\n", This, output_num, hook);
655 return E_NOTIMPL;
658 static HRESULT WINAPI WMReaderAdvanced6_SetProtextStreamSamples(IWMReaderAdvanced6 *iface, BYTE *cert,
659 DWORD cert_size, DWORD cert_type, DWORD flags, BYTE *initialization_vector, DWORD *initialization_vector_size)
661 WMReader *This = impl_from_IWMReaderAdvanced6(iface);
662 FIXME("(%p)->(%p %d %d %x %p %p)\n", This, cert, cert_size, cert_type, flags, initialization_vector,
663 initialization_vector_size);
664 return E_NOTIMPL;
667 static const IWMReaderAdvanced6Vtbl WMReaderAdvanced6Vtbl = {
668 WMReaderAdvanced_QueryInterface,
669 WMReaderAdvanced_AddRef,
670 WMReaderAdvanced_Release,
671 WMReaderAdvanced_SetUserProvidedClock,
672 WMReaderAdvanced_GetUserProvidedClock,
673 WMReaderAdvanced_DeliverTime,
674 WMReaderAdvanced_SetManualStreamSelection,
675 WMReaderAdvanced_GetManualStreamSelection,
676 WMReaderAdvanced_SetStreamsSelected,
677 WMReaderAdvanced_GetStreamSelected,
678 WMReaderAdvanced_SetReceiveSelectionCallbacks,
679 WMReaderAdvanced_GetReceiveSelectionCallbacks,
680 WMReaderAdvanced_SetReceiveStreamSamples,
681 WMReaderAdvanced_GetReceiveStreamSamples,
682 WMReaderAdvanced_SetAllocateForOutput,
683 WMReaderAdvanced_GetAllocateForOutput,
684 WMReaderAdvanced_SetAllocateForStream,
685 WMReaderAdvanced_GetAllocateForStream,
686 WMReaderAdvanced_GetStatistics,
687 WMReaderAdvanced_SetClientInfo,
688 WMReaderAdvanced_GetMaxOutputSampleSize,
689 WMReaderAdvanced_GetMaxStreamSampleSize,
690 WMReaderAdvanced_NotifyLateDelivery,
691 WMReaderAdvanced2_SetPlayMode,
692 WMReaderAdvanced2_GetPlayMode,
693 WMReaderAdvanced2_GetBufferProgress,
694 WMReaderAdvanced2_GetDownloadProgress,
695 WMReaderAdvanced2_GetSaveAsProgress,
696 WMReaderAdvanced2_SaveFileAs,
697 WMReaderAdvanced2_GetProtocolName,
698 WMReaderAdvanced2_StartAtMarker,
699 WMReaderAdvanced2_GetOutputSetting,
700 WMReaderAdvanced2_SetOutputSetting,
701 WMReaderAdvanced2_Preroll,
702 WMReaderAdvanced2_SetLogClientID,
703 WMReaderAdvanced2_GetLogClientID,
704 WMReaderAdvanced2_StopBuffering,
705 WMReaderAdvanced2_OpenStream,
706 WMReaderAdvanced3_StopNetStreaming,
707 WMReaderAdvanced3_StartAtPosition,
708 WMReaderAdvanced4_GetLanguageCount,
709 WMReaderAdvanced4_GetLanguage,
710 WMReaderAdvanced4_GetMaxSpeedFactor,
711 WMReaderAdvanced4_IsUsingFastCache,
712 WMReaderAdvanced4_AddLogParam,
713 WMReaderAdvanced4_SendLogParams,
714 WMReaderAdvanced4_CanSaveFileAs,
715 WMReaderAdvanced4_CancelSaveFileAs,
716 WMReaderAdvanced4_GetURL,
717 WMReaderAdvanced5_SetPlayerHook,
718 WMReaderAdvanced6_SetProtextStreamSamples
721 static inline WMReader *impl_from_IWMReaderAccelerator(IWMReaderAccelerator *iface)
723 return CONTAINING_RECORD(iface, WMReader, IWMReaderAccelerator_iface);
726 static HRESULT WINAPI reader_accl_QueryInterface(IWMReaderAccelerator *iface, REFIID riid, void **object)
728 WMReader *This = impl_from_IWMReaderAccelerator(iface);
729 return IWMReader_QueryInterface(&This->IWMReader_iface, riid, object);
732 static ULONG WINAPI reader_accl_AddRef(IWMReaderAccelerator *iface)
734 WMReader *This = impl_from_IWMReaderAccelerator(iface);
735 return IWMReader_AddRef(&This->IWMReader_iface);
738 static ULONG WINAPI reader_accl_Release(IWMReaderAccelerator *iface)
740 WMReader *This = impl_from_IWMReaderAccelerator(iface);
741 return IWMReader_Release(&This->IWMReader_iface);
744 static HRESULT WINAPI reader_accl_GetCodecInterface(IWMReaderAccelerator *iface, DWORD output, REFIID riid, void **codec)
746 WMReader *This = impl_from_IWMReaderAccelerator(iface);
748 FIXME("%p, %d, %s, %p\n", This, output, debugstr_guid(riid), codec);
750 return E_NOTIMPL;
753 static HRESULT WINAPI reader_accl_Notify(IWMReaderAccelerator *iface, DWORD output, WM_MEDIA_TYPE *subtype)
755 WMReader *This = impl_from_IWMReaderAccelerator(iface);
757 FIXME("%p, %d, %p\n", This, output, subtype);
759 return E_NOTIMPL;
762 static const IWMReaderAcceleratorVtbl WMReaderAcceleratorVtbl = {
763 reader_accl_QueryInterface,
764 reader_accl_AddRef,
765 reader_accl_Release,
766 reader_accl_GetCodecInterface,
767 reader_accl_Notify
770 static inline WMReader *impl_from_IWMReaderNetworkConfig2(IWMReaderNetworkConfig2 *iface)
772 return CONTAINING_RECORD(iface, WMReader, IWMReaderNetworkConfig2_iface);
775 static HRESULT WINAPI networkconfig_QueryInterface(IWMReaderNetworkConfig2 *iface, REFIID riid, void **ppv)
777 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
778 return IWMReader_QueryInterface(&This->IWMReader_iface, riid, ppv);
781 static ULONG WINAPI networkconfig_AddRef(IWMReaderNetworkConfig2 *iface)
783 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
784 return IWMReader_AddRef(&This->IWMReader_iface);
787 static ULONG WINAPI networkconfig_Release(IWMReaderNetworkConfig2 *iface)
789 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
790 return IWMReader_Release(&This->IWMReader_iface);
793 static HRESULT WINAPI networkconfig_GetBufferingTime(IWMReaderNetworkConfig2 *iface, QWORD *buffering_time)
795 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
796 FIXME("%p, %p\n", This, buffering_time);
797 return E_NOTIMPL;
800 static HRESULT WINAPI networkconfig_SetBufferingTime(IWMReaderNetworkConfig2 *iface, QWORD buffering_time)
802 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
803 FIXME("%p, %s\n", This, wine_dbgstr_longlong(buffering_time));
804 return E_NOTIMPL;
807 static HRESULT WINAPI networkconfig_GetUDPPortRanges(IWMReaderNetworkConfig2 *iface, WM_PORT_NUMBER_RANGE *array,
808 DWORD *ranges)
810 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
811 FIXME("%p, %p, %p\n", This, array, ranges);
812 return E_NOTIMPL;
815 static HRESULT WINAPI networkconfig_SetUDPPortRanges(IWMReaderNetworkConfig2 *iface, WM_PORT_NUMBER_RANGE *array,
816 DWORD ranges)
818 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
819 FIXME("%p, %p, %u\n", This, array, ranges);
820 return E_NOTIMPL;
823 static HRESULT WINAPI networkconfig_GetProxySettings(IWMReaderNetworkConfig2 *iface, const WCHAR *protocol,
824 WMT_PROXY_SETTINGS *proxy)
826 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
827 FIXME("%p, %s, %p\n", This, debugstr_w(protocol), proxy);
828 return E_NOTIMPL;
831 static HRESULT WINAPI networkconfig_SetProxySettings(IWMReaderNetworkConfig2 *iface, LPCWSTR protocol,
832 WMT_PROXY_SETTINGS proxy)
834 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
835 FIXME("%p, %s, %d\n", This, debugstr_w(protocol), proxy);
836 return E_NOTIMPL;
839 static HRESULT WINAPI networkconfig_GetProxyHostName(IWMReaderNetworkConfig2 *iface, const WCHAR *protocol,
840 WCHAR *hostname, DWORD *size)
842 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
843 FIXME("%p, %s, %p, %p\n", This, debugstr_w(protocol), hostname, size);
844 return E_NOTIMPL;
847 static HRESULT WINAPI networkconfig_SetProxyHostName(IWMReaderNetworkConfig2 *iface, const WCHAR *protocol,
848 const WCHAR *hostname)
850 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
851 FIXME("%p, %s, %s\n", This, debugstr_w(protocol), debugstr_w(hostname));
852 return E_NOTIMPL;
855 static HRESULT WINAPI networkconfig_GetProxyPort(IWMReaderNetworkConfig2 *iface, const WCHAR *protocol,
856 DWORD *port)
858 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
859 FIXME("%p, %s, %p\n", This, debugstr_w(protocol), port);
860 return E_NOTIMPL;
863 static HRESULT WINAPI networkconfig_SetProxyPort(IWMReaderNetworkConfig2 *iface, const WCHAR *protocol,
864 DWORD port)
866 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
867 FIXME("%p, %s, %u\n", This, debugstr_w(protocol), port);
868 return E_NOTIMPL;
871 static HRESULT WINAPI networkconfig_GetProxyExceptionList(IWMReaderNetworkConfig2 *iface, const WCHAR *protocol,
872 WCHAR *exceptions, DWORD *count)
874 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
875 FIXME("%p, %s, %p, %p\n", This, debugstr_w(protocol), exceptions, count);
876 return E_NOTIMPL;
879 static HRESULT WINAPI networkconfig_SetProxyExceptionList(IWMReaderNetworkConfig2 *iface, const WCHAR *protocol,
880 const WCHAR *exceptions)
882 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
883 FIXME("%p, %s, %s\n", This, debugstr_w(protocol), debugstr_w(exceptions));
884 return E_NOTIMPL;
887 static HRESULT WINAPI networkconfig_GetProxyBypassForLocal(IWMReaderNetworkConfig2 *iface, const WCHAR *protocol,
888 BOOL *bypass)
890 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
891 FIXME("%p, %s, %p\n", This, debugstr_w(protocol), bypass);
892 return E_NOTIMPL;
895 static HRESULT WINAPI networkconfig_SetProxyBypassForLocal(IWMReaderNetworkConfig2 *iface, const WCHAR *protocol,
896 BOOL bypass)
898 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
899 FIXME("%p, %s, %d\n", This, debugstr_w(protocol), bypass);
900 return E_NOTIMPL;
903 static HRESULT WINAPI networkconfig_GetForceRerunAutoProxyDetection(IWMReaderNetworkConfig2 *iface,
904 BOOL *detection)
906 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
907 FIXME("%p, %p\n", This, detection);
908 return E_NOTIMPL;
911 static HRESULT WINAPI networkconfig_SetForceRerunAutoProxyDetection(IWMReaderNetworkConfig2 *iface,
912 BOOL detection)
914 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
915 FIXME("%p, %d\n", This, detection);
916 return E_NOTIMPL;
919 static HRESULT WINAPI networkconfig_GetEnableMulticast(IWMReaderNetworkConfig2 *iface, BOOL *multicast)
921 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
922 FIXME("%p, %p\n", This, multicast);
923 return E_NOTIMPL;
926 static HRESULT WINAPI networkconfig_SetEnableMulticast(IWMReaderNetworkConfig2 *iface, BOOL multicast)
928 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
929 FIXME("%p, %d\n", This, multicast);
930 return E_NOTIMPL;
933 static HRESULT WINAPI networkconfig_GetEnableHTTP(IWMReaderNetworkConfig2 *iface, BOOL *enable)
935 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
936 FIXME("%p, %p\n", This, enable);
937 return E_NOTIMPL;
940 static HRESULT WINAPI networkconfig_SetEnableHTTP(IWMReaderNetworkConfig2 *iface, BOOL enable)
942 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
943 FIXME("%p, %d\n", This, enable);
944 return E_NOTIMPL;
947 static HRESULT WINAPI networkconfig_GetEnableUDP(IWMReaderNetworkConfig2 *iface, BOOL *enable)
949 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
950 FIXME("%p, %p\n", This, enable);
951 return E_NOTIMPL;
954 static HRESULT WINAPI networkconfig_SetEnableUDP(IWMReaderNetworkConfig2 *iface, BOOL enable)
956 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
957 FIXME("%p, %d\n", This, enable);
958 return E_NOTIMPL;
961 static HRESULT WINAPI networkconfig_GetEnableTCP(IWMReaderNetworkConfig2 *iface, BOOL *enable)
963 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
964 FIXME("%p, %p\n", This, enable);
965 return E_NOTIMPL;
968 static HRESULT WINAPI networkconfig_SetEnableTCP(IWMReaderNetworkConfig2 *iface, BOOL enable)
970 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
971 FIXME("%p, %d\n", This, enable);
972 return E_NOTIMPL;
975 static HRESULT WINAPI networkconfig_ResetProtocolRollover(IWMReaderNetworkConfig2 *iface)
977 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
978 FIXME("%p\n", This);
979 return E_NOTIMPL;
982 static HRESULT WINAPI networkconfig_GetConnectionBandwidth(IWMReaderNetworkConfig2 *iface, DWORD *bandwidth)
984 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
985 FIXME("%p, %p\n", This, bandwidth);
986 return E_NOTIMPL;
989 static HRESULT WINAPI networkconfig_SetConnectionBandwidth(IWMReaderNetworkConfig2 *iface, DWORD bandwidth)
991 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
992 FIXME("%p, %u\n", This, bandwidth);
993 return E_NOTIMPL;
996 static HRESULT WINAPI networkconfig_GetNumProtocolsSupported(IWMReaderNetworkConfig2 *iface, DWORD *protocols)
998 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
999 FIXME("%p, %p\n", This, protocols);
1000 return E_NOTIMPL;
1003 static HRESULT WINAPI networkconfig_GetSupportedProtocolName(IWMReaderNetworkConfig2 *iface, DWORD protocol_num,
1004 WCHAR *protocol, DWORD *size)
1006 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
1007 FIXME("%p, %u, %p %p\n", This, protocol_num, protocol, size);
1008 return E_NOTIMPL;
1011 static HRESULT WINAPI networkconfig_AddLoggingUrl(IWMReaderNetworkConfig2 *iface, const WCHAR *url)
1013 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
1014 FIXME("%p, %s\n", This, debugstr_w(url));
1015 return E_NOTIMPL;
1018 static HRESULT WINAPI networkconfig_GetLoggingUrl(IWMReaderNetworkConfig2 *iface, DWORD index, WCHAR *url,
1019 DWORD *size)
1021 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
1022 FIXME("%p, %u, %p, %p\n", This, index, url, size);
1023 return E_NOTIMPL;
1026 static HRESULT WINAPI networkconfig_GetLoggingUrlCount(IWMReaderNetworkConfig2 *iface, DWORD *count)
1028 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
1029 FIXME("%p, %p\n", This, count);
1030 return E_NOTIMPL;
1033 static HRESULT WINAPI networkconfig_ResetLoggingUrlList(IWMReaderNetworkConfig2 *iface)
1035 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
1036 FIXME("%p\n", This);
1037 return E_NOTIMPL;
1040 static HRESULT WINAPI networkconfig_GetEnableContentCaching(IWMReaderNetworkConfig2 *iface, BOOL *enable)
1042 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
1043 FIXME("%p, %p\n", This, enable);
1044 return E_NOTIMPL;
1047 static HRESULT WINAPI networkconfig_SetEnableContentCaching(IWMReaderNetworkConfig2 *iface, BOOL enable)
1049 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
1050 FIXME("%p, %d\n", This, enable);
1051 return E_NOTIMPL;
1054 static HRESULT WINAPI networkconfig_GetEnableFastCache(IWMReaderNetworkConfig2 *iface, BOOL *enable)
1056 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
1057 FIXME("%p, %p\n", This, enable);
1058 return E_NOTIMPL;
1061 static HRESULT WINAPI networkconfig_SetEnableFastCache(IWMReaderNetworkConfig2 *iface, BOOL enable)
1063 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
1064 FIXME("%p, %d\n", This, enable);
1065 return E_NOTIMPL;
1068 static HRESULT WINAPI networkconfig_GetAcceleratedStreamingDuration(IWMReaderNetworkConfig2 *iface,
1069 QWORD *duration)
1071 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
1072 FIXME("%p, %p\n", This, duration);
1073 return E_NOTIMPL;
1076 static HRESULT WINAPI networkconfig_SetAcceleratedStreamingDuration(IWMReaderNetworkConfig2 *iface,
1077 QWORD duration)
1079 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
1080 FIXME("%p, %s\n", This, wine_dbgstr_longlong(duration));
1081 return E_NOTIMPL;
1084 static HRESULT WINAPI networkconfig_GetAutoReconnectLimit(IWMReaderNetworkConfig2 *iface, DWORD *limit)
1086 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
1087 FIXME("%p, %p\n", This, limit);
1088 return E_NOTIMPL;
1091 static HRESULT WINAPI networkconfig_SetAutoReconnectLimit(IWMReaderNetworkConfig2 *iface, DWORD limit)
1093 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
1094 FIXME("%p, %u\n", This, limit);
1095 return E_NOTIMPL;
1098 static HRESULT WINAPI networkconfig_GetEnableResends(IWMReaderNetworkConfig2 *iface, BOOL *enable)
1100 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
1101 FIXME("%p, %p\n", This, enable);
1102 return E_NOTIMPL;
1105 static HRESULT WINAPI networkconfig_SetEnableResends(IWMReaderNetworkConfig2 *iface, BOOL enable)
1107 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
1108 FIXME("%p, %u\n", This, enable);
1109 return E_NOTIMPL;
1112 static HRESULT WINAPI networkconfig_GetEnableThinning(IWMReaderNetworkConfig2 *iface, BOOL *enable)
1114 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
1115 FIXME("%p, %p\n", This, enable);
1116 return E_NOTIMPL;
1119 static HRESULT WINAPI networkconfig_SetEnableThinning(IWMReaderNetworkConfig2 *iface, BOOL enable)
1121 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
1122 FIXME("%p, %u\n", This, enable);
1123 return E_NOTIMPL;
1126 static HRESULT WINAPI networkconfig_GetMaxNetPacketSize(IWMReaderNetworkConfig2 *iface, DWORD *packet_size)
1128 WMReader *This = impl_from_IWMReaderNetworkConfig2(iface);
1129 FIXME("%p, %p\n", This, packet_size);
1130 return E_NOTIMPL;
1133 static const IWMReaderNetworkConfig2Vtbl WMReaderNetworkConfig2Vtbl =
1135 networkconfig_QueryInterface,
1136 networkconfig_AddRef,
1137 networkconfig_Release,
1138 networkconfig_GetBufferingTime,
1139 networkconfig_SetBufferingTime,
1140 networkconfig_GetUDPPortRanges,
1141 networkconfig_SetUDPPortRanges,
1142 networkconfig_GetProxySettings,
1143 networkconfig_SetProxySettings,
1144 networkconfig_GetProxyHostName,
1145 networkconfig_SetProxyHostName,
1146 networkconfig_GetProxyPort,
1147 networkconfig_SetProxyPort,
1148 networkconfig_GetProxyExceptionList,
1149 networkconfig_SetProxyExceptionList,
1150 networkconfig_GetProxyBypassForLocal,
1151 networkconfig_SetProxyBypassForLocal,
1152 networkconfig_GetForceRerunAutoProxyDetection,
1153 networkconfig_SetForceRerunAutoProxyDetection,
1154 networkconfig_GetEnableMulticast,
1155 networkconfig_SetEnableMulticast,
1156 networkconfig_GetEnableHTTP,
1157 networkconfig_SetEnableHTTP,
1158 networkconfig_GetEnableUDP,
1159 networkconfig_SetEnableUDP,
1160 networkconfig_GetEnableTCP,
1161 networkconfig_SetEnableTCP,
1162 networkconfig_ResetProtocolRollover,
1163 networkconfig_GetConnectionBandwidth,
1164 networkconfig_SetConnectionBandwidth,
1165 networkconfig_GetNumProtocolsSupported,
1166 networkconfig_GetSupportedProtocolName,
1167 networkconfig_AddLoggingUrl,
1168 networkconfig_GetLoggingUrl,
1169 networkconfig_GetLoggingUrlCount,
1170 networkconfig_ResetLoggingUrlList,
1171 networkconfig_GetEnableContentCaching,
1172 networkconfig_SetEnableContentCaching,
1173 networkconfig_GetEnableFastCache,
1174 networkconfig_SetEnableFastCache,
1175 networkconfig_GetAcceleratedStreamingDuration,
1176 networkconfig_SetAcceleratedStreamingDuration,
1177 networkconfig_GetAutoReconnectLimit,
1178 networkconfig_SetAutoReconnectLimit,
1179 networkconfig_GetEnableResends,
1180 networkconfig_SetEnableResends,
1181 networkconfig_GetEnableThinning,
1182 networkconfig_SetEnableThinning,
1183 networkconfig_GetMaxNetPacketSize
1186 static inline WMReader *impl_from_IWMReaderStreamClock(IWMReaderStreamClock *iface)
1188 return CONTAINING_RECORD(iface, WMReader, IWMReaderStreamClock_iface);
1191 static HRESULT WINAPI readclock_QueryInterface(IWMReaderStreamClock *iface, REFIID riid, void **ppv)
1193 WMReader *This = impl_from_IWMReaderStreamClock(iface);
1194 return IWMReader_QueryInterface(&This->IWMReader_iface, riid, ppv);
1197 static ULONG WINAPI readclock_AddRef(IWMReaderStreamClock *iface)
1199 WMReader *This = impl_from_IWMReaderStreamClock(iface);
1200 return IWMReader_AddRef(&This->IWMReader_iface);
1203 static ULONG WINAPI readclock_Release(IWMReaderStreamClock *iface)
1205 WMReader *This = impl_from_IWMReaderStreamClock(iface);
1206 return IWMReader_Release(&This->IWMReader_iface);
1209 static HRESULT WINAPI readclock_GetTime(IWMReaderStreamClock *iface, QWORD *now)
1211 WMReader *This = impl_from_IWMReaderStreamClock(iface);
1212 FIXME("%p, %p\n", This, now);
1213 return E_NOTIMPL;
1216 static HRESULT WINAPI readclock_SetTimer(IWMReaderStreamClock *iface, QWORD when, void *param, DWORD *id)
1218 WMReader *This = impl_from_IWMReaderStreamClock(iface);
1219 FIXME("%p, %s, %p, %p\n", This, wine_dbgstr_longlong(when), param, id);
1220 return E_NOTIMPL;
1223 static HRESULT WINAPI readclock_KillTimer(IWMReaderStreamClock *iface, DWORD id)
1225 WMReader *This = impl_from_IWMReaderStreamClock(iface);
1226 FIXME("%p, %d\n", This, id);
1227 return E_NOTIMPL;
1230 static const IWMReaderStreamClockVtbl WMReaderStreamClockVtbl =
1232 readclock_QueryInterface,
1233 readclock_AddRef,
1234 readclock_Release,
1235 readclock_GetTime,
1236 readclock_SetTimer,
1237 readclock_KillTimer
1240 static inline WMReader *impl_from_IWMReaderTypeNegotiation(IWMReaderTypeNegotiation *iface)
1242 return CONTAINING_RECORD(iface, WMReader, IWMReaderTypeNegotiation_iface);
1245 static HRESULT WINAPI negotiation_QueryInterface(IWMReaderTypeNegotiation *iface, REFIID riid, void **ppv)
1247 WMReader *This = impl_from_IWMReaderTypeNegotiation(iface);
1248 return IWMReader_QueryInterface(&This->IWMReader_iface, riid, ppv);
1251 static ULONG WINAPI negotiation_AddRef(IWMReaderTypeNegotiation *iface)
1253 WMReader *This = impl_from_IWMReaderTypeNegotiation(iface);
1254 return IWMReader_AddRef(&This->IWMReader_iface);
1257 static ULONG WINAPI negotiation_Release(IWMReaderTypeNegotiation *iface)
1259 WMReader *This = impl_from_IWMReaderTypeNegotiation(iface);
1260 return IWMReader_Release(&This->IWMReader_iface);
1263 static HRESULT WINAPI negotiation_TryOutputProps(IWMReaderTypeNegotiation *iface, DWORD output, IWMOutputMediaProps *props)
1265 WMReader *This = impl_from_IWMReaderTypeNegotiation(iface);
1266 FIXME("%p, %d, %p\n", This, output, props);
1267 return E_NOTIMPL;
1270 static const IWMReaderTypeNegotiationVtbl WMReaderTypeNegotiationVtbl =
1272 negotiation_QueryInterface,
1273 negotiation_AddRef,
1274 negotiation_Release,
1275 negotiation_TryOutputProps
1278 static inline WMReader *impl_from_IWMReaderTimecode(IWMReaderTimecode *iface)
1280 return CONTAINING_RECORD(iface, WMReader, IWMReaderTimecode_iface);
1283 static HRESULT WINAPI timecode_QueryInterface(IWMReaderTimecode *iface, REFIID riid, void **ppv)
1285 WMReader *This = impl_from_IWMReaderTimecode(iface);
1286 return IWMReader_QueryInterface(&This->IWMReader_iface, riid, ppv);
1289 static ULONG WINAPI timecode_AddRef(IWMReaderTimecode *iface)
1291 WMReader *This = impl_from_IWMReaderTimecode(iface);
1292 return IWMReader_AddRef(&This->IWMReader_iface);
1295 static ULONG WINAPI timecode_Release(IWMReaderTimecode *iface)
1297 WMReader *This = impl_from_IWMReaderTimecode(iface);
1298 return IWMReader_Release(&This->IWMReader_iface);
1301 static HRESULT WINAPI timecode_GetTimecodeRangeCount(IWMReaderTimecode *iface, WORD num, WORD *count)
1303 WMReader *This = impl_from_IWMReaderTimecode(iface);
1304 FIXME("%p, %d, %p\n", This, num, count);
1305 return E_NOTIMPL;
1308 static HRESULT WINAPI timecode_GetTimecodeRangeBounds(IWMReaderTimecode *iface, WORD stream, WORD range,
1309 DWORD *start_timecode, DWORD *end_timecode)
1311 WMReader *This = impl_from_IWMReaderTimecode(iface);
1312 FIXME("%p, %d, %d, %p, %p\n", This, stream, range, start_timecode, end_timecode);
1313 return E_NOTIMPL;
1316 static const IWMReaderTimecodeVtbl WMReaderTimecodeVtbl =
1318 timecode_QueryInterface,
1319 timecode_AddRef,
1320 timecode_Release,
1321 timecode_GetTimecodeRangeCount,
1322 timecode_GetTimecodeRangeBounds
1326 static inline WMReader *impl_from_IWMReaderPlaylistBurn(IWMReaderPlaylistBurn *iface)
1328 return CONTAINING_RECORD(iface, WMReader, IWMReaderPlaylistBurn_iface);
1331 static HRESULT WINAPI playlist_QueryInterface(IWMReaderPlaylistBurn *iface, REFIID riid, void **ppv)
1333 WMReader *This = impl_from_IWMReaderPlaylistBurn(iface);
1334 return IWMReader_QueryInterface(&This->IWMReader_iface, riid, ppv);
1337 static ULONG WINAPI playlist_AddRef(IWMReaderPlaylistBurn *iface)
1339 WMReader *This = impl_from_IWMReaderPlaylistBurn(iface);
1340 return IWMReader_AddRef(&This->IWMReader_iface);
1343 static ULONG WINAPI playlist_Release(IWMReaderPlaylistBurn *iface)
1345 WMReader *This = impl_from_IWMReaderPlaylistBurn(iface);
1346 return IWMReader_Release(&This->IWMReader_iface);
1349 static HRESULT WINAPI playlist_InitPlaylistBurn(IWMReaderPlaylistBurn *iface, DWORD count,
1350 LPCWSTR_WMSDK_TYPE_SAFE *filenames, IWMStatusCallback *callback, void *context)
1352 WMReader *This = impl_from_IWMReaderPlaylistBurn(iface);
1353 FIXME("%p, %d, %p, %p, %p\n", This, count, filenames, callback, context);
1354 return E_NOTIMPL;
1357 static HRESULT WINAPI playlist_GetInitResults(IWMReaderPlaylistBurn *iface, DWORD count, HRESULT *stat)
1359 WMReader *This = impl_from_IWMReaderPlaylistBurn(iface);
1360 FIXME("%p, %d, %p\n", This, count, stat);
1361 return E_NOTIMPL;
1364 static HRESULT WINAPI playlist_Cancel(IWMReaderPlaylistBurn *iface)
1366 WMReader *This = impl_from_IWMReaderPlaylistBurn(iface);
1367 FIXME("%p\n", This);
1368 return E_NOTIMPL;
1371 static HRESULT WINAPI playlist_EndPlaylistBurn(IWMReaderPlaylistBurn *iface, HRESULT result)
1373 WMReader *This = impl_from_IWMReaderPlaylistBurn(iface);
1374 FIXME("%p, 0x%08x\n", This, result);
1375 return E_NOTIMPL;
1378 static const IWMReaderPlaylistBurnVtbl WMReaderPlaylistBurnVtbl =
1380 playlist_QueryInterface,
1381 playlist_AddRef,
1382 playlist_Release,
1383 playlist_InitPlaylistBurn,
1384 playlist_GetInitResults,
1385 playlist_Cancel,
1386 playlist_EndPlaylistBurn
1389 static inline WMReader *impl_from_IWMHeaderInfo3(IWMHeaderInfo3 *iface)
1391 return CONTAINING_RECORD(iface, WMReader, IWMHeaderInfo3_iface);
1394 static HRESULT WINAPI headerinfo_QueryInterface(IWMHeaderInfo3 *iface, REFIID riid, void **ppv)
1396 WMReader *This = impl_from_IWMHeaderInfo3(iface);
1397 return IWMReader_QueryInterface(&This->IWMReader_iface, riid, ppv);
1400 static ULONG WINAPI headerinfo_AddRef(IWMHeaderInfo3 *iface)
1402 WMReader *This = impl_from_IWMHeaderInfo3(iface);
1403 return IWMReader_AddRef(&This->IWMReader_iface);
1406 static ULONG WINAPI headerinfo_Release(IWMHeaderInfo3 *iface)
1408 WMReader *This = impl_from_IWMHeaderInfo3(iface);
1409 return IWMReader_Release(&This->IWMReader_iface);
1412 static HRESULT WINAPI headerinfo_GetAttributeCount(IWMHeaderInfo3 *iface, WORD stream_num, WORD *attributes)
1414 WMReader *This = impl_from_IWMHeaderInfo3(iface);
1415 FIXME("%p, %d, %p\n", This, stream_num, attributes);
1416 return E_NOTIMPL;
1419 static HRESULT WINAPI headerinfo_GetAttributeByIndex(IWMHeaderInfo3 *iface, WORD index, WORD *stream_num,
1420 WCHAR *name, WORD *name_len, WMT_ATTR_DATATYPE *type, BYTE *value, WORD *length)
1422 WMReader *This = impl_from_IWMHeaderInfo3(iface);
1423 FIXME("%p, %d, %p, %p, %p, %p, %p, %p\n", This, index, stream_num, name, name_len, type,
1424 value, length);
1425 return E_NOTIMPL;
1428 static HRESULT WINAPI headerinfo_GetAttributeByName(IWMHeaderInfo3 *iface, WORD *stream_num, LPCWSTR name,
1429 WMT_ATTR_DATATYPE *type, BYTE *value, WORD *length)
1431 WMReader *This = impl_from_IWMHeaderInfo3(iface);
1432 FIXME("%p, %p, %s, %p, %p, %p\n", This, stream_num, debugstr_w(name), type, value, length);
1433 return E_NOTIMPL;
1436 static HRESULT WINAPI headerinfo_SetAttribute(IWMHeaderInfo3 *iface, WORD stream_num, LPCWSTR name,
1437 WMT_ATTR_DATATYPE type, const BYTE *value, WORD length)
1439 WMReader *This = impl_from_IWMHeaderInfo3(iface);
1440 FIXME("%p, %d, %s, %d, %p, %d\n", This, stream_num, debugstr_w(name), type, value, length);
1441 return E_NOTIMPL;
1444 static HRESULT WINAPI headerinfo_GetMarkerCount(IWMHeaderInfo3 *iface, WORD *markers)
1446 WMReader *This = impl_from_IWMHeaderInfo3(iface);
1447 FIXME("%p, %p\n", This, markers);
1448 return E_NOTIMPL;
1451 static HRESULT WINAPI headerinfo_GetMarker(IWMHeaderInfo3 *iface, WORD index, WCHAR *marker_name,
1452 WORD *marker_len, QWORD *marker_time)
1454 WMReader *This = impl_from_IWMHeaderInfo3(iface);
1455 FIXME("%p, %d, %p, %p, %p\n", This, index, marker_name, marker_len, marker_time);
1456 return E_NOTIMPL;
1459 static HRESULT WINAPI headerinfo_AddMarker(IWMHeaderInfo3 *iface, LPCWSTR_WMSDK_TYPE_SAFE marker_name,
1460 QWORD marker_time)
1462 WMReader *This = impl_from_IWMHeaderInfo3(iface);
1463 FIXME("%p, %p, %s\n", This, marker_name, wine_dbgstr_longlong(marker_time));
1464 return E_NOTIMPL;
1467 static HRESULT WINAPI headerinfo_RemoveMarker(IWMHeaderInfo3 *iface, WORD index)
1469 WMReader *This = impl_from_IWMHeaderInfo3(iface);
1470 FIXME("%p, %d\n", This, index);
1471 return E_NOTIMPL;
1474 static HRESULT WINAPI headerinfo_GetScriptCount(IWMHeaderInfo3 *iface, WORD *scripts)
1476 WMReader *This = impl_from_IWMHeaderInfo3(iface);
1477 FIXME("%p, %p\n", This, scripts);
1478 return E_NOTIMPL;
1481 static HRESULT WINAPI headerinfo_GetScript(IWMHeaderInfo3 *iface, WORD index, WCHAR *type,
1482 WORD *type_len, WCHAR *command, WORD *command_len, QWORD *script_time)
1484 WMReader *This = impl_from_IWMHeaderInfo3(iface);
1485 FIXME("%p, %d, %p, %p, %p, %p, %p\n", This, index, type, type_len, command, command_len, script_time);
1486 return E_NOTIMPL;
1489 static HRESULT WINAPI headerinfo_AddScript(IWMHeaderInfo3 *iface, LPCWSTR_WMSDK_TYPE_SAFE type,
1490 LPCWSTR_WMSDK_TYPE_SAFE command, QWORD script_time)
1492 WMReader *This = impl_from_IWMHeaderInfo3(iface);
1493 FIXME("%p, %s, %s, %s\n", This, debugstr_w(type), debugstr_w(command), wine_dbgstr_longlong(script_time));
1494 return E_NOTIMPL;
1497 static HRESULT WINAPI headerinfo_RemoveScript(IWMHeaderInfo3 *iface, WORD index)
1499 WMReader *This = impl_from_IWMHeaderInfo3(iface);
1500 FIXME("%p, %d\n", This, index);
1501 return E_NOTIMPL;
1504 static HRESULT WINAPI headerinfo_GetCodecInfoCount(IWMHeaderInfo3 *iface, DWORD *codec_infos)
1506 WMReader *This = impl_from_IWMHeaderInfo3(iface);
1507 FIXME("%p, %p\n", This, codec_infos);
1508 return E_NOTIMPL;
1511 static HRESULT WINAPI headerinfo_GetCodecInfo(IWMHeaderInfo3 *iface, DWORD index, WORD *name_len,
1512 WCHAR *name, WORD *description_len, WCHAR *description, WMT_CODEC_INFO_TYPE *codec_type,
1513 WORD *codec_info_cnt, BYTE *codec_info)
1515 WMReader *This = impl_from_IWMHeaderInfo3(iface);
1516 FIXME("%p, %d, %p, %p, %p, %p, %p, %p, %p\n", This, index, name_len, name, description_len,
1517 description, codec_type, codec_info_cnt, codec_info);
1518 return E_NOTIMPL;
1521 static HRESULT WINAPI headerinfo_GetAttributeCountEx(IWMHeaderInfo3 *iface, WORD stream_num, WORD *attributes)
1523 WMReader *This = impl_from_IWMHeaderInfo3(iface);
1524 FIXME("%p, %d, %p\n", This, stream_num, attributes);
1525 return E_NOTIMPL;
1528 static HRESULT WINAPI headerinfo_GetAttributeIndices(IWMHeaderInfo3 *iface, WORD stream_num, LPCWSTR name,
1529 WORD *lang_index, WORD *indices, WORD *count)
1531 WMReader *This = impl_from_IWMHeaderInfo3(iface);
1532 FIXME("%p, %d, %s, %p, %p, %p\n", This, stream_num, debugstr_w(name), lang_index, indices, count);
1533 return E_NOTIMPL;
1536 static HRESULT WINAPI headerinfo_GetAttributeByIndexEx(IWMHeaderInfo3 *iface, WORD stream_num,
1537 WORD index, LPWSTR name, WORD *name_len, WMT_ATTR_DATATYPE *type, WORD *lang_index,
1538 BYTE *value, DWORD *data_len)
1540 WMReader *This = impl_from_IWMHeaderInfo3(iface);
1541 FIXME("%p, %d, %d, %s, %p, %p, %p, %p, %p\n", This, stream_num, index, debugstr_w(name), name_len,
1542 type, lang_index, value, data_len);
1543 return E_NOTIMPL;
1546 static HRESULT WINAPI headerinfo_ModifyAttribute(IWMHeaderInfo3 *iface, WORD stream_num,
1547 WORD index, WMT_ATTR_DATATYPE type, WORD lang_index, const BYTE *value, DWORD length)
1549 WMReader *This = impl_from_IWMHeaderInfo3(iface);
1550 FIXME("%p, %d, %d, %d, %d, %p, %d\n", This, stream_num, index, type, lang_index, value, length);
1551 return E_NOTIMPL;
1554 static HRESULT WINAPI headerinfo_AddAttribute(IWMHeaderInfo3 *iface, WORD stream_num, LPCWSTR name,
1555 WORD *index, WMT_ATTR_DATATYPE type, WORD lang_index, const BYTE *value, DWORD length)
1557 WMReader *This = impl_from_IWMHeaderInfo3(iface);
1558 FIXME("%p, %d, %s, %p, %d, %d, %p, %d\n", This, stream_num, debugstr_w(name), index,
1559 type, lang_index, value, length);
1560 return E_NOTIMPL;
1563 static HRESULT WINAPI headerinfo_DeleteAttribute(IWMHeaderInfo3 *iface, WORD stream_num, WORD index)
1565 WMReader *This = impl_from_IWMHeaderInfo3(iface);
1566 FIXME("%p, %d, %d\n", This, stream_num, index);
1567 return E_NOTIMPL;
1570 static HRESULT WINAPI headerinfo_AddCodecInfo(IWMHeaderInfo3 *iface, LPCWSTR_WMSDK_TYPE_SAFE name,
1571 LPCWSTR_WMSDK_TYPE_SAFE description, WMT_CODEC_INFO_TYPE codec_type, WORD codec_info_cnt,
1572 BYTE *codec_info)
1574 WMReader *This = impl_from_IWMHeaderInfo3(iface);
1575 FIXME("%p, %p, %p, %d, %d, %p\n", This, name, description, codec_type, codec_info_cnt,
1576 codec_info);
1577 return E_NOTIMPL;
1580 static const IWMHeaderInfo3Vtbl WMHeaderInfo3Vtbl =
1582 headerinfo_QueryInterface,
1583 headerinfo_AddRef,
1584 headerinfo_Release,
1585 headerinfo_GetAttributeCount,
1586 headerinfo_GetAttributeByIndex,
1587 headerinfo_GetAttributeByName,
1588 headerinfo_SetAttribute,
1589 headerinfo_GetMarkerCount,
1590 headerinfo_GetMarker,
1591 headerinfo_AddMarker,
1592 headerinfo_RemoveMarker,
1593 headerinfo_GetScriptCount,
1594 headerinfo_GetScript,
1595 headerinfo_AddScript,
1596 headerinfo_RemoveScript,
1597 headerinfo_GetCodecInfoCount,
1598 headerinfo_GetCodecInfo,
1599 headerinfo_GetAttributeCountEx,
1600 headerinfo_GetAttributeIndices,
1601 headerinfo_GetAttributeByIndexEx,
1602 headerinfo_ModifyAttribute,
1603 headerinfo_AddAttribute,
1604 headerinfo_DeleteAttribute,
1605 headerinfo_AddCodecInfo
1609 static inline WMReader *impl_from_IWMLanguageList(IWMLanguageList *iface)
1611 return CONTAINING_RECORD(iface, WMReader, IWMLanguageList_iface);
1614 static HRESULT WINAPI langlist_QueryInterface(IWMLanguageList *iface, REFIID riid, void **ppv)
1616 WMReader *This = impl_from_IWMLanguageList(iface);
1617 return IWMReader_QueryInterface(&This->IWMReader_iface, riid, ppv);
1620 static ULONG WINAPI langlist_AddRef(IWMLanguageList *iface)
1622 WMReader *This = impl_from_IWMLanguageList(iface);
1623 return IWMReader_AddRef(&This->IWMReader_iface);
1626 static ULONG WINAPI langlist_Release(IWMLanguageList *iface)
1628 WMReader *This = impl_from_IWMLanguageList(iface);
1629 return IWMReader_Release(&This->IWMReader_iface);
1632 static HRESULT WINAPI langlist_GetLanguageCount(IWMLanguageList *iface, WORD *count)
1634 WMReader *This = impl_from_IWMLanguageList(iface);
1635 FIXME("%p, %p\n", This, count);
1636 return E_NOTIMPL;
1639 static HRESULT WINAPI langlist_GetLanguageDetails(IWMLanguageList *iface, WORD index,
1640 WCHAR *language, WORD *length)
1642 WMReader *This = impl_from_IWMLanguageList(iface);
1643 FIXME("%p, %d, %p, %p\n", This, index, language, length);
1644 return E_NOTIMPL;
1647 static HRESULT WINAPI langlist_AddLanguageByRFC1766String(IWMLanguageList *iface, LPCWSTR_WMSDK_TYPE_SAFE language,
1648 WORD *index)
1650 WMReader *This = impl_from_IWMLanguageList(iface);
1651 FIXME("%p, %p, %p\n", This, language, index);
1652 return E_NOTIMPL;
1655 static const IWMLanguageListVtbl WMLanguageListVtbl =
1657 langlist_QueryInterface,
1658 langlist_AddRef,
1659 langlist_Release,
1660 langlist_GetLanguageCount,
1661 langlist_GetLanguageDetails,
1662 langlist_AddLanguageByRFC1766String
1665 static inline WMReader *impl_from_IReferenceClock(IReferenceClock *iface)
1667 return CONTAINING_RECORD(iface, WMReader, IReferenceClock_iface);
1670 static HRESULT WINAPI refclock_QueryInterface(IReferenceClock *iface, REFIID riid, void **ppv)
1672 WMReader *This = impl_from_IReferenceClock(iface);
1673 return IWMReader_QueryInterface(&This->IWMReader_iface, riid, ppv);
1676 static ULONG WINAPI refclock_AddRef(IReferenceClock *iface)
1678 WMReader *This = impl_from_IReferenceClock(iface);
1679 return IWMReader_AddRef(&This->IWMReader_iface);
1682 static ULONG WINAPI refclock_Release(IReferenceClock *iface)
1684 WMReader *This = impl_from_IReferenceClock(iface);
1685 return IWMReader_Release(&This->IWMReader_iface);
1688 static HRESULT WINAPI refclock_GetTime(IReferenceClock *iface, REFERENCE_TIME *time)
1690 WMReader *This = impl_from_IReferenceClock(iface);
1691 FIXME("%p, %p\n", This, time);
1692 return E_NOTIMPL;
1695 static HRESULT WINAPI refclock_AdviseTime(IReferenceClock *iface, REFERENCE_TIME basetime,
1696 REFERENCE_TIME streamtime, HEVENT event, DWORD_PTR *cookie)
1698 WMReader *This = impl_from_IReferenceClock(iface);
1699 FIXME("%p, %s, %s, %lu, %p\n", This, wine_dbgstr_longlong(basetime),
1700 wine_dbgstr_longlong(streamtime), event, cookie);
1701 return E_NOTIMPL;
1704 static HRESULT WINAPI refclock_AdvisePeriodic(IReferenceClock *iface, REFERENCE_TIME starttime,
1705 REFERENCE_TIME period, HSEMAPHORE semaphore, DWORD_PTR *cookie)
1707 WMReader *This = impl_from_IReferenceClock(iface);
1708 FIXME("%p, %s, %s, %lu, %p\n", This, wine_dbgstr_longlong(starttime),
1709 wine_dbgstr_longlong(period), semaphore, cookie);
1710 return E_NOTIMPL;
1713 static HRESULT WINAPI refclock_Unadvise(IReferenceClock *iface, DWORD_PTR cookie)
1715 WMReader *This = impl_from_IReferenceClock(iface);
1716 FIXME("%p, %lu\n", This, cookie);
1717 return E_NOTIMPL;
1720 static const IReferenceClockVtbl ReferenceClockVtbl =
1722 refclock_QueryInterface,
1723 refclock_AddRef,
1724 refclock_Release,
1725 refclock_GetTime,
1726 refclock_AdviseTime,
1727 refclock_AdvisePeriodic,
1728 refclock_Unadvise
1731 static inline WMReader *impl_from_IWMProfile3(IWMProfile3 *iface)
1733 return CONTAINING_RECORD(iface, WMReader, IWMProfile3_iface);
1736 static HRESULT WINAPI profile3_QueryInterface(IWMProfile3 *iface, REFIID riid, void **ppv)
1738 WMReader *This = impl_from_IWMProfile3(iface);
1739 return IWMReader_QueryInterface(&This->IWMReader_iface, riid, ppv);
1742 static ULONG WINAPI profile3_AddRef(IWMProfile3 *iface)
1744 WMReader *This = impl_from_IWMProfile3(iface);
1745 return IWMReader_AddRef(&This->IWMReader_iface);
1748 static ULONG WINAPI profile3_Release(IWMProfile3 *iface)
1750 WMReader *This = impl_from_IWMProfile3(iface);
1751 return IWMReader_Release(&This->IWMReader_iface);
1754 static HRESULT WINAPI profile3_GetVersion(IWMProfile3 *iface, WMT_VERSION *version)
1756 WMReader *This = impl_from_IWMProfile3(iface);
1757 FIXME("%p, %p\n", This, version);
1758 return E_NOTIMPL;
1761 static HRESULT WINAPI profile3_GetName(IWMProfile3 *iface, WCHAR *name, DWORD *length)
1763 WMReader *This = impl_from_IWMProfile3(iface);
1764 FIXME("%p, %p, %p\n", This, name, length);
1765 return E_NOTIMPL;
1768 static HRESULT WINAPI profile3_SetName(IWMProfile3 *iface, const WCHAR *name)
1770 WMReader *This = impl_from_IWMProfile3(iface);
1771 FIXME("%p, %s\n", This, debugstr_w(name));
1772 return E_NOTIMPL;
1775 static HRESULT WINAPI profile3_GetDescription(IWMProfile3 *iface, WCHAR *description, DWORD *length)
1777 WMReader *This = impl_from_IWMProfile3(iface);
1778 FIXME("%p, %p, %p\n", This, description, length);
1779 return E_NOTIMPL;
1782 static HRESULT WINAPI profile3_SetDescription(IWMProfile3 *iface, const WCHAR *description)
1784 WMReader *This = impl_from_IWMProfile3(iface);
1785 FIXME("%p, %s\n", This, debugstr_w(description));
1786 return E_NOTIMPL;
1789 static HRESULT WINAPI profile3_GetStreamCount(IWMProfile3 *iface, DWORD *count)
1791 WMReader *This = impl_from_IWMProfile3(iface);
1792 FIXME("%p, %p\n", This, count);
1793 return E_NOTIMPL;
1796 static HRESULT WINAPI profile3_GetStream(IWMProfile3 *iface, DWORD index, IWMStreamConfig **config)
1798 WMReader *This = impl_from_IWMProfile3(iface);
1799 FIXME("%p, %d, %p\n", This, index, config);
1800 return E_NOTIMPL;
1803 static HRESULT WINAPI profile3_GetStreamByNumber(IWMProfile3 *iface, WORD stream, IWMStreamConfig **config)
1805 WMReader *This = impl_from_IWMProfile3(iface);
1806 FIXME("%p, %d, %p\n", This, stream, config);
1807 return E_NOTIMPL;
1810 static HRESULT WINAPI profile3_RemoveStream(IWMProfile3 *iface, IWMStreamConfig *config)
1812 WMReader *This = impl_from_IWMProfile3(iface);
1813 FIXME("%p, %p\n", This, config);
1814 return E_NOTIMPL;
1817 static HRESULT WINAPI profile3_RemoveStreamByNumber(IWMProfile3 *iface, WORD stream)
1819 WMReader *This = impl_from_IWMProfile3(iface);
1820 FIXME("%p, %d\n", This, stream);
1821 return E_NOTIMPL;
1824 static HRESULT WINAPI profile3_AddStream(IWMProfile3 *iface, IWMStreamConfig *config)
1826 WMReader *This = impl_from_IWMProfile3(iface);
1827 FIXME("%p, %p\n", This, config);
1828 return E_NOTIMPL;
1831 static HRESULT WINAPI profile3_ReconfigStream(IWMProfile3 *iface, IWMStreamConfig *config)
1833 WMReader *This = impl_from_IWMProfile3(iface);
1834 FIXME("%p, %p\n", This, config);
1835 return E_NOTIMPL;
1838 static HRESULT WINAPI profile3_CreateNewStream(IWMProfile3 *iface, REFGUID type, IWMStreamConfig **config)
1840 WMReader *This = impl_from_IWMProfile3(iface);
1841 FIXME("%p, %s, %p\n", This, debugstr_guid(type), config);
1842 return E_NOTIMPL;
1845 static HRESULT WINAPI profile3_GetMutualExclusionCount(IWMProfile3 *iface, DWORD *count)
1847 WMReader *This = impl_from_IWMProfile3(iface);
1848 FIXME("%p, %p\n", This, count);
1849 return E_NOTIMPL;
1852 static HRESULT WINAPI profile3_GetMutualExclusion(IWMProfile3 *iface, DWORD index, IWMMutualExclusion **mutual)
1854 WMReader *This = impl_from_IWMProfile3(iface);
1855 FIXME("%p, %d, %p\n", This, index, mutual);
1856 return E_NOTIMPL;
1859 static HRESULT WINAPI profile3_RemoveMutualExclusion(IWMProfile3 *iface, IWMMutualExclusion *mutual)
1861 WMReader *This = impl_from_IWMProfile3(iface);
1862 FIXME("%p, %p\n", This, mutual);
1863 return E_NOTIMPL;
1866 static HRESULT WINAPI profile3_AddMutualExclusion(IWMProfile3 *iface, IWMMutualExclusion *mutual)
1868 WMReader *This = impl_from_IWMProfile3(iface);
1869 FIXME("%p, %p\n", This, mutual);
1870 return E_NOTIMPL;
1873 static HRESULT WINAPI profile3_CreateNewMutualExclusion(IWMProfile3 *iface, IWMMutualExclusion **mutual)
1875 WMReader *This = impl_from_IWMProfile3(iface);
1876 FIXME("%p, %p\n", This, mutual);
1877 return E_NOTIMPL;
1880 static HRESULT WINAPI profile3_GetProfileID(IWMProfile3 *iface, GUID *guid)
1882 WMReader *This = impl_from_IWMProfile3(iface);
1883 FIXME("%p, %p\n", This, guid);
1884 return E_NOTIMPL;
1887 static HRESULT WINAPI profile3_GetStorageFormat(IWMProfile3 *iface, WMT_STORAGE_FORMAT *storage)
1889 WMReader *This = impl_from_IWMProfile3(iface);
1890 FIXME("%p, %p\n", This, storage);
1891 return E_NOTIMPL;
1894 static HRESULT WINAPI profile3_SetStorageFormat(IWMProfile3 *iface, WMT_STORAGE_FORMAT storage)
1896 WMReader *This = impl_from_IWMProfile3(iface);
1897 FIXME("%p, %d\n", This, storage);
1898 return E_NOTIMPL;
1901 static HRESULT WINAPI profile3_GetBandwidthSharingCount(IWMProfile3 *iface, DWORD *count)
1903 WMReader *This = impl_from_IWMProfile3(iface);
1904 FIXME("%p, %p\n", This, count);
1905 return E_NOTIMPL;
1908 static HRESULT WINAPI profile3_GetBandwidthSharing(IWMProfile3 *iface, DWORD index, IWMBandwidthSharing **bandwidth)
1910 WMReader *This = impl_from_IWMProfile3(iface);
1911 FIXME("%p, %d, %p\n", This, index, bandwidth);
1912 return E_NOTIMPL;
1915 static HRESULT WINAPI profile3_RemoveBandwidthSharing( IWMProfile3 *iface, IWMBandwidthSharing *bandwidth)
1917 WMReader *This = impl_from_IWMProfile3(iface);
1918 FIXME("%p, %p\n", This, bandwidth);
1919 return E_NOTIMPL;
1922 static HRESULT WINAPI profile3_AddBandwidthSharing(IWMProfile3 *iface, IWMBandwidthSharing *bandwidth)
1924 WMReader *This = impl_from_IWMProfile3(iface);
1925 FIXME("%p, %p\n", This, bandwidth);
1926 return E_NOTIMPL;
1929 static HRESULT WINAPI profile3_CreateNewBandwidthSharing( IWMProfile3 *iface, IWMBandwidthSharing **bandwidth)
1931 WMReader *This = impl_from_IWMProfile3(iface);
1932 FIXME("%p, %p\n", This, bandwidth);
1933 return E_NOTIMPL;
1936 static HRESULT WINAPI profile3_GetStreamPrioritization(IWMProfile3 *iface, IWMStreamPrioritization **stream)
1938 WMReader *This = impl_from_IWMProfile3(iface);
1939 FIXME("%p, %p\n", This, stream);
1940 return E_NOTIMPL;
1943 static HRESULT WINAPI profile3_SetStreamPrioritization(IWMProfile3 *iface, IWMStreamPrioritization *stream)
1945 WMReader *This = impl_from_IWMProfile3(iface);
1946 FIXME("%p, %p\n", This, stream);
1947 return E_NOTIMPL;
1950 static HRESULT WINAPI profile3_RemoveStreamPrioritization(IWMProfile3 *iface)
1952 WMReader *This = impl_from_IWMProfile3(iface);
1953 FIXME("%p\n", This);
1954 return E_NOTIMPL;
1957 static HRESULT WINAPI profile3_CreateNewStreamPrioritization(IWMProfile3 *iface, IWMStreamPrioritization **stream)
1959 WMReader *This = impl_from_IWMProfile3(iface);
1960 FIXME("%p, %p\n", This, stream);
1961 return E_NOTIMPL;
1964 static HRESULT WINAPI profile3_GetExpectedPacketCount(IWMProfile3 *iface, QWORD duration, QWORD *packets)
1966 WMReader *This = impl_from_IWMProfile3(iface);
1967 FIXME("%p, %s, %p\n", This, wine_dbgstr_longlong(duration), packets);
1968 return E_NOTIMPL;
1971 static const IWMProfile3Vtbl WMProfile3Vtbl =
1973 profile3_QueryInterface,
1974 profile3_AddRef,
1975 profile3_Release,
1976 profile3_GetVersion,
1977 profile3_GetName,
1978 profile3_SetName,
1979 profile3_GetDescription,
1980 profile3_SetDescription,
1981 profile3_GetStreamCount,
1982 profile3_GetStream,
1983 profile3_GetStreamByNumber,
1984 profile3_RemoveStream,
1985 profile3_RemoveStreamByNumber,
1986 profile3_AddStream,
1987 profile3_ReconfigStream,
1988 profile3_CreateNewStream,
1989 profile3_GetMutualExclusionCount,
1990 profile3_GetMutualExclusion,
1991 profile3_RemoveMutualExclusion,
1992 profile3_AddMutualExclusion,
1993 profile3_CreateNewMutualExclusion,
1994 profile3_GetProfileID,
1995 profile3_GetStorageFormat,
1996 profile3_SetStorageFormat,
1997 profile3_GetBandwidthSharingCount,
1998 profile3_GetBandwidthSharing,
1999 profile3_RemoveBandwidthSharing,
2000 profile3_AddBandwidthSharing,
2001 profile3_CreateNewBandwidthSharing,
2002 profile3_GetStreamPrioritization,
2003 profile3_SetStreamPrioritization,
2004 profile3_RemoveStreamPrioritization,
2005 profile3_CreateNewStreamPrioritization,
2006 profile3_GetExpectedPacketCount
2009 static inline WMReader *impl_from_IWMPacketSize2(IWMPacketSize2 *iface)
2011 return CONTAINING_RECORD(iface, WMReader, IWMPacketSize2_iface);
2014 static HRESULT WINAPI packetsize_QueryInterface(IWMPacketSize2 *iface, REFIID riid, void **ppv)
2016 WMReader *This = impl_from_IWMPacketSize2(iface);
2017 return IWMReader_QueryInterface(&This->IWMReader_iface, riid, ppv);
2020 static ULONG WINAPI packetsize_AddRef(IWMPacketSize2 *iface)
2022 WMReader *This = impl_from_IWMPacketSize2(iface);
2023 return IWMReader_AddRef(&This->IWMReader_iface);
2026 static ULONG WINAPI packetsize_Release(IWMPacketSize2 *iface)
2028 WMReader *This = impl_from_IWMPacketSize2(iface);
2029 return IWMReader_Release(&This->IWMReader_iface);
2032 static HRESULT WINAPI packetsize_GetMaxPacketSize(IWMPacketSize2 *iface, DWORD *size)
2034 WMReader *This = impl_from_IWMPacketSize2(iface);
2035 FIXME("%p, %p\n", This, size);
2036 return E_NOTIMPL;
2039 static HRESULT WINAPI packetsize_SetMaxPacketSize(IWMPacketSize2 *iface, DWORD size)
2041 WMReader *This = impl_from_IWMPacketSize2(iface);
2042 FIXME("%p, %d\n", This, size);
2043 return E_NOTIMPL;
2046 static HRESULT WINAPI packetsize_GetMinPacketSize(IWMPacketSize2 *iface, DWORD *size)
2048 WMReader *This = impl_from_IWMPacketSize2(iface);
2049 FIXME("%p, %p\n", This, size);
2050 return E_NOTIMPL;
2053 static HRESULT WINAPI packetsize_SetMinPacketSize(IWMPacketSize2 *iface, DWORD size)
2055 WMReader *This = impl_from_IWMPacketSize2(iface);
2056 FIXME("%p, %d\n", This, size);
2057 return E_NOTIMPL;
2060 static const IWMPacketSize2Vtbl WMPacketSize2Vtbl =
2062 packetsize_QueryInterface,
2063 packetsize_AddRef,
2064 packetsize_Release,
2065 packetsize_GetMaxPacketSize,
2066 packetsize_SetMaxPacketSize,
2067 packetsize_GetMinPacketSize,
2068 packetsize_SetMinPacketSize
2071 HRESULT WINAPI WMCreateReader(IUnknown *reserved, DWORD rights, IWMReader **ret_reader)
2073 WMReader *reader;
2075 TRACE("(%p, %x, %p)\n", reserved, rights, ret_reader);
2077 reader = heap_alloc(sizeof(*reader));
2078 if(!reader)
2079 return E_OUTOFMEMORY;
2081 reader->IWMReader_iface.lpVtbl = &WMReaderVtbl;
2082 reader->IWMReaderAdvanced6_iface.lpVtbl = &WMReaderAdvanced6Vtbl;
2083 reader->IWMReaderAccelerator_iface.lpVtbl = &WMReaderAcceleratorVtbl;
2084 reader->IWMReaderNetworkConfig2_iface.lpVtbl = &WMReaderNetworkConfig2Vtbl;
2085 reader->IWMReaderStreamClock_iface.lpVtbl = &WMReaderStreamClockVtbl;
2086 reader->IWMReaderTypeNegotiation_iface.lpVtbl = &WMReaderTypeNegotiationVtbl;
2087 reader->IWMReaderTimecode_iface.lpVtbl = &WMReaderTimecodeVtbl;
2088 reader->IWMReaderPlaylistBurn_iface.lpVtbl = &WMReaderPlaylistBurnVtbl;
2089 reader->IWMHeaderInfo3_iface.lpVtbl = &WMHeaderInfo3Vtbl;
2090 reader->IWMLanguageList_iface.lpVtbl = &WMLanguageListVtbl;
2091 reader->IReferenceClock_iface.lpVtbl = &ReferenceClockVtbl;
2092 reader->IWMProfile3_iface.lpVtbl = &WMProfile3Vtbl;
2093 reader->IWMPacketSize2_iface.lpVtbl = &WMPacketSize2Vtbl;
2094 reader->ref = 1;
2096 *ret_reader = &reader->IWMReader_iface;
2097 return S_OK;
2100 HRESULT WINAPI WMCreateReaderPriv(IWMReader **ret_reader)
2102 return WMCreateReader(NULL, 0, ret_reader);
2105 HRESULT WINAPI WMCreateSyncReader(IUnknown *pcert, DWORD rights, IWMSyncReader **syncreader)
2107 FIXME("(%p, %x, %p): stub\n", pcert, rights, syncreader);
2109 *syncreader = NULL;
2111 return E_NOTIMPL;
2114 typedef struct {
2115 IWMProfileManager IWMProfileManager_iface;
2116 LONG ref;
2117 } WMProfileManager;
2119 static inline WMProfileManager *impl_from_IWMProfileManager(IWMProfileManager *iface)
2121 return CONTAINING_RECORD(iface, WMProfileManager, IWMProfileManager_iface);
2124 static HRESULT WINAPI WMProfileManager_QueryInterface(IWMProfileManager *iface, REFIID riid, void **ppv)
2126 WMProfileManager *This = impl_from_IWMProfileManager(iface);
2128 if(IsEqualGUID(&IID_IUnknown, riid)) {
2129 TRACE("(%p)->(IID_IUnknown %p)\n", This, ppv);
2130 *ppv = &This->IWMProfileManager_iface;
2131 }else if(IsEqualGUID(&IID_IWMProfileManager, riid)) {
2132 TRACE("(%p)->(IID_IWMProfileManager %p)\n", This, ppv);
2133 *ppv = &This->IWMProfileManager_iface;
2134 }else {
2135 *ppv = NULL;
2136 return E_NOINTERFACE;
2139 IUnknown_AddRef((IUnknown*)*ppv);
2140 return S_OK;
2143 static ULONG WINAPI WMProfileManager_AddRef(IWMProfileManager *iface)
2145 WMProfileManager *This = impl_from_IWMProfileManager(iface);
2146 LONG ref = InterlockedIncrement(&This->ref);
2148 TRACE("(%p) ref=%d\n", This, ref);
2150 return ref;
2153 static ULONG WINAPI WMProfileManager_Release(IWMProfileManager *iface)
2155 WMProfileManager *This = impl_from_IWMProfileManager(iface);
2156 LONG ref = InterlockedDecrement(&This->ref);
2158 TRACE("(%p) ref=%d\n", This, ref);
2160 if(!ref)
2161 heap_free(This);
2163 return ref;
2166 static HRESULT WINAPI WMProfileManager_CreateEmptyProfile(IWMProfileManager *iface, WMT_VERSION version, IWMProfile **ret)
2168 WMProfileManager *This = impl_from_IWMProfileManager(iface);
2169 FIXME("(%p)->(%x %p)\n", This, version, ret);
2170 return E_NOTIMPL;
2173 static HRESULT WINAPI WMProfileManager_LoadProfileByID(IWMProfileManager *iface, REFGUID guid, IWMProfile **ret)
2175 WMProfileManager *This = impl_from_IWMProfileManager(iface);
2176 FIXME("(%p)->(%s %p)\n", This, debugstr_guid(guid), ret);
2177 return E_NOTIMPL;
2180 static HRESULT WINAPI WMProfileManager_LoadProfileByData(IWMProfileManager *iface, const WCHAR *profile, IWMProfile **ret)
2182 WMProfileManager *This = impl_from_IWMProfileManager(iface);
2183 FIXME("(%p)->(%s %p)\n", This, debugstr_w(profile), ret);
2184 return E_NOTIMPL;
2187 static HRESULT WINAPI WMProfileManager_SaveProfile(IWMProfileManager *iface, IWMProfile *profile, WCHAR *profile_str, DWORD *len)
2189 WMProfileManager *This = impl_from_IWMProfileManager(iface);
2190 FIXME("(%p)->(%p %p %p)\n", This, profile, profile_str, len);
2191 return E_NOTIMPL;
2194 static HRESULT WINAPI WMProfileManager_GetSystemProfileCount(IWMProfileManager *iface, DWORD *ret)
2196 WMProfileManager *This = impl_from_IWMProfileManager(iface);
2197 FIXME("(%p)->(%p)\n", This, ret);
2198 return E_NOTIMPL;
2201 static HRESULT WINAPI WMProfileManager_LoadSystemProfile(IWMProfileManager *iface, DWORD index, IWMProfile **ret)
2203 WMProfileManager *This = impl_from_IWMProfileManager(iface);
2204 FIXME("(%p)->(%d %p)\n", This, index, ret);
2205 return E_NOTIMPL;
2208 static const IWMProfileManagerVtbl WMProfileManagerVtbl = {
2209 WMProfileManager_QueryInterface,
2210 WMProfileManager_AddRef,
2211 WMProfileManager_Release,
2212 WMProfileManager_CreateEmptyProfile,
2213 WMProfileManager_LoadProfileByID,
2214 WMProfileManager_LoadProfileByData,
2215 WMProfileManager_SaveProfile,
2216 WMProfileManager_GetSystemProfileCount,
2217 WMProfileManager_LoadSystemProfile
2220 HRESULT WINAPI WMCreateProfileManager(IWMProfileManager **ret)
2222 WMProfileManager *profile_mgr;
2224 TRACE("(%p)\n", ret);
2226 profile_mgr = heap_alloc(sizeof(*profile_mgr));
2227 if(!profile_mgr)
2228 return E_OUTOFMEMORY;
2230 profile_mgr->IWMProfileManager_iface.lpVtbl = &WMProfileManagerVtbl;
2231 profile_mgr->ref = 1;
2233 *ret = &profile_mgr->IWMProfileManager_iface;
2234 return S_OK;