regsvr32: Use the standard va_list instead of __ms_va_list.
[wine.git] / include / wmsdkidl.idl
blobf276d642a03a284c5ad8eaf1b6f2eac2d48ddedd
1 /*
2 * Copyright 2012 André Hentschel
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 import "oaidl.idl";
20 import "wmsbuffer.idl";
21 import "drmexternals.idl";
23 typedef struct _WMMediaType
25 GUID majortype;
26 GUID subtype;
27 BOOL bFixedSizeSamples;
28 BOOL bTemporalCompression;
29 ULONG lSampleSize;
30 GUID formattype;
31 IUnknown *pUnk;
32 ULONG cbFormat;
33 [size_is(cbFormat)] BYTE *pbFormat;
34 } WM_MEDIA_TYPE;
36 typedef struct _WMWriterStatistics
38 QWORD qwSampleCount;
39 QWORD qwByteCount;
40 QWORD qwDroppedSampleCount;
41 QWORD qwDroppedByteCount;
42 DWORD dwCurrentBitrate;
43 DWORD dwAverageBitrate;
44 DWORD dwExpectedBitrate;
45 DWORD dwCurrentSampleRate;
46 DWORD dwAverageSampleRate;
47 DWORD dwExpectedSampleRate;
48 } WM_WRITER_STATISTICS;
50 typedef struct _WMWriterStatisticsEx
52 DWORD dwBitratePlusOverhead;
53 DWORD dwCurrentSampleDropRateInQueue;
54 DWORD dwCurrentSampleDropRateInCodec;
55 DWORD dwCurrentSampleDropRateInMultiplexer;
56 DWORD dwTotalSampleDropsInQueue;
57 DWORD dwTotalSampleDropsInCodec;
58 DWORD dwTotalSampleDropsInMultiplexer;
59 } WM_WRITER_STATISTICS_EX;
61 typedef struct _WMReaderStatistics
63 DWORD cbSize;
64 DWORD dwBandwidth;
65 DWORD cPacketsReceived;
66 DWORD cPacketsRecovered;
67 DWORD cPacketsLost;
68 WORD wQuality;
69 } WM_READER_STATISTICS;
71 typedef struct _WMReaderClientInfo
73 DWORD cbSize;
74 WCHAR *wszLang;
75 WCHAR *wszBrowserUserAgent;
76 WCHAR *wszBrowserWebPage;
77 QWORD qwReserved;
78 LPARAM *pReserved;
79 WCHAR *wszHostExe;
80 QWORD qwHostVersion;
81 WCHAR *wszPlayerUserAgent;
82 } WM_READER_CLIENTINFO;
84 typedef enum WMT_ATTR_DATATYPE
86 WMT_TYPE_DWORD = 0,
87 WMT_TYPE_STRING = 1,
88 WMT_TYPE_BINARY = 2,
89 WMT_TYPE_BOOL = 3,
90 WMT_TYPE_QWORD = 4,
91 WMT_TYPE_WORD = 5,
92 WMT_TYPE_GUID = 6,
93 } WMT_ATTR_DATATYPE;
95 typedef enum WMT_STATUS
97 WMT_ERROR = 0,
98 WMT_OPENED = 1,
99 WMT_BUFFERING_START = 2,
100 WMT_BUFFERING_STOP = 3,
101 WMT_EOF = 4,
102 WMT_END_OF_FILE = 4,
103 WMT_END_OF_SEGMENT = 5,
104 WMT_END_OF_STREAMING = 6,
105 WMT_LOCATING = 7,
106 WMT_CONNECTING = 8,
107 WMT_NO_RIGHTS = 9,
108 WMT_MISSING_CODEC = 10,
109 WMT_STARTED = 11,
110 WMT_STOPPED = 12,
111 WMT_CLOSED = 13,
112 WMT_STRIDING = 14,
113 WMT_TIMER = 15,
114 WMT_INDEX_PROGRESS = 16,
115 WMT_SAVEAS_START = 17,
116 WMT_SAVEAS_STOP = 18,
117 WMT_NEW_SOURCEFLAGS = 19,
118 WMT_NEW_METADATA = 20,
119 WMT_BACKUPRESTORE_BEGIN = 21,
120 WMT_SOURCE_SWITCH = 22,
121 WMT_ACQUIRE_LICENSE = 23,
122 WMT_INDIVIDUALIZE = 24,
123 WMT_NEEDS_INDIVIDUALIZATION = 25,
124 WMT_NO_RIGHTS_EX = 26,
125 WMT_BACKUPRESTORE_END = 27,
126 WMT_BACKUPRESTORE_CONNECTING = 28,
127 WMT_BACKUPRESTORE_DISCONNECTING = 29,
128 WMT_ERROR_WITHURL = 30,
129 WMT_RESTRICTED_LICENSE = 31,
130 WMT_CLIENT_CONNECT = 32,
131 WMT_CLIENT_DISCONNECT = 33,
132 WMT_NATIVE_OUTPUT_PROPS_CHANGED = 34,
133 WMT_RECONNECT_START = 35,
134 WMT_RECONNECT_END = 36,
135 WMT_CLIENT_CONNECT_EX = 37,
136 WMT_CLIENT_DISCONNECT_EX = 38,
137 WMT_SET_FEC_SPAN = 39,
138 WMT_PREROLL_READY = 40,
139 WMT_PREROLL_COMPLETE = 41,
140 WMT_CLIENT_PROPERTIES = 42,
141 WMT_LICENSEURL_SIGNATURE_STATE = 43,
142 WMT_INIT_PLAYLIST_BURN = 44,
143 WMT_TRANSCRYPTOR_INIT = 45,
144 WMT_TRANSCRYPTOR_SEEKED = 46,
145 WMT_TRANSCRYPTOR_READ = 47,
146 WMT_TRANSCRYPTOR_CLOSED = 48,
147 WMT_PROXIMITY_RESULT = 49,
148 WMT_PROXIMITY_COMPLETED = 50,
149 WMT_CONTENT_ENABLER = 51
150 } WMT_STATUS;
152 typedef enum WMT_STREAM_SELECTION
154 WMT_OFF = 0,
155 WMT_CLEANPOINT_ONLY = 1,
156 WMT_ON = 2,
157 } WMT_STREAM_SELECTION;
159 typedef enum WMT_VERSION
161 WMT_VER_4_0 = 0x00040000,
162 WMT_VER_7_0 = 0x00070000,
163 WMT_VER_8_0 = 0x00080000,
164 WMT_VER_9_0 = 0x00090000
165 } WMT_VERSION;
167 typedef enum WMT_PLAY_MODE
169 WMT_PLAY_MODE_AUTOSELECT,
170 WMT_PLAY_MODE_LOCAL,
171 WMT_PLAY_MODE_DOWNLOAD,
172 WMT_PLAY_MODE_STREAMING
173 } WMT_PLAY_MODE;
175 typedef enum tagWMT_OFFSET_FORMAT
177 WMT_OFFSET_FORMAT_100NS,
178 WMT_OFFSET_FORMAT_FRAME_NUMBERS,
179 WMT_OFFSET_FORMAT_PLAYLIST_OFFSET,
180 WMT_OFFSET_FORMAT_TIMECODE,
181 WMT_OFFSET_FORMAT_100NS_APPROXIMATE
182 } WMT_OFFSET_FORMAT;
184 typedef enum WMT_CODEC_INFO_TYPE
186 WMT_CODECINFO_AUDIO = 0,
187 WMT_CODECINFO_VIDEO = 1,
188 WMT_CODECINFO_UNKNOWN = 0xFFFFFFFF,
189 } WMT_CODEC_INFO_TYPE;
191 typedef enum WMT_PROXY_SETTINGS
193 WMT_PROXY_SETTING_NONE = 0,
194 WMT_PROXY_SETTING_MANUAL = 1,
195 WMT_PROXY_SETTING_AUTO = 2,
196 WMT_PROXY_SETTING_BROWSER = 3,
197 WMT_PROXY_SETTING_MAX
198 } WMT_PROXY_SETTINGS;
200 typedef enum tagWMT_STORAGE_FORMAT
202 WMT_Storage_Format_MP3 = 0,
203 WMT_Storage_Format_V1 = 1
204 } WMT_STORAGE_FORMAT;
206 #include <pshpack2.h>
207 typedef struct _WMStreamPrioritizationRecord
209 WORD wStreamNumber;
210 BOOL fMandatory;
211 } WM_STREAM_PRIORITY_RECORD;
213 typedef struct _WMT_TIMECODE_EXTENSION_DATA
215 WORD wRange;
216 DWORD dwTimecode;
217 DWORD dwUserbits;
218 DWORD dwAmFlags;
219 } WMT_TIMECODE_EXTENSION_DATA;
220 #include <poppack.h>
222 typedef struct _WM_PORT_NUMBER_RANGE
224 WORD wPortBegin;
225 WORD wPortEnd;
226 } WM_PORT_NUMBER_RANGE;
228 typedef LPCWSTR LPCWSTR_WMSDK_TYPE_SAFE;
231 object,
232 uuid(6d7cdc70-9888-11d3-8edc-00c04f6109cf),
233 pointer_default(unique),
234 local
236 interface IWMStatusCallback : IUnknown
238 HRESULT OnStatus(
239 [in] WMT_STATUS Status,
240 [in] HRESULT hr,
241 [in] WMT_ATTR_DATATYPE dwType,
242 [in] BYTE *pValue,
243 [in] void *pvContext);
247 object,
248 uuid(96406bd8-2b2b-11d3-b36b-00c04f6108ff),
249 pointer_default(unique),
250 local
252 interface IWMReaderCallback : IWMStatusCallback
254 HRESULT OnSample(
255 [in] DWORD dwOutputNum,
256 [in] QWORD cnsSampleTime,
257 [in] QWORD cnsSampleDuration,
258 [in] DWORD dwFlags,
259 [in] INSSBuffer *pSample,
260 [in] void *pvContext);
264 object,
265 local,
266 uuid(96406beb-2b2b-11d3-b36b-00c04f6108ff),
268 interface IWMReaderCallbackAdvanced : IUnknown
270 HRESULT OnStreamSample(WORD stream_number, QWORD pts, QWORD duration, DWORD flags, INSSBuffer *sample, void *context);
271 HRESULT OnTime(QWORD time, void *context);
272 HRESULT OnStreamSelection(WORD count, WORD *stream_numbers, WMT_STREAM_SELECTION *selections, void *context);
273 HRESULT OnOutputPropsChanged(DWORD output_number, WM_MEDIA_TYPE *mt, void *context);
274 HRESULT AllocateForStream(WORD stream_number, DWORD size, INSSBuffer **sample, void *context);
275 HRESULT AllocateForOutput(DWORD output_number, DWORD size, INSSBuffer **sample, void *context);
279 object,
280 uuid(96406Bdd-2b2b-11d3-b36b-00c04f6108ff),
281 pointer_default(unique),
282 local
284 interface IWMStreamList : IUnknown
286 HRESULT GetStreams(
287 [out, size_is(*pcStreams)] WORD *pwStreamNumArray,
288 [in, out] WORD *pcStreams);
290 HRESULT AddStream([in] WORD wStreamNum);
291 HRESULT RemoveStream([in] WORD wStreamNum);
295 object,
296 uuid(96406Bde-2b2b-11d3-b36b-00c04f6108ff),
297 pointer_default(unique),
298 local
300 interface IWMMutualExclusion : IWMStreamList
302 HRESULT GetType([out] GUID *pguidType);
303 HRESULT SetType([in] REFGUID guidType);
307 object,
308 uuid(ad694af1-f8d9-42f8-bc47-70311b0c4f9e),
309 pointer_default(unique),
310 local
312 interface IWMBandwidthSharing : IWMStreamList
314 HRESULT GetType([out] GUID *guid);
315 HRESULT SetType([in] REFGUID guid);
317 HRESULT GetBandwidth(
318 [out] DWORD *bitrate,
319 [out] DWORD *buffer);
321 HRESULT SetBandwidth(
322 [in] DWORD bitrate,
323 [in] DWORD buffer);
327 object,
328 uuid(8c1c6090-f9a8-4748-8ec3-dd1108ba1e77),
329 pointer_default(unique),
330 local
332 interface IWMStreamPrioritization : IUnknown
334 HRESULT GetPriorityRecords(
335 [out] WM_STREAM_PRIORITY_RECORD *array,
336 [in, out] WORD *records);
338 HRESULT SetPriorityRecords(
339 [in] WM_STREAM_PRIORITY_RECORD *array,
340 [in] WORD records);
344 object,
345 uuid(96406Bdc-2b2b-11d3-b36b-00c04f6108ff),
346 pointer_default(unique),
347 local
349 interface IWMStreamConfig : IUnknown
351 HRESULT GetStreamType([out] GUID *pguidStreamType);
352 HRESULT GetStreamNumber([out] WORD *pwStreamNum);
353 HRESULT SetStreamNumber([in] WORD wStreamNum);
355 HRESULT GetStreamName(
356 [out, size_is(*pcchStreamName)] WCHAR *pwszStreamName,
357 [in, out] WORD *pcchStreamName);
359 HRESULT SetStreamName([in] LPCWSTR_WMSDK_TYPE_SAFE pwszStreamName);
361 HRESULT GetConnectionName(
362 [out, size_is(*pcchInputName)] WCHAR *pwszInputName,
363 [in, out] WORD *pcchInputName);
365 HRESULT SetConnectionName([in] LPCWSTR_WMSDK_TYPE_SAFE pwszInputName);
366 HRESULT GetBitrate([out] DWORD *pdwBitrate);
367 HRESULT SetBitrate([in] DWORD pdwBitrate);
368 HRESULT GetBufferWindow([out] DWORD *pmsBufferWindow);
369 HRESULT SetBufferWindow([in] DWORD msBufferWindow);
373 object,
374 uuid(96406bdb-2b2b-11d3-b36b-00c04f6108ff),
375 pointer_default(unique),
376 local
378 interface IWMProfile : IUnknown
380 HRESULT GetVersion(
381 [out] WMT_VERSION *pdwVersion);
383 HRESULT GetName(
384 [out, size_is(*pcchName)] WCHAR *pwszName,
385 [in, out] DWORD *pcchName);
387 HRESULT SetName(
388 [in] const WCHAR *pwszName);
390 HRESULT GetDescription(
391 [out, size_is(*pcchDescription)] WCHAR *pwszDescription,
392 [in, out] DWORD *pcchDescription);
394 HRESULT SetDescription(
395 [in] const WCHAR *pwszDescription);
397 HRESULT GetStreamCount(
398 [out] DWORD *pcStreams);
400 HRESULT GetStream(
401 [in] DWORD dwStreamIndex,
402 [out] IWMStreamConfig **ppConfig);
404 HRESULT GetStreamByNumber(
405 [in] WORD wStreamNum,
406 [out] IWMStreamConfig **ppConfig);
408 HRESULT RemoveStream(
409 [in] IWMStreamConfig *pConfig);
411 HRESULT RemoveStreamByNumber(
412 [in] WORD wStreamNum);
414 HRESULT AddStream(
415 [in] IWMStreamConfig *pConfig);
417 HRESULT ReconfigStream(
418 [in] IWMStreamConfig *pConfig);
420 HRESULT CreateNewStream(
421 [in] REFGUID guidStreamType,
422 [out] IWMStreamConfig **ppConfig);
424 HRESULT GetMutualExclusionCount(
425 [out] DWORD *pcME);
427 HRESULT GetMutualExclusion(
428 [in] DWORD dwMEIndex,
429 [out] IWMMutualExclusion **ppME);
431 HRESULT RemoveMutualExclusion(
432 [in] IWMMutualExclusion *pME);
434 HRESULT AddMutualExclusion(
435 [in] IWMMutualExclusion *pME);
437 HRESULT CreateNewMutualExclusion(
438 [out] IWMMutualExclusion **ppME);
442 object,
443 uuid(07e72d33-d94e-4be7-8843-60ae5ff7e5f5),
444 pointer_default(unique),
445 local
447 interface IWMProfile2 : IWMProfile
449 HRESULT GetProfileID([out] GUID *guid);
453 object,
454 uuid(00ef96cc-a461-4546-8bcd-c9a28f0e06f5),
455 pointer_default(unique),
456 local
458 interface IWMProfile3 : IWMProfile2
460 HRESULT GetStorageFormat([out] WMT_STORAGE_FORMAT *storage);
461 HRESULT SetStorageFormat([in] WMT_STORAGE_FORMAT storage);
463 HRESULT GetBandwidthSharingCount([out] DWORD *count);
465 HRESULT GetBandwidthSharing(
466 [in] DWORD index,
467 [out] IWMBandwidthSharing **bandwidth);
469 HRESULT RemoveBandwidthSharing([in] IWMBandwidthSharing *bandwidth);
471 HRESULT AddBandwidthSharing([in] IWMBandwidthSharing *bandwidth);
473 HRESULT CreateNewBandwidthSharing([out] IWMBandwidthSharing **bandwidth);
475 HRESULT GetStreamPrioritization([out] IWMStreamPrioritization **stream);
477 HRESULT SetStreamPrioritization([in] IWMStreamPrioritization *stream);
479 HRESULT RemoveStreamPrioritization();
481 HRESULT CreateNewStreamPrioritization([out] IWMStreamPrioritization **stream);
483 HRESULT GetExpectedPacketCount(
484 [in] QWORD duration,
485 [out] QWORD *packets);
489 object,
490 uuid(d16679f2-6ca0-472d-8d31-2f5d55aee155),
491 pointer_default(unique),
492 local
494 interface IWMProfileManager : IUnknown
496 HRESULT CreateEmptyProfile(
497 [in] WMT_VERSION dwVersion,
498 [out] IWMProfile **ppProfile);
500 HRESULT LoadProfileByID(
501 [in] REFGUID guidProfile,
502 [out] IWMProfile **ppProfile);
504 HRESULT LoadProfileByData(
505 [in] const WCHAR *pwszProfile,
506 [out] IWMProfile **ppProfile);
508 HRESULT SaveProfile(
509 [in] IWMProfile *pIWMProfile,
510 [in] WCHAR *pwszProfile,
511 [in, out] DWORD *pdwLength);
513 HRESULT GetSystemProfileCount(
514 [out] DWORD *pcProfiles);
516 HRESULT LoadSystemProfile(
517 [in] DWORD dwProfileIndex,
518 [out] IWMProfile **ppProfile);
522 object,
523 uuid(7a924e51-73c1-494d-8019-23d37ed9b89a),
524 pointer_default(unique),
525 local
527 interface IWMProfileManager2 : IWMProfileManager
529 HRESULT GetSystemProfileVersion(WMT_VERSION *version);
530 HRESULT SetSystemProfileVersion(WMT_VERSION version);
533 cpp_quote("HRESULT WINAPI WMCreateProfileManager(IWMProfileManager**);")
536 object,
537 uuid(a970f41e-34de-4a98-b3ba-e4b3ca7528f0),
538 pointer_default(unique),
539 local
541 interface IWMCodecInfo : IUnknown
543 HRESULT GetCodecInfoCount(
544 [in] REFGUID guid,
545 [out] DWORD *count);
547 HRESULT GetCodecFormatCount(
548 [in] REFGUID guid,
549 [in] DWORD codecindex,
550 [out] DWORD *formatcount);
552 HRESULT GetCodecFormat(
553 [in] REFGUID guid,
554 [in] DWORD codecindex,
555 [in] DWORD formatindex,
556 [out] IWMStreamConfig **streamconfig);
560 object,
561 uuid(aa65e273-b686-4056-91ec-dd768d4df710),
562 pointer_default(unique),
563 local
565 interface IWMCodecInfo2 : IWMCodecInfo
567 HRESULT GetCodecName(
568 [in] REFGUID guid,
569 [in] DWORD codecindex,
570 [out, size_is(*namesize)] WCHAR *name,
571 [in, out] DWORD *namesize);
573 HRESULT GetCodecFormatDesc(
574 [in] REFGUID guid,
575 [in] DWORD codecindex,
576 [in] DWORD formatindex,
577 [out] IWMStreamConfig **streamconfig,
578 [out, size_is(*descrsize)] WCHAR *description,
579 [in, out] DWORD *descrsize);
583 object,
584 uuid(7e51f487-4d93-4f98-8ab4-27d0565adc51),
585 pointer_default(unique),
586 local
588 interface IWMCodecInfo3 : IWMCodecInfo2
590 HRESULT GetCodecFormatProp(
591 [in] REFGUID guid,
592 [in] DWORD codecindex,
593 [in] DWORD formatindex,
594 [in] const WCHAR *name,
595 [out] WMT_ATTR_DATATYPE *type,
596 [out, size_is(*size)] BYTE *value,
597 [in, out] DWORD *size);
599 HRESULT GetCodecProp(
600 [in] REFGUID guid,
601 [in] DWORD codecindex,
602 [in] const WCHAR *name,
603 [out] WMT_ATTR_DATATYPE *type,
604 [out, size_is(*size)] BYTE *value,
605 [in, out] DWORD *size);
607 HRESULT SetCodecEnumerationSetting(
608 [in] REFGUID guid,
609 [in] DWORD codecindex,
610 [in] const WCHAR *name,
611 [in] WMT_ATTR_DATATYPE type,
612 [in, size_is(size)] const BYTE *value,
613 [in] DWORD size);
615 HRESULT GetCodecEnumerationSetting(
616 [in] REFGUID guid,
617 [in] DWORD codecindex,
618 [in] const WCHAR *name,
619 [out] WMT_ATTR_DATATYPE *type,
620 [out, size_is(*size)] BYTE *value,
621 [in, out] DWORD *size);
624 cpp_quote("static const WCHAR g_wszNumPasses[] = {'_','P','A','S','S','E','S','U','S','E','D',0};")
625 cpp_quote("static const WCHAR g_wszVBREnabled[] = {'_','V','B','R','E','N','A','B','L','E','D',0};")
628 object,
629 uuid(96406bce-2b2b-11d3-b36b-00c04f6108ff),
630 pointer_default(unique),
631 local
633 interface IWMMediaProps : IUnknown
635 HRESULT GetType(
636 [out] GUID *pguidType);
638 HRESULT GetMediaType(
639 [out] WM_MEDIA_TYPE *pType,
640 [in, out] DWORD *pcbType);
642 HRESULT SetMediaType(
643 [in] WM_MEDIA_TYPE *pType);
647 object,
648 uuid(96406bd7-2b2b-11d3-b36b-00c04f6108ff),
649 pointer_default(unique),
650 local
652 interface IWMOutputMediaProps : IWMMediaProps
654 HRESULT GetStreamGroupName(
655 [out, size_is(*pcchName)] WCHAR *pwszName,
656 [in, out] WORD *pcchName);
658 HRESULT GetConnectionName(
659 [out, size_is(*pcchName)] WCHAR *pwszName,
660 [in, out] WORD *pcchName);
664 object,
665 uuid(96406bd9-2b2b-11d3-b36b-00c04f6108ff),
666 pointer_default(unique),
667 local
669 interface IWMMetadataEditor : IUnknown
671 HRESULT Open(
672 [in] const WCHAR *pwszFilename);
674 HRESULT Close();
676 HRESULT Flush();
680 object,
681 uuid(96406bd6-2b2b-11d3-b36b-00c04f6108ff),
682 pointer_default(unique),
683 local
685 interface IWMReader : IUnknown
687 HRESULT Open(
688 [in] const WCHAR *pwszURL,
689 [in] IWMReaderCallback *pCallback,
690 [in] void *pvContext);
692 HRESULT Close();
694 HRESULT GetOutputCount(
695 [out] DWORD *pcOutputs);
697 HRESULT GetOutputProps(
698 [in] DWORD dwOutputNum,
699 [out] IWMOutputMediaProps **ppOutput);
701 HRESULT SetOutputProps(
702 [in] DWORD dwOutputNum,
703 [in] IWMOutputMediaProps *pOutput);
705 HRESULT GetOutputFormatCount(
706 [in] DWORD dwOutputNumber,
707 [out] DWORD *pcFormats);
709 HRESULT GetOutputFormat(
710 [in] DWORD dwOutputNumber,
711 [in] DWORD dwFormatNumber,
712 [out] IWMOutputMediaProps** ppProps);
714 HRESULT Start(
715 [in] QWORD cnsStart,
716 [in] QWORD cnsDuration,
717 [in] float fRate,
718 [in] void *pvContext);
720 HRESULT Stop();
722 HRESULT Pause();
724 HRESULT Resume();
728 object,
729 uuid(e5b7ca9a-0f1c-4f66-9002-74ec50d8b304),
730 pointer_default(unique),
731 local
733 interface IWMPlayerHook : IUnknown
735 HRESULT PreDecode();
739 object,
740 uuid(96406bea-2b2b-11d3-b36b-00c04f6108ff),
741 pointer_default(unique),
742 local
744 interface IWMReaderAdvanced : IUnknown
746 HRESULT SetUserProvidedClock(
747 [in] BOOL fUserClock);
749 HRESULT GetUserProvidedClock(
750 [out] BOOL *pfUserClock);
752 HRESULT DeliverTime(
753 [in] QWORD cnsTime);
755 HRESULT SetManualStreamSelection(
756 [in] BOOL fSelection);
758 HRESULT GetManualStreamSelection(
759 [out] BOOL *pfSelection);
761 HRESULT SetStreamsSelected(
762 [in] WORD cStreamCount,
763 [in] WORD *pwStreamNumbers,
764 [in] WMT_STREAM_SELECTION *pSelections);
766 HRESULT GetStreamSelected(
767 [in] WORD wStreamNum,
768 [out] WMT_STREAM_SELECTION *pSelection);
770 HRESULT SetReceiveSelectionCallbacks(
771 [in] BOOL fGetCallbacks);
773 HRESULT GetReceiveSelectionCallbacks(
774 [out] BOOL *pfGetCallbacks);
776 HRESULT SetReceiveStreamSamples(
777 [in] WORD wStreamNum,
778 [in] BOOL fReceiveStreamSamples);
780 HRESULT GetReceiveStreamSamples(
781 [in] WORD wStreamNum,
782 [out] BOOL *pfReceiveStreamSamples);
784 HRESULT SetAllocateForOutput(
785 [in] DWORD dwOutputNum,
786 [in] BOOL fAllocate);
788 HRESULT GetAllocateForOutput(
789 [in] DWORD dwOutputNum,
790 [out] BOOL *pfAllocate);
792 HRESULT SetAllocateForStream(
793 [in] WORD wStreamNum,
794 [in] BOOL fAllocate);
796 HRESULT GetAllocateForStream(
797 [in] WORD dwStreamNum,
798 [out] BOOL *pfAllocate);
800 HRESULT GetStatistics(
801 [in, out] WM_READER_STATISTICS *pStatistics);
803 HRESULT SetClientInfo(
804 [in] WM_READER_CLIENTINFO *pClientInfo);
806 HRESULT GetMaxOutputSampleSize(
807 [in] DWORD dwOutput,
808 [out] DWORD *pcbMax);
810 HRESULT GetMaxStreamSampleSize(
811 [in] WORD wStream,
812 [out] DWORD *pcbMax);
814 HRESULT NotifyLateDelivery(
815 QWORD cnsLateness);
819 object,
820 uuid(ae14a945-b90c-4d0d-9127-80d665f7d73e),
821 pointer_default(unique),
822 local
824 interface IWMReaderAdvanced2 : IWMReaderAdvanced
826 HRESULT SetPlayMode(
827 [in] WMT_PLAY_MODE Mode);
829 HRESULT GetPlayMode(
830 [out] WMT_PLAY_MODE *pMode);
832 HRESULT GetBufferProgress(
833 [out] DWORD *pdwPercent,
834 [out] QWORD *pcnsBuffering);
836 HRESULT GetDownloadProgress(
837 [out] DWORD *pdwPercent,
838 [out] QWORD *pqwBytesDownloaded,
839 [out] QWORD *pcnsDownload);
841 HRESULT GetSaveAsProgress(
842 [out] DWORD *pdwPercent);
844 HRESULT SaveFileAs(
845 [in] const WCHAR *pwszFilename);
847 HRESULT GetProtocolName(
848 [out, size_is(*pcchProtocol)] WCHAR *pwszProtocol,
849 [in, out] DWORD *pcchProtocol);
851 HRESULT StartAtMarker(
852 [in] WORD wMarkerIndex,
853 [in] QWORD cnsDuration,
854 [in] float fRate,
855 [in] void *pvContext);
857 HRESULT GetOutputSetting(
858 [in] DWORD dwOutputNum,
859 [in] LPCWSTR pszName,
860 [out] WMT_ATTR_DATATYPE *pType,
861 [out, size_is(*pcbLength)] BYTE *pValue,
862 [in, out] WORD *pcbLength);
864 HRESULT SetOutputSetting(
865 [in] DWORD dwOutputNum,
866 [in] LPCWSTR pszName,
867 [in] WMT_ATTR_DATATYPE Type,
868 [in, size_is(cbLength)] const BYTE *pValue,
869 [in] WORD cbLength);
871 HRESULT Preroll(
872 [in] QWORD cnsStart,
873 [in] QWORD cnsDuration,
874 [in] float fRate);
876 HRESULT SetLogClientID(
877 [in] BOOL fLogClientID);
879 HRESULT GetLogClientID(
880 [out] BOOL *pfLogClientID);
882 HRESULT StopBuffering();
884 HRESULT OpenStream(
885 [in] IStream *pStream,
886 [in] IWMReaderCallback *pCallback,
887 [in] void *pvContext);
891 object,
892 uuid(5dc0674b-f04B-4a4e-9f2a-b1afde2c8100),
893 pointer_default(unique),
894 local
896 interface IWMReaderAdvanced3 : IWMReaderAdvanced2
898 HRESULT StopNetStreaming();
900 HRESULT StartAtPosition(
901 [in] WORD wStreamNum,
902 [in] void *pvOffsetStart,
903 [in] void *pvDuration,
904 [in] WMT_OFFSET_FORMAT dwOffsetFormat,
905 [in] float fRate,
906 [in] void *pvContext);
910 object,
911 uuid(945a76a2-12ae-4d48-bd3c-cd1d90399b85),
912 pointer_default(unique),
913 local
915 interface IWMReaderAdvanced4 : IWMReaderAdvanced3
917 HRESULT GetLanguageCount(
918 [in] DWORD dwOutputNum,
919 [out] WORD *pwLanguageCount);
921 HRESULT GetLanguage(
922 [in] DWORD dwOutputNum,
923 [in] WORD wLanguage,
924 [out, size_is(*pcchLanguageStringLength)] WCHAR *pwszLanguageString,
925 [in, out] WORD *pcchLanguageStringLength);
927 HRESULT GetMaxSpeedFactor(
928 [out] double *pdblFactor);
930 HRESULT IsUsingFastCache(
931 [out] BOOL *pfUsingFastCache);
933 HRESULT AddLogParam(
934 [in] LPCWSTR wszNameSpace,
935 [in] LPCWSTR wszName,
936 [in] LPCWSTR wszValue);
938 HRESULT SendLogParams();
940 HRESULT CanSaveFileAs(
941 [out] BOOL *pfCanSave);
943 HRESULT CancelSaveFileAs();
945 HRESULT GetURL(
946 [out, size_is(*pcchURL)] WCHAR *pwszURL,
947 [in, out] DWORD *pcchURL);
951 object,
952 uuid(24c44db0-55d1-49ae-a5cc-f13815e36363),
953 pointer_default(unique),
954 local
956 interface IWMReaderAdvanced5 : IWMReaderAdvanced4
958 HRESULT SetPlayerHook(
959 [in] DWORD dwOutputNum,
960 [in] IWMPlayerHook *pHook);
964 object,
965 uuid(18a2e7f8-428f-4acd-8a00-e64639bc93de),
966 pointer_default(unique),
967 local
969 interface IWMReaderAdvanced6 : IWMReaderAdvanced5
971 HRESULT SetProtectStreamSamples(
972 [in, size_is(cbCertificate)] BYTE *pbCertificate,
973 [in] DWORD cbCertificate,
974 [in] DWORD dwCertificateType,
975 [in] DWORD dwFlags,
976 [out, size_is(*pcbInitializationVector)] BYTE *pbInitializationVector,
977 [in, out] DWORD *pcbInitializationVector);
981 object,
982 uuid(9397f121-7705-4dc9-b049-98b698188414),
983 pointer_default( unique ),
984 local
986 interface IWMSyncReader : IUnknown
988 HRESULT Open(
989 [in] const WCHAR *pwszFilename);
991 HRESULT Close();
993 HRESULT SetRange(
994 [in] QWORD cnsStartTime,
995 [in] LONGLONG cnsDuration);
997 HRESULT SetRangeByFrame(
998 [in] WORD wStreamNum,
999 [in] QWORD qwFrameNumber,
1000 [in] LONGLONG cFramesToRead);
1002 HRESULT GetNextSample(
1003 [in] WORD wStreamNum,
1004 [out] INSSBuffer **ppSample,
1005 [out] QWORD *pcnsSampleTime,
1006 [out] QWORD *pcnsDuration,
1007 [out] DWORD *pdwFlags,
1008 [out] DWORD *pdwOutputNum,
1009 [out] WORD *pwStreamNum);
1011 HRESULT SetStreamsSelected(
1012 [in] WORD cStreamCount,
1013 [in] WORD *pwStreamNumbers,
1014 [in] WMT_STREAM_SELECTION *pSelections);
1016 HRESULT GetStreamSelected(
1017 [in] WORD wStreamNum,
1018 [out] WMT_STREAM_SELECTION *pSelection);
1020 HRESULT SetReadStreamSamples(
1021 [in] WORD wStreamNum,
1022 [in] BOOL fCompressed);
1024 HRESULT GetReadStreamSamples(
1025 [in] WORD wStreamNum,
1026 [out] BOOL *pfCompressed);
1028 HRESULT GetOutputSetting(
1029 [in] DWORD dwOutputNum,
1030 [in] LPCWSTR pszName,
1031 [out] WMT_ATTR_DATATYPE *pType,
1032 [out, size_is(*pcbLength)] BYTE *pValue,
1033 [in, out] WORD *pcbLength);
1035 HRESULT SetOutputSetting(
1036 [in] DWORD dwOutputNum,
1037 [in] LPCWSTR pszName,
1038 [in] WMT_ATTR_DATATYPE Type,
1039 [in, size_is(cbLength)] const BYTE *pValue,
1040 [in] WORD cbLength);
1042 HRESULT GetOutputCount(
1043 [out] DWORD *pcOutputs);
1045 HRESULT GetOutputProps(
1046 [in] DWORD dwOutputNum,
1047 [out] IWMOutputMediaProps **ppOutput);
1049 HRESULT SetOutputProps(
1050 [in] DWORD dwOutputNum,
1051 [in] IWMOutputMediaProps *pOutput);
1053 HRESULT GetOutputFormatCount(
1054 [in] DWORD dwOutputNum,
1055 [out] DWORD *pcFormats);
1057 HRESULT GetOutputFormat(
1058 [in] DWORD dwOutputNum,
1059 [in] DWORD dwFormatNum,
1060 [out] IWMOutputMediaProps **ppProps);
1062 HRESULT GetOutputNumberForStream(
1063 [in] WORD wStreamNum,
1064 [out] DWORD *pdwOutputNum);
1066 HRESULT GetStreamNumberForOutput(
1067 [in] DWORD dwOutputNum,
1068 [out] WORD *pwStreamNum);
1070 HRESULT GetMaxOutputSampleSize(
1071 [in] DWORD dwOutput,
1072 [out] DWORD *pcbMax);
1074 HRESULT GetMaxStreamSampleSize(
1075 [in] WORD wStream,
1076 [out] DWORD *pcbMax);
1078 HRESULT OpenStream(
1079 [in] IStream *pStream);
1083 object,
1084 uuid(9f762fa7-a22e-428d-93c9-ac82f3aafe5a),
1085 pointer_default( unique ),
1086 local
1088 interface IWMReaderAllocatorEx : IUnknown
1090 HRESULT AllocateForStreamEx(
1091 [in] WORD wStreamNum,
1092 [in] DWORD cbBuffer,
1093 [out] INSSBuffer **ppBuffer,
1094 [in] DWORD dwFlags,
1095 [in] QWORD cnsSampleTime,
1096 [in] QWORD cnsSampleDuration,
1097 [in] void *pvContext);
1099 HRESULT AllocateForOutputEx(
1100 [in] DWORD output,
1101 [in] DWORD cbBuffer,
1102 [out] INSSBuffer **ppBuffer,
1103 [in] DWORD dwFlags,
1104 [in] QWORD cnsSampleTime,
1105 [in] QWORD cnsSampleDuration,
1106 [in] void *pvContext);
1110 object,
1111 uuid(faed3d21-1b6b-4af7-8cb6-3e189bbc187b),
1112 pointer_default( unique ),
1113 local
1115 interface IWMSyncReader2 : IWMSyncReader
1117 HRESULT SetRangeByTimecode(
1118 [in] WORD wStreamNum,
1119 [in] WMT_TIMECODE_EXTENSION_DATA *pStart,
1120 [in] WMT_TIMECODE_EXTENSION_DATA *pEnd);
1122 HRESULT SetRangeByFrameEx(
1123 [in] WORD wStreamNum,
1124 [in] QWORD qwFrameNumber,
1125 [in] LONGLONG cFramesToRead,
1126 [out] QWORD *pcnsStartTime);
1128 HRESULT SetAllocateForOutput(
1129 [in] DWORD dwOutputNum,
1130 [in] IWMReaderAllocatorEx *pAllocator);
1132 HRESULT GetAllocateForOutput(
1133 [in] DWORD dwOutputNum,
1134 [out] IWMReaderAllocatorEx **ppAllocator);
1136 HRESULT SetAllocateForStream(
1137 [in] DWORD dwStreamNum,
1138 [in] IWMReaderAllocatorEx *pAllocator);
1140 HRESULT GetAllocateForStream(
1141 [in] DWORD dwStreamNum,
1142 [out] IWMReaderAllocatorEx **ppAllocator);
1146 object,
1147 uuid(96406bd5-2b2b-11d3-b36b-00c04f6108ff),
1148 pointer_default(unique),
1149 local
1151 interface IWMInputMediaProps : IWMMediaProps
1153 HRESULT GetConnectionName(
1154 [out, size_is(*pcchName)] WCHAR *pwszName,
1155 [in, out] WORD *pcchName);
1157 HRESULT GetGroupName(
1158 [out, size_is(*pcchName)] WCHAR *pwszName,
1159 [in, out] WORD *pcchName);
1163 object,
1164 uuid(96406be4-2b2b-11d3-b36b-00c04f6108ff),
1165 pointer_default(unique),
1166 local
1168 interface IWMWriterSink : IUnknown
1170 HRESULT OnHeader(
1171 [in] INSSBuffer *pHeader);
1173 HRESULT IsRealTime(
1174 [out] BOOL *pfRealTime);
1176 HRESULT AllocateDataUnit(
1177 [in] DWORD cbDataUnit,
1178 [out] INSSBuffer **ppDataUnit);
1180 HRESULT OnDataUnit(
1181 [in] INSSBuffer *pDataUnit);
1183 HRESULT OnEndWriting();
1187 object,
1188 uuid(96406bd4-2b2b-11d3-b36b-00c04f6108ff),
1189 pointer_default(unique),
1190 local
1192 interface IWMWriter : IUnknown
1194 HRESULT SetProfileByID(
1195 [in] REFGUID guidProfile);
1197 HRESULT SetProfile(
1198 [in] IWMProfile *pProfile);
1200 HRESULT SetOutputFilename(
1201 [in] const WCHAR *pwszFilename);
1203 HRESULT GetInputCount(
1204 [out] DWORD *pcInputs);
1206 HRESULT GetInputProps(
1207 [in] DWORD dwInputNum,
1208 [out] IWMInputMediaProps **ppInput);
1210 HRESULT SetInputProps(
1211 [in] DWORD dwInputNum,
1212 [in] IWMInputMediaProps *pInput);
1214 HRESULT GetInputFormatCount(
1215 [in] DWORD dwInputNumber,
1216 [out] DWORD *pcFormats);
1218 HRESULT GetInputFormat(
1219 [in] DWORD dwInputNumber,
1220 [in] DWORD dwFormatNumber,
1221 [out] IWMInputMediaProps **pProps);
1223 HRESULT BeginWriting();
1225 HRESULT EndWriting();
1227 HRESULT AllocateSample(
1228 [in] DWORD dwSampleSize,
1229 [out] INSSBuffer **ppSample);
1231 HRESULT WriteSample(
1232 [in] DWORD dwInputNum,
1233 [in] QWORD cnsSampleTime,
1234 [in] DWORD dwFlags,
1235 [in] INSSBuffer *pSample);
1237 HRESULT Flush();
1241 object,
1242 uuid(96406be3-2b2b-11d3-b36b-00C04f6108ff),
1243 pointer_default(unique),
1244 local
1246 interface IWMWriterAdvanced : IUnknown
1248 HRESULT GetSinkCount(
1249 [out] DWORD *pcSinks);
1251 HRESULT GetSink(
1252 [in] DWORD dwSinkNum,
1253 [out] IWMWriterSink **ppSink);
1255 HRESULT AddSink(
1256 [in] IWMWriterSink *pSink);
1258 HRESULT RemoveSink(
1259 [in] IWMWriterSink *pSink);
1261 HRESULT WriteStreamSample(
1262 [in] WORD wStreamNum,
1263 [in] QWORD cnsSampleTime,
1264 [in] DWORD msSampleSendTime,
1265 [in] QWORD cnsSampleDuration,
1266 [in] DWORD dwFlags,
1267 [in] INSSBuffer *pSample);
1269 HRESULT SetLiveSource(
1270 BOOL fIsLiveSource);
1272 HRESULT IsRealTime(
1273 [out] BOOL *pfRealTime);
1275 HRESULT GetWriterTime(
1276 [out] QWORD *pCurrentTime);
1278 HRESULT GetStatistics(
1279 [in] WORD wStreamNum,
1280 [out] WM_WRITER_STATISTICS *pStats);
1282 HRESULT SetSyncTolerance(
1283 [in] DWORD msWindow);
1285 HRESULT GetSyncTolerance(
1286 [out] DWORD *pmsWindow);
1290 object,
1291 uuid(962dc1ec-c046-4db8-9cc7-26ceae500817),
1292 pointer_default(unique),
1293 local
1295 interface IWMWriterAdvanced2 : IWMWriterAdvanced
1297 HRESULT GetInputSetting(
1298 [in] DWORD dwInputNum,
1299 [in] LPCWSTR pszName,
1300 [out] WMT_ATTR_DATATYPE *pType,
1301 [out, size_is(*pcbLength)] BYTE *pValue,
1302 [in, out] WORD *pcbLength);
1304 HRESULT SetInputSetting(
1305 [in] DWORD dwInputNum,
1306 [in] LPCWSTR pszName,
1307 [in] WMT_ATTR_DATATYPE Type,
1308 [in, size_is(cbLength)] const BYTE *pValue,
1309 [in] WORD cbLength);
1313 object,
1314 uuid(2cd6492d-7c37-4e76-9d3b-59261183a22e),
1315 pointer_default(unique),
1316 local
1318 interface IWMWriterAdvanced3 : IWMWriterAdvanced2
1320 HRESULT GetStatisticsEx(
1321 [in] WORD wStreamNum,
1322 [out] WM_WRITER_STATISTICS_EX *pStats);
1324 HRESULT SetNonBlocking();
1328 object,
1329 uuid(96406bda-2b2b-11d3-b36b-00c04f6108ff),
1330 pointer_default(unique),
1331 local
1333 interface IWMHeaderInfo : IUnknown
1335 HRESULT GetAttributeCount(
1336 [in] WORD stream_num,
1337 [out] WORD *attributes );
1339 HRESULT GetAttributeByIndex(
1340 [in] WORD index,
1341 [in, out] WORD *stream_num,
1342 [out, size_is( *name_len )] WCHAR *name,
1343 [in, out] WORD *name_len,
1344 [out] WMT_ATTR_DATATYPE *type,
1345 [out, size_is( *length )] BYTE *value,
1346 [in, out] WORD *length );
1348 HRESULT GetAttributeByName(
1349 [in, out] WORD *stream_num,
1350 [in] LPCWSTR name,
1351 [out] WMT_ATTR_DATATYPE *type,
1352 [out, size_is( *length )] BYTE *value,
1353 [in, out] WORD *length );
1355 HRESULT SetAttribute(
1356 [in] WORD stream_num,
1357 [in] LPCWSTR name,
1358 [in] WMT_ATTR_DATATYPE type,
1359 [in, size_is( length )] const BYTE *value,
1360 [in] WORD length );
1362 HRESULT GetMarkerCount(
1363 [out] WORD *markers );
1365 HRESULT GetMarker(
1366 [in] WORD index,
1367 [out, size_is( *marker_len )] WCHAR *marker_name,
1368 [in, out] WORD *marker_len,
1369 [out] QWORD *marker_time );
1371 HRESULT AddMarker(
1372 [in] LPCWSTR_WMSDK_TYPE_SAFE marker_name,
1373 [in] QWORD marker_time );
1375 HRESULT RemoveMarker(
1376 [in] WORD index );
1378 HRESULT GetScriptCount(
1379 [out] WORD *scripts );
1381 HRESULT GetScript(
1382 [in] WORD index,
1383 [out, size_is( *type_len )] WCHAR *type,
1384 [in, out] WORD *type_len,
1385 [out, size_is( *command_len )] WCHAR *command,
1386 [in, out] WORD *command_len,
1387 [out] QWORD *script_time );
1389 HRESULT AddScript(
1390 [in] LPCWSTR_WMSDK_TYPE_SAFE type,
1391 [in] LPCWSTR_WMSDK_TYPE_SAFE command,
1392 [in] QWORD script_time );
1394 HRESULT RemoveScript(
1395 [in] WORD index );
1399 object,
1400 uuid(15cf9781-454e-482e-b393-85fae487a810),
1401 pointer_default(unique),
1402 local
1404 interface IWMHeaderInfo2 : IWMHeaderInfo
1406 HRESULT GetCodecInfoCount(
1407 [out] DWORD *codec_infos );
1409 HRESULT GetCodecInfo(
1410 [in] DWORD index,
1411 [in, out] WORD *name_len,
1412 [out, size_is( *name_len )] WCHAR *name,
1413 [in, out] WORD *description_len,
1414 [out, size_is( *description_len )] WCHAR *description,
1415 [out] WMT_CODEC_INFO_TYPE *codec_type,
1416 [in, out] WORD *codec_info_cnt,
1417 [out, size_is( *codec_info_cnt )] BYTE *codec_info );
1421 object,
1422 uuid(15cc68e3-27cc-4ecd-b222-3f5d02d80bd5),
1423 pointer_default(unique),
1424 local
1426 interface IWMHeaderInfo3 : IWMHeaderInfo2
1428 HRESULT GetAttributeCountEx(
1429 [in] WORD stream_num,
1430 [out] WORD *attributes );
1432 HRESULT GetAttributeIndices(
1433 [in] WORD stream_num,
1434 [in] LPCWSTR name,
1435 [in] WORD *lang_index,
1436 [out, size_is( *count )] WORD *indices,
1437 [in, out] WORD *count );
1439 HRESULT GetAttributeByIndexEx(
1440 [in] WORD stream_num,
1441 [in] WORD index,
1442 [out, size_is( *name_len )] LPWSTR name,
1443 [in, out] WORD *name_len,
1444 [out] WMT_ATTR_DATATYPE *type,
1445 [out] WORD *lang_index,
1446 [out, size_is( *data_len )] BYTE *value,
1447 [in, out] DWORD *data_len );
1449 HRESULT ModifyAttribute(
1450 [in] WORD stream_num,
1451 [in] WORD index,
1452 [in] WMT_ATTR_DATATYPE type,
1453 [in] WORD lang_index,
1454 [in, size_is( length )] const BYTE *value,
1455 [in] DWORD length );
1457 HRESULT AddAttribute(
1458 [in] WORD stream_num,
1459 [in] LPCWSTR name,
1460 [out] WORD *index,
1461 [in] WMT_ATTR_DATATYPE type,
1462 [in] WORD lang_index,
1463 [in, size_is( length )] const BYTE *value,
1464 [in] DWORD length );
1466 HRESULT DeleteAttribute(
1467 [in] WORD stream_num,
1468 [in] WORD index );
1470 HRESULT AddCodecInfo(
1471 [in] LPCWSTR_WMSDK_TYPE_SAFE name,
1472 [in] LPCWSTR_WMSDK_TYPE_SAFE description,
1473 [in] WMT_CODEC_INFO_TYPE codec_type,
1474 [in] WORD codec_info_cnt,
1475 [in, size_is( codec_info_cnt )] BYTE *codec_info );
1479 object,
1480 uuid(96406bec-2b2b-11d3-b36b-00c04f6108ff),
1481 pointer_default(unique),
1482 local
1484 interface IWMReaderNetworkConfig : IUnknown
1486 HRESULT GetBufferingTime([out] QWORD *buffering_time);
1487 HRESULT SetBufferingTime([in] QWORD buffering_time);
1489 HRESULT GetUDPPortRanges(
1490 [out, size_is( *ranges )] WM_PORT_NUMBER_RANGE *array,
1491 [in, out] DWORD *ranges);
1493 HRESULT SetUDPPortRanges(
1494 [in, size_is( ranges )] WM_PORT_NUMBER_RANGE *array,
1495 [in] DWORD ranges);
1497 HRESULT GetProxySettings(
1498 [in] const WCHAR *protocol,
1499 [out] WMT_PROXY_SETTINGS *proxy);
1501 HRESULT SetProxySettings(
1502 [in] LPCWSTR protocol,
1503 [in] WMT_PROXY_SETTINGS proxy);
1505 HRESULT GetProxyHostName(
1506 [in] const WCHAR *protocol,
1507 [out, size_is( *size )] WCHAR *hostname,
1508 [in, out] DWORD *size);
1510 HRESULT SetProxyHostName(
1511 [in] const WCHAR *protocol,
1512 [in] const WCHAR *hostname);
1514 HRESULT GetProxyPort(
1515 [in] const WCHAR *protocol,
1516 [out] DWORD *port);
1518 HRESULT SetProxyPort(
1519 [in] const WCHAR *protocol,
1520 [in] DWORD port);
1522 HRESULT GetProxyExceptionList(
1523 [in] const WCHAR *protocol,
1524 [out, size_is( *count )] WCHAR *exceptions,
1525 [in, out] DWORD *count);
1527 HRESULT SetProxyExceptionList(
1528 [in] const WCHAR *protocol,
1529 [in] const WCHAR *exceptions);
1531 HRESULT GetProxyBypassForLocal(
1532 [in] const WCHAR *protocol,
1533 [out] BOOL *bypass);
1535 HRESULT SetProxyBypassForLocal(
1536 [in] const WCHAR *protocol,
1537 [in] BOOL bypass);
1539 HRESULT GetForceRerunAutoProxyDetection([out] BOOL *detection);
1540 HRESULT SetForceRerunAutoProxyDetection([in] BOOL detection);
1542 HRESULT GetEnableMulticast([out] BOOL *multicast);
1543 HRESULT SetEnableMulticast([in] BOOL multicast);
1545 HRESULT GetEnableHTTP([out] BOOL *enable);
1546 HRESULT SetEnableHTTP([in] BOOL enable);
1548 HRESULT GetEnableUDP([out] BOOL *enable);
1549 HRESULT SetEnableUDP([in] BOOL enable);
1551 HRESULT GetEnableTCP([out] BOOL *enable);
1552 HRESULT SetEnableTCP([in] BOOL enable);
1554 HRESULT ResetProtocolRollover();
1556 HRESULT GetConnectionBandwidth([out] DWORD *bandwidth);
1557 HRESULT SetConnectionBandwidth([in] DWORD bandwidth);
1559 HRESULT GetNumProtocolsSupported([out] DWORD *protocols);
1561 HRESULT GetSupportedProtocolName(
1562 [in] DWORD protocol_num,
1563 [out, size_is( *size )] WCHAR *protocol,
1564 [in, out] DWORD *size);
1566 HRESULT AddLoggingUrl([in] const WCHAR *url);
1568 HRESULT GetLoggingUrl(
1569 [in] DWORD index,
1570 [out, size_is( *size )] WCHAR *url,
1571 [in, out] DWORD *size);
1573 HRESULT GetLoggingUrlCount([out] DWORD *count);
1575 HRESULT ResetLoggingUrlList();
1579 object,
1580 uuid(d979a853-042b-4050-8387-c939db22013f),
1581 pointer_default(unique),
1582 local
1584 interface IWMReaderNetworkConfig2 : IWMReaderNetworkConfig
1586 HRESULT GetEnableContentCaching([out] BOOL *enable);
1587 HRESULT SetEnableContentCaching([in] BOOL enable);
1589 HRESULT GetEnableFastCache([out] BOOL *enable);
1590 HRESULT SetEnableFastCache([in] BOOL enable);
1592 HRESULT GetAcceleratedStreamingDuration([out] QWORD *duration);
1593 HRESULT SetAcceleratedStreamingDuration([in] QWORD duration);
1595 HRESULT GetAutoReconnectLimit([out] DWORD *limit);
1596 HRESULT SetAutoReconnectLimit([in] DWORD limit);
1598 HRESULT GetEnableResends([out] BOOL *enable);
1599 HRESULT SetEnableResends([in] BOOL enable);
1601 HRESULT GetEnableThinning([out] BOOL *enable);
1602 HRESULT SetEnableThinning([in] BOOL enable);
1604 HRESULT GetMaxNetPacketSize([out] DWORD *packet_size);
1608 object,
1609 uuid(96406bed-2b2b-11d3-b36b-00c04f6108ff),
1610 pointer_default(unique),
1611 local
1614 interface IWMReaderStreamClock : IUnknown
1616 HRESULT GetTime([in] QWORD *now);
1618 HRESULT SetTimer([in] QWORD when,
1619 [in] void *param,
1620 [out] DWORD *id);
1622 HRESULT KillTimer([in] DWORD id);
1626 object,
1627 uuid(cdfb97ab-188f-40b3-b643-5b7903975c59),
1628 pointer_default(unique),
1629 local
1631 interface IWMPacketSize : IUnknown
1633 HRESULT GetMaxPacketSize([out] DWORD *size);
1634 HRESULT SetMaxPacketSize([in] DWORD size);
1638 object,
1639 uuid(8bfc2b9e-b646-4233-a877-1c6a079669dc),
1640 pointer_default(unique),
1641 local
1643 interface IWMPacketSize2 : IWMPacketSize
1645 HRESULT GetMinPacketSize([out] DWORD *size);
1646 HRESULT SetMinPacketSize([in] DWORD size);
1650 object,
1651 uuid(d2827540-3ee7-432c-b14c-dc17f085d3b3),
1652 pointer_default(unique),
1653 local
1655 interface IWMDRMReader : IUnknown
1657 HRESULT AcquireLicense([in] DWORD flags);
1658 HRESULT CancelLicenseAcquisition();
1660 HRESULT Individualize([in] DWORD flags);
1661 HRESULT CancelIndividualization();
1663 HRESULT MonitorLicenseAcquisition();
1664 HRESULT CancelMonitorLicenseAcquisition();
1666 HRESULT SetDRMProperty(
1667 [in] const WCHAR *name,
1668 [in] WMT_ATTR_DATATYPE type,
1669 [in, size_is( length )] const BYTE *value,
1670 [in] WORD length);
1672 HRESULT GetDRMProperty(
1673 [in] const WCHAR *name,
1674 [out] WMT_ATTR_DATATYPE *type,
1675 [out, size_is( *length )] BYTE *value,
1676 [in, out] WORD *length);
1680 object,
1681 uuid(befe7a75-9f1d-4075-b9d9-a3c37bda49a0),
1682 pointer_default(unique),
1683 local
1685 interface IWMDRMReader2 : IWMDRMReader
1687 HRESULT SetEvaluateOutputLevelLicenses([in] BOOL evaluate);
1688 HRESULT GetPlayOutputLevels(
1689 [out, size_is( *length )] DRM_PLAY_OPL *play,
1690 [in, out] DWORD *length,
1691 [out] DWORD *level);
1693 HRESULT GetCopyOutputLevels(
1694 [out, size_is( *length )] DRM_COPY_OPL *copy,
1695 [in, out] DWORD *length,
1696 [out] DWORD *level);
1698 HRESULT TryNextLicense();
1702 object,
1703 uuid(e08672de-f1e7-4ff4-a0a3-fc4b08e4caf8),
1704 pointer_default(unique),
1705 local
1707 interface IWMDRMReader3 : IWMDRMReader2
1709 HRESULT GetInclusionList(
1710 [out] GUID **guids,
1711 [out] DWORD *count);
1715 object,
1716 uuid(bddc4d08-944d-4d52-a612-46c3fda07dd4),
1717 pointer_default( unique ),
1718 local
1720 interface IWMReaderAccelerator : IUnknown
1722 HRESULT GetCodecInterface(
1723 [in] DWORD output,
1724 [in] REFIID riid,
1725 [out] void **codec);
1727 HRESULT Notify(
1728 [in] DWORD output,
1729 [in] WM_MEDIA_TYPE *subtype);
1733 object,
1734 uuid(f369e2f0-e081-4fe6-8450-b810b2f410d1),
1735 pointer_default(unique),
1736 local
1738 interface IWMReaderTimecode : IUnknown
1740 HRESULT GetTimecodeRangeCount(
1741 [in] WORD num,
1742 [out] WORD *count);
1744 HRESULT GetTimecodeRangeBounds(
1745 [in] WORD stream,
1746 [in] WORD range,
1747 [out] DWORD *start_timecode,
1748 [out] DWORD *end_timecode);
1752 object,
1753 uuid(fdbe5592-81a1-41ea-93bd-735cad1adc05),
1754 pointer_default(unique),
1755 local
1757 interface IWMReaderTypeNegotiation : IUnknown
1759 HRESULT TryOutputProps(
1760 [in] DWORD output,
1761 [in] IWMOutputMediaProps *props);
1765 object,
1766 uuid(df683f00-2d49-4d8e-92b7-fb19f6a0dc57),
1767 pointer_default(unique),
1768 local
1770 interface IWMLanguageList : IUnknown
1772 HRESULT GetLanguageCount(
1773 [out] WORD *count);
1775 HRESULT GetLanguageDetails(
1776 [in] WORD index,
1777 [out, size_is( *length )] WCHAR *language,
1778 [in, out] WORD *length);
1780 HRESULT AddLanguageByRFC1766String(
1781 [in] LPCWSTR_WMSDK_TYPE_SAFE language,
1782 [out] WORD *index);
1786 object,
1787 uuid(f28c0300-9baa-4477-a846-1744d9cbf533),
1788 pointer_default(unique),
1789 local
1791 interface IWMReaderPlaylistBurn : IUnknown
1793 HRESULT InitPlaylistBurn(
1794 [in] DWORD count,
1795 [in] LPCWSTR_WMSDK_TYPE_SAFE *filenames,
1796 [in] IWMStatusCallback *callback,
1797 [in] void *context);
1799 HRESULT GetInitResults(
1800 [in] DWORD count,
1801 [out] HRESULT *stat);
1803 HRESULT Cancel();
1805 HRESULT EndPlaylistBurn([in] HRESULT result);
1809 object,
1810 uuid(72995a79-5090-42a4-9c8c-d9d0b6d34be5),
1811 pointer_default(unique),
1812 local
1814 interface IWMPropertyVault : IUnknown
1816 HRESULT GetPropertyCount([in] DWORD *count);
1818 HRESULT GetPropertyByName(
1819 [in] const WCHAR *name,
1820 [out] WMT_ATTR_DATATYPE *type,
1821 [out, size_is( *size )] BYTE *value,
1822 [in, out] DWORD *size);
1824 HRESULT SetProperty(
1825 [in] const WCHAR *name,
1826 [in] WMT_ATTR_DATATYPE type,
1827 [in] BYTE *value,
1828 [in] DWORD size);
1830 HRESULT GetPropertyByIndex(
1831 [in] DWORD index,
1832 [out, size_is( *pdwNameLen )] WCHAR *name,
1833 [in, out] DWORD *length,
1834 [out] WMT_ATTR_DATATYPE *type,
1835 [out, size_is( *size )] BYTE *value,
1836 [in, out] DWORD *size);
1838 HRESULT CopyPropertiesFrom([in] IWMPropertyVault *vault);
1840 HRESULT Clear();
1844 object,
1845 uuid(fc54a285-38c4-45b5-aa23-85b9f7cb424b),
1846 pointer_default(unique),
1847 local
1849 interface IWMWriterPreprocess : IUnknown
1851 HRESULT GetMaxPreprocessingPasses(
1852 [in] DWORD input,
1853 [in] DWORD flags,
1854 [out] DWORD *passes);
1856 HRESULT SetNumPreprocessingPasses(
1857 [in] DWORD input,
1858 [in] DWORD flags,
1859 [in] DWORD passes);
1861 HRESULT BeginPreprocessingPass(
1862 [in] DWORD input,
1863 [in] DWORD flags);
1865 HRESULT PreprocessSample(
1866 [in] DWORD input,
1867 [in] QWORD sample_time,
1868 [in] DWORD flags,
1869 [in] INSSBuffer *sample);
1871 HRESULT EndPreprocessingPass(
1872 [in] DWORD input,
1873 [in] DWORD flags);
1877 object,
1878 uuid(05e5ac9f-3fb6-4508-bb43-a4067ba1ebe8),
1879 pointer_default(unique),
1880 local
1882 interface IWMLicenseBackup : IUnknown
1884 HRESULT BackupLicenses(
1885 [in] DWORD dwFlags,
1886 [in] IWMStatusCallback *pCallback);
1888 HRESULT CancelLicenseBackup();
1892 object,
1893 uuid(c70b6334-a22e-4efb-a245-15e65a004a13),
1894 pointer_default(unique),
1895 local
1897 interface IWMLicenseRestore : IUnknown
1899 HRESULT RestoreLicenses(
1900 [in] DWORD dwFlags,
1901 [in] IWMStatusCallback *pCallback);
1903 HRESULT CancelLicenseRestore();
1907 object,
1908 local,
1909 uuid(6816dad3-2b4b-4c8e-8149-874c3483a753),
1911 interface IWMIStreamProps : IUnknown
1913 HRESULT GetProperty(const WCHAR *name, WMT_ATTR_DATATYPE *type, BYTE *value, DWORD *size);
1917 object,
1918 local,
1919 uuid(342e0eb7-e651-450c-975b-2ace2c90c48e),
1921 interface IWMCredentialCallback : IUnknown
1923 HRESULT AcquireCredentials(WCHAR *realm, WCHAR *site, WCHAR *username, DWORD username_size,
1924 WCHAR *password, DWORD password_size, HRESULT hr, DWORD *flags);
1927 cpp_quote("HRESULT WINAPI WMCheckURLExtension(LPCWSTR);")
1928 cpp_quote("HRESULT WINAPI WMCheckURLScheme(LPCWSTR);")
1929 cpp_quote("HRESULT WINAPI WMCreateWriter(IUnknown*,IWMWriter**);")
1930 cpp_quote("HRESULT WINAPI WMCreateReader(IUnknown*,DWORD,IWMReader**);")
1931 cpp_quote("HRESULT WINAPI WMCreateSyncReader(IUnknown*,DWORD,IWMSyncReader**);")
1932 cpp_quote("HRESULT WINAPI WMCreateEditor(IWMMetadataEditor**);")
1933 cpp_quote("HRESULT WINAPI WMCreateBackupRestorer(IUnknown*,IWMLicenseBackup**);")
1934 cpp_quote("HRESULT WINAPI WMCreateProfileManager(IWMProfileManager**);")
1935 cpp_quote("HRESULT WINAPI WMIsContentProtected(const WCHAR*, BOOL*);")
1938 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_Base, 0x00000000,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1939 cpp_quote("EXTERN_GUID(WMMEDIATYPE_Video, 0x73646976,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1940 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_RGB1, 0xe436eb78,0x524f,0x11ce,0x9f,0x53,0x00,0x20,0xaf,0x0b,0xa7,0x70);")
1941 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_RGB4, 0xe436eb79,0x524f,0x11ce,0x9f,0x53,0x00,0x20,0xaf,0x0b,0xa7,0x70);")
1942 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_RGB8, 0xe436eb7a,0x524f,0x11ce,0x9f,0x53,0x00,0x20,0xaf,0x0b,0xa7,0x70);")
1943 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_RGB565, 0xe436eb7b,0x524f,0x11ce,0x9f,0x53,0x00,0x20,0xaf,0x0b,0xa7,0x70);")
1944 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_RGB555, 0xe436eb7c,0x524f,0x11ce,0x9f,0x53,0x00,0x20,0xaf,0x0b,0xa7,0x70);")
1945 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_RGB24, 0xe436eb7d,0x524f,0x11ce,0x9f,0x53,0x00,0x20,0xaf,0x0b,0xa7,0x70);")
1946 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_RGB32, 0xe436eb7e,0x524f,0x11ce,0x9f,0x53,0x00,0x20,0xaf,0x0b,0xa7,0x70);")
1947 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_I420, 0x30323449,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1948 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_IYUV, 0x56555949,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1949 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_YV12, 0x32315659,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1950 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_YUY2, 0x32595559,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1951 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_P422, 0x32323450,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1952 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_UYVY, 0x59565955,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1953 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_YVYU, 0x55595659,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1954 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_YVU9, 0x39555659,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1955 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_VIDEOIMAGE, 0x1d4a45f2,0xe5f6,0x4b44,0x83,0x88,0xf0,0xae,0x5c,0x0e,0x0c,0x37);")
1956 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_MP43, 0x3334504d,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1957 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_MP4S, 0x5334504d,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1958 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_M4S2, 0x3253344d,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1959 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_WMV1, 0x31564d57,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1960 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_WMV2, 0x32564d57,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1961 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_MSS1, 0x3153534d,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1962 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_MPEG2_VIDEO, 0xe06d8026,0xdb46,0x11cf,0xb4,0xd1,0x00,0x80,0x5f,0x6c,0xbb,0xea);")
1963 cpp_quote("EXTERN_GUID(WMMEDIATYPE_Audio, 0x73647561,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1964 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_PCM, 0x00000001,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1965 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_DRM, 0x00000009,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1966 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_WMAudioV9, 0x00000162,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1967 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_WMAudio_Lossless, 0x00000163,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1968 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_MSS2, 0x3253534d,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1969 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_WMSP1, 0x0000000a,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1970 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_WMSP2, 0x0000000b,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1971 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_WMV3, 0x33564d57,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1972 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_WMVP, 0x50564d57,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1973 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_WVP2, 0x32505657,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1974 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_WMVA, 0x41564d57,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1975 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_WVC1, 0x31435657,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")