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
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
);
33 case DLL_WINE_PREATTACH
:
34 return FALSE
; /* prefer native version */
35 case DLL_PROCESS_ATTACH
:
36 DisableThreadLibraryCalls(hinstDLL
);
43 HRESULT WINAPI
DllRegisterServer(void)
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
);
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
;
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
;
169 FIXME("(%p)->(%s %p)\n", This
, debugstr_guid(riid
), ppv
);
170 return E_NOINTERFACE
;
173 IUnknown_AddRef((IUnknown
*)*ppv
);
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
);
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
);
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
);
207 static HRESULT WINAPI
WMReader_Close(IWMReader
*iface
)
209 WMReader
*This
= impl_from_IWMReader(iface
);
210 FIXME("(%p)\n", This
);
214 static HRESULT WINAPI
WMReader_GetOutputCount(IWMReader
*iface
, DWORD
*outputs
)
216 WMReader
*This
= impl_from_IWMReader(iface
);
217 FIXME("(%p)->(%p)\n", This
, outputs
);
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
);
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
);
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
);
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
);
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
);
256 static HRESULT WINAPI
WMReader_Stop(IWMReader
*iface
)
258 WMReader
*This
= impl_from_IWMReader(iface
);
259 FIXME("(%p)\n", This
);
263 static HRESULT WINAPI
WMReader_Pause(IWMReader
*iface
)
265 WMReader
*This
= impl_from_IWMReader(iface
);
266 FIXME("(%p)\n", This
);
270 static HRESULT WINAPI
WMReader_Resume(IWMReader
*iface
)
272 WMReader
*This
= impl_from_IWMReader(iface
);
273 FIXME("(%p)\n", This
);
277 static const IWMReaderVtbl WMReaderVtbl
= {
278 WMReader_QueryInterface
,
283 WMReader_GetOutputCount
,
284 WMReader_GetOutputProps
,
285 WMReader_SetOutputProps
,
286 WMReader_GetOutputFormatCount
,
287 WMReader_GetOutputFormat
,
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
);
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
);
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
));
338 static HRESULT WINAPI
WMReaderAdvanced_SetManualStreamSelection(IWMReaderAdvanced6
*iface
, BOOL selection
)
340 WMReader
*This
= impl_from_IWMReaderAdvanced6(iface
);
341 FIXME("(%p)->(%x)\n", This
, selection
);
345 static HRESULT WINAPI
WMReaderAdvanced_GetManualStreamSelection(IWMReaderAdvanced6
*iface
, BOOL
*selection
)
347 WMReader
*This
= impl_from_IWMReaderAdvanced6(iface
);
348 FIXME("(%p)->(%p)\n", This
, selection
);
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
);
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
);
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
);
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
);
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
);
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
);
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
);
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
);
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
);
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
);
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
);
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
);
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
);
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
);
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
));
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
);
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
);
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
);
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
);
490 static HRESULT WINAPI
WMReaderAdvanced2_GetSaveAsProgress(IWMReaderAdvanced6
*iface
, DWORD
*percent
)
492 WMReader
*This
= impl_from_IWMReaderAdvanced6(iface
);
493 FIXME("(%p)->(%p)\n", This
, percent
);
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
));
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
);
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
);
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
);
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
);
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
);
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
);
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
);
556 static HRESULT WINAPI
WMReaderAdvanced2_StopBuffering(IWMReaderAdvanced6
*iface
)
558 WMReader
*This
= impl_from_IWMReaderAdvanced6(iface
);
559 FIXME("(%p)\n", This
);
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
);
571 static HRESULT WINAPI
WMReaderAdvanced3_StopNetStreaming(IWMReaderAdvanced6
*iface
)
573 WMReader
*This
= impl_from_IWMReaderAdvanced6(iface
);
574 FIXME("(%p)\n", This
);
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
);
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
);
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
);
601 static HRESULT WINAPI
WMReaderAdvanced4_GetMaxSpeedFactor(IWMReaderAdvanced6
*iface
, double *factor
)
603 WMReader
*This
= impl_from_IWMReaderAdvanced6(iface
);
604 FIXME("(%p)->(%p)\n", This
, factor
);
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
);
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
));
623 static HRESULT WINAPI
WMReaderAdvanced4_SendLogParams(IWMReaderAdvanced6
*iface
)
625 WMReader
*This
= impl_from_IWMReaderAdvanced6(iface
);
626 FIXME("(%p)\n", This
);
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
);
637 static HRESULT WINAPI
WMReaderAdvanced4_CancelSaveFileAs(IWMReaderAdvanced6
*iface
)
639 WMReader
*This
= impl_from_IWMReaderAdvanced6(iface
);
640 FIXME("(%p)\n", This
);
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
);
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
);
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
);
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
);
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
);
762 static const IWMReaderAcceleratorVtbl WMReaderAcceleratorVtbl
= {
763 reader_accl_QueryInterface
,
766 reader_accl_GetCodecInterface
,
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
);
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
));
807 static HRESULT WINAPI
networkconfig_GetUDPPortRanges(IWMReaderNetworkConfig2
*iface
, WM_PORT_NUMBER_RANGE
*array
,
810 WMReader
*This
= impl_from_IWMReaderNetworkConfig2(iface
);
811 FIXME("%p, %p, %p\n", This
, array
, ranges
);
815 static HRESULT WINAPI
networkconfig_SetUDPPortRanges(IWMReaderNetworkConfig2
*iface
, WM_PORT_NUMBER_RANGE
*array
,
818 WMReader
*This
= impl_from_IWMReaderNetworkConfig2(iface
);
819 FIXME("%p, %p, %u\n", This
, array
, ranges
);
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
);
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
);
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
);
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
));
855 static HRESULT WINAPI
networkconfig_GetProxyPort(IWMReaderNetworkConfig2
*iface
, const WCHAR
*protocol
,
858 WMReader
*This
= impl_from_IWMReaderNetworkConfig2(iface
);
859 FIXME("%p, %s, %p\n", This
, debugstr_w(protocol
), port
);
863 static HRESULT WINAPI
networkconfig_SetProxyPort(IWMReaderNetworkConfig2
*iface
, const WCHAR
*protocol
,
866 WMReader
*This
= impl_from_IWMReaderNetworkConfig2(iface
);
867 FIXME("%p, %s, %u\n", This
, debugstr_w(protocol
), port
);
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
);
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
));
887 static HRESULT WINAPI
networkconfig_GetProxyBypassForLocal(IWMReaderNetworkConfig2
*iface
, const WCHAR
*protocol
,
890 WMReader
*This
= impl_from_IWMReaderNetworkConfig2(iface
);
891 FIXME("%p, %s, %p\n", This
, debugstr_w(protocol
), bypass
);
895 static HRESULT WINAPI
networkconfig_SetProxyBypassForLocal(IWMReaderNetworkConfig2
*iface
, const WCHAR
*protocol
,
898 WMReader
*This
= impl_from_IWMReaderNetworkConfig2(iface
);
899 FIXME("%p, %s, %d\n", This
, debugstr_w(protocol
), bypass
);
903 static HRESULT WINAPI
networkconfig_GetForceRerunAutoProxyDetection(IWMReaderNetworkConfig2
*iface
,
906 WMReader
*This
= impl_from_IWMReaderNetworkConfig2(iface
);
907 FIXME("%p, %p\n", This
, detection
);
911 static HRESULT WINAPI
networkconfig_SetForceRerunAutoProxyDetection(IWMReaderNetworkConfig2
*iface
,
914 WMReader
*This
= impl_from_IWMReaderNetworkConfig2(iface
);
915 FIXME("%p, %d\n", This
, detection
);
919 static HRESULT WINAPI
networkconfig_GetEnableMulticast(IWMReaderNetworkConfig2
*iface
, BOOL
*multicast
)
921 WMReader
*This
= impl_from_IWMReaderNetworkConfig2(iface
);
922 FIXME("%p, %p\n", This
, multicast
);
926 static HRESULT WINAPI
networkconfig_SetEnableMulticast(IWMReaderNetworkConfig2
*iface
, BOOL multicast
)
928 WMReader
*This
= impl_from_IWMReaderNetworkConfig2(iface
);
929 FIXME("%p, %d\n", This
, multicast
);
933 static HRESULT WINAPI
networkconfig_GetEnableHTTP(IWMReaderNetworkConfig2
*iface
, BOOL
*enable
)
935 WMReader
*This
= impl_from_IWMReaderNetworkConfig2(iface
);
936 FIXME("%p, %p\n", This
, enable
);
940 static HRESULT WINAPI
networkconfig_SetEnableHTTP(IWMReaderNetworkConfig2
*iface
, BOOL enable
)
942 WMReader
*This
= impl_from_IWMReaderNetworkConfig2(iface
);
943 FIXME("%p, %d\n", This
, enable
);
947 static HRESULT WINAPI
networkconfig_GetEnableUDP(IWMReaderNetworkConfig2
*iface
, BOOL
*enable
)
949 WMReader
*This
= impl_from_IWMReaderNetworkConfig2(iface
);
950 FIXME("%p, %p\n", This
, enable
);
954 static HRESULT WINAPI
networkconfig_SetEnableUDP(IWMReaderNetworkConfig2
*iface
, BOOL enable
)
956 WMReader
*This
= impl_from_IWMReaderNetworkConfig2(iface
);
957 FIXME("%p, %d\n", This
, enable
);
961 static HRESULT WINAPI
networkconfig_GetEnableTCP(IWMReaderNetworkConfig2
*iface
, BOOL
*enable
)
963 WMReader
*This
= impl_from_IWMReaderNetworkConfig2(iface
);
964 FIXME("%p, %p\n", This
, enable
);
968 static HRESULT WINAPI
networkconfig_SetEnableTCP(IWMReaderNetworkConfig2
*iface
, BOOL enable
)
970 WMReader
*This
= impl_from_IWMReaderNetworkConfig2(iface
);
971 FIXME("%p, %d\n", This
, enable
);
975 static HRESULT WINAPI
networkconfig_ResetProtocolRollover(IWMReaderNetworkConfig2
*iface
)
977 WMReader
*This
= impl_from_IWMReaderNetworkConfig2(iface
);
982 static HRESULT WINAPI
networkconfig_GetConnectionBandwidth(IWMReaderNetworkConfig2
*iface
, DWORD
*bandwidth
)
984 WMReader
*This
= impl_from_IWMReaderNetworkConfig2(iface
);
985 FIXME("%p, %p\n", This
, bandwidth
);
989 static HRESULT WINAPI
networkconfig_SetConnectionBandwidth(IWMReaderNetworkConfig2
*iface
, DWORD bandwidth
)
991 WMReader
*This
= impl_from_IWMReaderNetworkConfig2(iface
);
992 FIXME("%p, %u\n", This
, bandwidth
);
996 static HRESULT WINAPI
networkconfig_GetNumProtocolsSupported(IWMReaderNetworkConfig2
*iface
, DWORD
*protocols
)
998 WMReader
*This
= impl_from_IWMReaderNetworkConfig2(iface
);
999 FIXME("%p, %p\n", This
, protocols
);
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
);
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
));
1018 static HRESULT WINAPI
networkconfig_GetLoggingUrl(IWMReaderNetworkConfig2
*iface
, DWORD index
, WCHAR
*url
,
1021 WMReader
*This
= impl_from_IWMReaderNetworkConfig2(iface
);
1022 FIXME("%p, %u, %p, %p\n", This
, index
, url
, size
);
1026 static HRESULT WINAPI
networkconfig_GetLoggingUrlCount(IWMReaderNetworkConfig2
*iface
, DWORD
*count
)
1028 WMReader
*This
= impl_from_IWMReaderNetworkConfig2(iface
);
1029 FIXME("%p, %p\n", This
, count
);
1033 static HRESULT WINAPI
networkconfig_ResetLoggingUrlList(IWMReaderNetworkConfig2
*iface
)
1035 WMReader
*This
= impl_from_IWMReaderNetworkConfig2(iface
);
1036 FIXME("%p\n", This
);
1040 static HRESULT WINAPI
networkconfig_GetEnableContentCaching(IWMReaderNetworkConfig2
*iface
, BOOL
*enable
)
1042 WMReader
*This
= impl_from_IWMReaderNetworkConfig2(iface
);
1043 FIXME("%p, %p\n", This
, enable
);
1047 static HRESULT WINAPI
networkconfig_SetEnableContentCaching(IWMReaderNetworkConfig2
*iface
, BOOL enable
)
1049 WMReader
*This
= impl_from_IWMReaderNetworkConfig2(iface
);
1050 FIXME("%p, %d\n", This
, enable
);
1054 static HRESULT WINAPI
networkconfig_GetEnableFastCache(IWMReaderNetworkConfig2
*iface
, BOOL
*enable
)
1056 WMReader
*This
= impl_from_IWMReaderNetworkConfig2(iface
);
1057 FIXME("%p, %p\n", This
, enable
);
1061 static HRESULT WINAPI
networkconfig_SetEnableFastCache(IWMReaderNetworkConfig2
*iface
, BOOL enable
)
1063 WMReader
*This
= impl_from_IWMReaderNetworkConfig2(iface
);
1064 FIXME("%p, %d\n", This
, enable
);
1068 static HRESULT WINAPI
networkconfig_GetAcceleratedStreamingDuration(IWMReaderNetworkConfig2
*iface
,
1071 WMReader
*This
= impl_from_IWMReaderNetworkConfig2(iface
);
1072 FIXME("%p, %p\n", This
, duration
);
1076 static HRESULT WINAPI
networkconfig_SetAcceleratedStreamingDuration(IWMReaderNetworkConfig2
*iface
,
1079 WMReader
*This
= impl_from_IWMReaderNetworkConfig2(iface
);
1080 FIXME("%p, %s\n", This
, wine_dbgstr_longlong(duration
));
1084 static HRESULT WINAPI
networkconfig_GetAutoReconnectLimit(IWMReaderNetworkConfig2
*iface
, DWORD
*limit
)
1086 WMReader
*This
= impl_from_IWMReaderNetworkConfig2(iface
);
1087 FIXME("%p, %p\n", This
, limit
);
1091 static HRESULT WINAPI
networkconfig_SetAutoReconnectLimit(IWMReaderNetworkConfig2
*iface
, DWORD limit
)
1093 WMReader
*This
= impl_from_IWMReaderNetworkConfig2(iface
);
1094 FIXME("%p, %u\n", This
, limit
);
1098 static HRESULT WINAPI
networkconfig_GetEnableResends(IWMReaderNetworkConfig2
*iface
, BOOL
*enable
)
1100 WMReader
*This
= impl_from_IWMReaderNetworkConfig2(iface
);
1101 FIXME("%p, %p\n", This
, enable
);
1105 static HRESULT WINAPI
networkconfig_SetEnableResends(IWMReaderNetworkConfig2
*iface
, BOOL enable
)
1107 WMReader
*This
= impl_from_IWMReaderNetworkConfig2(iface
);
1108 FIXME("%p, %u\n", This
, enable
);
1112 static HRESULT WINAPI
networkconfig_GetEnableThinning(IWMReaderNetworkConfig2
*iface
, BOOL
*enable
)
1114 WMReader
*This
= impl_from_IWMReaderNetworkConfig2(iface
);
1115 FIXME("%p, %p\n", This
, enable
);
1119 static HRESULT WINAPI
networkconfig_SetEnableThinning(IWMReaderNetworkConfig2
*iface
, BOOL enable
)
1121 WMReader
*This
= impl_from_IWMReaderNetworkConfig2(iface
);
1122 FIXME("%p, %u\n", This
, enable
);
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
);
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
);
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
);
1223 static HRESULT WINAPI
readclock_KillTimer(IWMReaderStreamClock
*iface
, DWORD id
)
1225 WMReader
*This
= impl_from_IWMReaderStreamClock(iface
);
1226 FIXME("%p, %d\n", This
, id
);
1230 static const IWMReaderStreamClockVtbl WMReaderStreamClockVtbl
=
1232 readclock_QueryInterface
,
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
);
1270 static const IWMReaderTypeNegotiationVtbl WMReaderTypeNegotiationVtbl
=
1272 negotiation_QueryInterface
,
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
);
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
);
1316 static const IWMReaderTimecodeVtbl WMReaderTimecodeVtbl
=
1318 timecode_QueryInterface
,
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
);
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
);
1364 static HRESULT WINAPI
playlist_Cancel(IWMReaderPlaylistBurn
*iface
)
1366 WMReader
*This
= impl_from_IWMReaderPlaylistBurn(iface
);
1367 FIXME("%p\n", This
);
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
);
1378 static const IWMReaderPlaylistBurnVtbl WMReaderPlaylistBurnVtbl
=
1380 playlist_QueryInterface
,
1383 playlist_InitPlaylistBurn
,
1384 playlist_GetInitResults
,
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
);
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
,
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
);
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
);
1444 static HRESULT WINAPI
headerinfo_GetMarkerCount(IWMHeaderInfo3
*iface
, WORD
*markers
)
1446 WMReader
*This
= impl_from_IWMHeaderInfo3(iface
);
1447 FIXME("%p, %p\n", This
, markers
);
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
);
1459 static HRESULT WINAPI
headerinfo_AddMarker(IWMHeaderInfo3
*iface
, LPCWSTR_WMSDK_TYPE_SAFE marker_name
,
1462 WMReader
*This
= impl_from_IWMHeaderInfo3(iface
);
1463 FIXME("%p, %p, %s\n", This
, marker_name
, wine_dbgstr_longlong(marker_time
));
1467 static HRESULT WINAPI
headerinfo_RemoveMarker(IWMHeaderInfo3
*iface
, WORD index
)
1469 WMReader
*This
= impl_from_IWMHeaderInfo3(iface
);
1470 FIXME("%p, %d\n", This
, index
);
1474 static HRESULT WINAPI
headerinfo_GetScriptCount(IWMHeaderInfo3
*iface
, WORD
*scripts
)
1476 WMReader
*This
= impl_from_IWMHeaderInfo3(iface
);
1477 FIXME("%p, %p\n", This
, scripts
);
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
);
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
));
1497 static HRESULT WINAPI
headerinfo_RemoveScript(IWMHeaderInfo3
*iface
, WORD index
)
1499 WMReader
*This
= impl_from_IWMHeaderInfo3(iface
);
1500 FIXME("%p, %d\n", This
, index
);
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
);
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
);
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
);
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
);
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
);
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
);
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
);
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
);
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
,
1574 WMReader
*This
= impl_from_IWMHeaderInfo3(iface
);
1575 FIXME("%p, %p, %p, %d, %d, %p\n", This
, name
, description
, codec_type
, codec_info_cnt
,
1580 static const IWMHeaderInfo3Vtbl WMHeaderInfo3Vtbl
=
1582 headerinfo_QueryInterface
,
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
);
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
);
1647 static HRESULT WINAPI
langlist_AddLanguageByRFC1766String(IWMLanguageList
*iface
, LPCWSTR_WMSDK_TYPE_SAFE language
,
1650 WMReader
*This
= impl_from_IWMLanguageList(iface
);
1651 FIXME("%p, %p, %p\n", This
, language
, index
);
1655 static const IWMLanguageListVtbl WMLanguageListVtbl
=
1657 langlist_QueryInterface
,
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
);
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
);
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
);
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
);
1720 static const IReferenceClockVtbl ReferenceClockVtbl
=
1722 refclock_QueryInterface
,
1726 refclock_AdviseTime
,
1727 refclock_AdvisePeriodic
,
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
);
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
);
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
));
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
);
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
));
1789 static HRESULT WINAPI
profile3_GetStreamCount(IWMProfile3
*iface
, DWORD
*count
)
1791 WMReader
*This
= impl_from_IWMProfile3(iface
);
1792 FIXME("%p, %p\n", This
, count
);
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
);
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
);
1810 static HRESULT WINAPI
profile3_RemoveStream(IWMProfile3
*iface
, IWMStreamConfig
*config
)
1812 WMReader
*This
= impl_from_IWMProfile3(iface
);
1813 FIXME("%p, %p\n", This
, config
);
1817 static HRESULT WINAPI
profile3_RemoveStreamByNumber(IWMProfile3
*iface
, WORD stream
)
1819 WMReader
*This
= impl_from_IWMProfile3(iface
);
1820 FIXME("%p, %d\n", This
, stream
);
1824 static HRESULT WINAPI
profile3_AddStream(IWMProfile3
*iface
, IWMStreamConfig
*config
)
1826 WMReader
*This
= impl_from_IWMProfile3(iface
);
1827 FIXME("%p, %p\n", This
, config
);
1831 static HRESULT WINAPI
profile3_ReconfigStream(IWMProfile3
*iface
, IWMStreamConfig
*config
)
1833 WMReader
*This
= impl_from_IWMProfile3(iface
);
1834 FIXME("%p, %p\n", This
, config
);
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
);
1845 static HRESULT WINAPI
profile3_GetMutualExclusionCount(IWMProfile3
*iface
, DWORD
*count
)
1847 WMReader
*This
= impl_from_IWMProfile3(iface
);
1848 FIXME("%p, %p\n", This
, count
);
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
);
1859 static HRESULT WINAPI
profile3_RemoveMutualExclusion(IWMProfile3
*iface
, IWMMutualExclusion
*mutual
)
1861 WMReader
*This
= impl_from_IWMProfile3(iface
);
1862 FIXME("%p, %p\n", This
, mutual
);
1866 static HRESULT WINAPI
profile3_AddMutualExclusion(IWMProfile3
*iface
, IWMMutualExclusion
*mutual
)
1868 WMReader
*This
= impl_from_IWMProfile3(iface
);
1869 FIXME("%p, %p\n", This
, mutual
);
1873 static HRESULT WINAPI
profile3_CreateNewMutualExclusion(IWMProfile3
*iface
, IWMMutualExclusion
**mutual
)
1875 WMReader
*This
= impl_from_IWMProfile3(iface
);
1876 FIXME("%p, %p\n", This
, mutual
);
1880 static HRESULT WINAPI
profile3_GetProfileID(IWMProfile3
*iface
, GUID
*guid
)
1882 WMReader
*This
= impl_from_IWMProfile3(iface
);
1883 FIXME("%p, %p\n", This
, guid
);
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
);
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
);
1901 static HRESULT WINAPI
profile3_GetBandwidthSharingCount(IWMProfile3
*iface
, DWORD
*count
)
1903 WMReader
*This
= impl_from_IWMProfile3(iface
);
1904 FIXME("%p, %p\n", This
, count
);
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
);
1915 static HRESULT WINAPI
profile3_RemoveBandwidthSharing( IWMProfile3
*iface
, IWMBandwidthSharing
*bandwidth
)
1917 WMReader
*This
= impl_from_IWMProfile3(iface
);
1918 FIXME("%p, %p\n", This
, bandwidth
);
1922 static HRESULT WINAPI
profile3_AddBandwidthSharing(IWMProfile3
*iface
, IWMBandwidthSharing
*bandwidth
)
1924 WMReader
*This
= impl_from_IWMProfile3(iface
);
1925 FIXME("%p, %p\n", This
, bandwidth
);
1929 static HRESULT WINAPI
profile3_CreateNewBandwidthSharing( IWMProfile3
*iface
, IWMBandwidthSharing
**bandwidth
)
1931 WMReader
*This
= impl_from_IWMProfile3(iface
);
1932 FIXME("%p, %p\n", This
, bandwidth
);
1936 static HRESULT WINAPI
profile3_GetStreamPrioritization(IWMProfile3
*iface
, IWMStreamPrioritization
**stream
)
1938 WMReader
*This
= impl_from_IWMProfile3(iface
);
1939 FIXME("%p, %p\n", This
, stream
);
1943 static HRESULT WINAPI
profile3_SetStreamPrioritization(IWMProfile3
*iface
, IWMStreamPrioritization
*stream
)
1945 WMReader
*This
= impl_from_IWMProfile3(iface
);
1946 FIXME("%p, %p\n", This
, stream
);
1950 static HRESULT WINAPI
profile3_RemoveStreamPrioritization(IWMProfile3
*iface
)
1952 WMReader
*This
= impl_from_IWMProfile3(iface
);
1953 FIXME("%p\n", This
);
1957 static HRESULT WINAPI
profile3_CreateNewStreamPrioritization(IWMProfile3
*iface
, IWMStreamPrioritization
**stream
)
1959 WMReader
*This
= impl_from_IWMProfile3(iface
);
1960 FIXME("%p, %p\n", This
, stream
);
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
);
1971 static const IWMProfile3Vtbl WMProfile3Vtbl
=
1973 profile3_QueryInterface
,
1976 profile3_GetVersion
,
1979 profile3_GetDescription
,
1980 profile3_SetDescription
,
1981 profile3_GetStreamCount
,
1983 profile3_GetStreamByNumber
,
1984 profile3_RemoveStream
,
1985 profile3_RemoveStreamByNumber
,
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
);
2039 static HRESULT WINAPI
packetsize_SetMaxPacketSize(IWMPacketSize2
*iface
, DWORD size
)
2041 WMReader
*This
= impl_from_IWMPacketSize2(iface
);
2042 FIXME("%p, %d\n", This
, size
);
2046 static HRESULT WINAPI
packetsize_GetMinPacketSize(IWMPacketSize2
*iface
, DWORD
*size
)
2048 WMReader
*This
= impl_from_IWMPacketSize2(iface
);
2049 FIXME("%p, %p\n", This
, size
);
2053 static HRESULT WINAPI
packetsize_SetMinPacketSize(IWMPacketSize2
*iface
, DWORD size
)
2055 WMReader
*This
= impl_from_IWMPacketSize2(iface
);
2056 FIXME("%p, %d\n", This
, size
);
2060 static const IWMPacketSize2Vtbl WMPacketSize2Vtbl
=
2062 packetsize_QueryInterface
,
2065 packetsize_GetMaxPacketSize
,
2066 packetsize_SetMaxPacketSize
,
2067 packetsize_GetMinPacketSize
,
2068 packetsize_SetMinPacketSize
2071 HRESULT WINAPI
WMCreateReader(IUnknown
*reserved
, DWORD rights
, IWMReader
**ret_reader
)
2075 TRACE("(%p, %x, %p)\n", reserved
, rights
, ret_reader
);
2077 reader
= heap_alloc(sizeof(*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
;
2096 *ret_reader
= &reader
->IWMReader_iface
;
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
);
2115 IWMProfileManager IWMProfileManager_iface
;
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
;
2136 return E_NOINTERFACE
;
2139 IUnknown_AddRef((IUnknown
*)*ppv
);
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
);
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
);
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
);
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
);
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
);
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
);
2194 static HRESULT WINAPI
WMProfileManager_GetSystemProfileCount(IWMProfileManager
*iface
, DWORD
*ret
)
2196 WMProfileManager
*This
= impl_from_IWMProfileManager(iface
);
2197 FIXME("(%p)->(%p)\n", This
, ret
);
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
);
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
));
2228 return E_OUTOFMEMORY
;
2230 profile_mgr
->IWMProfileManager_iface
.lpVtbl
= &WMProfileManagerVtbl
;
2231 profile_mgr
->ref
= 1;
2233 *ret
= &profile_mgr
->IWMProfileManager_iface
;