mstask: Add support for event triggers to ITask::GetNextRunTime().
[wine.git] / include / wmsdkidl.idl
blob60d8b2ca27bf285d4bb9e185da1feb91dc9fcfe6
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;
212 #include <poppack.h>
214 typedef struct _WM_PORT_NUMBER_RANGE
216 WORD wPortBegin;
217 WORD wPortEnd;
218 } WM_PORT_NUMBER_RANGE;
220 typedef LPCWSTR LPCWSTR_WMSDK_TYPE_SAFE;
223 object,
224 uuid(6d7cdc70-9888-11d3-8edc-00c04f6109cf),
225 pointer_default(unique),
226 local
228 interface IWMStatusCallback : IUnknown
230 HRESULT OnStatus(
231 [in] WMT_STATUS Status,
232 [in] HRESULT hr,
233 [in] WMT_ATTR_DATATYPE dwType,
234 [in] BYTE *pValue,
235 [in] void *pvContext);
239 object,
240 uuid(96406bd8-2b2b-11d3-b36b-00c04f6108ff),
241 pointer_default(unique),
242 local
244 interface IWMReaderCallback : IWMStatusCallback
246 HRESULT OnSample(
247 [in] DWORD dwOutputNum,
248 [in] QWORD cnsSampleTime,
249 [in] QWORD cnsSampleDuration,
250 [in] DWORD dwFlags,
251 [in] INSSBuffer *pSample,
252 [in] void *pvContext);
256 object,
257 uuid(96406Bdd-2b2b-11d3-b36b-00c04f6108ff),
258 pointer_default(unique),
259 local
261 interface IWMStreamList : IUnknown
263 HRESULT GetStreams(
264 [out, size_is(*pcStreams)] WORD *pwStreamNumArray,
265 [in, out] WORD *pcStreams);
267 HRESULT AddStream([in] WORD wStreamNum);
268 HRESULT RemoveStream([in] WORD wStreamNum);
272 object,
273 uuid(96406Bde-2b2b-11d3-b36b-00c04f6108ff),
274 pointer_default(unique),
275 local
277 interface IWMMutualExclusion : IWMStreamList
279 HRESULT GetType([out] GUID *pguidType);
280 HRESULT SetType([in] REFGUID guidType);
284 object,
285 uuid(ad694af1-f8d9-42f8-bc47-70311b0c4f9e),
286 pointer_default(unique),
287 local
289 interface IWMBandwidthSharing : IWMStreamList
291 HRESULT GetType([out] GUID *guid);
292 HRESULT SetType([in] REFGUID guid);
294 HRESULT GetBandwidth(
295 [out] DWORD *bitrate,
296 [out] DWORD *buffer);
298 HRESULT SetBandwidth(
299 [in] DWORD bitrate,
300 [in] DWORD buffer);
304 object,
305 uuid(8c1c6090-f9a8-4748-8ec3-dd1108ba1e77),
306 pointer_default(unique),
307 local
309 interface IWMStreamPrioritization : IUnknown
311 HRESULT GetPriorityRecords(
312 [out] WM_STREAM_PRIORITY_RECORD *array,
313 [in, out] WORD *records);
315 HRESULT SetPriorityRecords(
316 [in] WM_STREAM_PRIORITY_RECORD *array,
317 [in] WORD records);
321 object,
322 uuid(96406Bdc-2b2b-11d3-b36b-00c04f6108ff),
323 pointer_default(unique),
324 local
326 interface IWMStreamConfig : IUnknown
328 HRESULT GetStreamType([out] GUID *pguidStreamType);
329 HRESULT GetStreamNumber([out] WORD *pwStreamNum);
330 HRESULT SetStreamNumber([in] WORD wStreamNum);
332 HRESULT GetStreamName(
333 [out, size_is(*pcchStreamName)] WCHAR *pwszStreamName,
334 [in, out] WORD *pcchStreamName);
336 HRESULT SetStreamName([in] LPCWSTR_WMSDK_TYPE_SAFE pwszStreamName);
338 HRESULT GetConnectionName(
339 [out, size_is(*pcchInputName)] WCHAR *pwszInputName,
340 [in, out] WORD *pcchInputName);
342 HRESULT SetConnectionName([in] LPCWSTR_WMSDK_TYPE_SAFE pwszInputName);
343 HRESULT GetBitrate([out] DWORD *pdwBitrate);
344 HRESULT SetBitrate([in] DWORD pdwBitrate);
345 HRESULT GetBufferWindow([out] DWORD *pmsBufferWindow);
346 HRESULT SetBufferWindow([in] DWORD msBufferWindow);
350 object,
351 uuid(96406bdb-2b2b-11d3-b36b-00c04f6108ff),
352 pointer_default(unique),
353 local
355 interface IWMProfile : IUnknown
357 HRESULT GetVersion(
358 [out] WMT_VERSION *pdwVersion);
360 HRESULT GetName(
361 [out, size_is(*pcchName)] WCHAR *pwszName,
362 [in, out] DWORD *pcchName);
364 HRESULT SetName(
365 [in] const WCHAR *pwszName);
367 HRESULT GetDescription(
368 [out, size_is(*pcchDescription)] WCHAR *pwszDescription,
369 [in, out] DWORD *pcchDescription);
371 HRESULT SetDescription(
372 [in] const WCHAR *pwszDescription);
374 HRESULT GetStreamCount(
375 [out] DWORD *pcStreams);
377 HRESULT GetStream(
378 [in] DWORD dwStreamIndex,
379 [out] IWMStreamConfig **ppConfig);
381 HRESULT GetStreamByNumber(
382 [in] WORD wStreamNum,
383 [out] IWMStreamConfig **ppConfig);
385 HRESULT RemoveStream(
386 [in] IWMStreamConfig *pConfig);
388 HRESULT RemoveStreamByNumber(
389 [in] WORD wStreamNum);
391 HRESULT AddStream(
392 [in] IWMStreamConfig *pConfig);
394 HRESULT ReconfigStream(
395 [in] IWMStreamConfig *pConfig);
397 HRESULT CreateNewStream(
398 [in] REFGUID guidStreamType,
399 [out] IWMStreamConfig **ppConfig);
401 HRESULT GetMutualExclusionCount(
402 [out] DWORD *pcME);
404 HRESULT GetMutualExclusion(
405 [in] DWORD dwMEIndex,
406 [out] IWMMutualExclusion **ppME);
408 HRESULT RemoveMutualExclusion(
409 [in] IWMMutualExclusion *pME);
411 HRESULT AddMutualExclusion(
412 [in] IWMMutualExclusion *pME);
414 HRESULT CreateNewMutualExclusion(
415 [out] IWMMutualExclusion **ppME);
419 object,
420 uuid(07e72d33-d94e-4be7-8843-60ae5ff7e5f5),
421 pointer_default(unique),
422 local
424 interface IWMProfile2 : IWMProfile
426 HRESULT GetProfileID([out] GUID *guid);
430 object,
431 uuid(00ef96cc-a461-4546-8bcd-c9a28f0e06f5),
432 pointer_default(unique),
433 local
435 interface IWMProfile3 : IWMProfile2
437 HRESULT GetStorageFormat([out] WMT_STORAGE_FORMAT *storage);
438 HRESULT SetStorageFormat([in] WMT_STORAGE_FORMAT storage);
440 HRESULT GetBandwidthSharingCount([out] DWORD *count);
442 HRESULT GetBandwidthSharing(
443 [in] DWORD index,
444 [out] IWMBandwidthSharing **bandwidth);
446 HRESULT RemoveBandwidthSharing([in] IWMBandwidthSharing *bandwidth);
448 HRESULT AddBandwidthSharing([in] IWMBandwidthSharing *bandwidth);
450 HRESULT CreateNewBandwidthSharing([out] IWMBandwidthSharing **bandwidth);
452 HRESULT GetStreamPrioritization([out] IWMStreamPrioritization **stream);
454 HRESULT SetStreamPrioritization([in] IWMStreamPrioritization *stream);
456 HRESULT RemoveStreamPrioritization();
458 HRESULT CreateNewStreamPrioritization([out] IWMStreamPrioritization **stream);
460 HRESULT GetExpectedPacketCount(
461 [in] QWORD duration,
462 [out] QWORD *packets);
466 object,
467 uuid(d16679f2-6ca0-472d-8d31-2f5d55aee155),
468 pointer_default(unique),
469 local
471 interface IWMProfileManager : IUnknown
473 HRESULT CreateEmptyProfile(
474 [in] WMT_VERSION dwVersion,
475 [out] IWMProfile **ppProfile);
477 HRESULT LoadProfileByID(
478 [in] REFGUID guidProfile,
479 [out] IWMProfile **ppProfile);
481 HRESULT LoadProfileByData(
482 [in] const WCHAR *pwszProfile,
483 [out] IWMProfile **ppProfile);
485 HRESULT SaveProfile(
486 [in] IWMProfile *pIWMProfile,
487 [in] WCHAR *pwszProfile,
488 [in, out] DWORD *pdwLength);
490 HRESULT GetSystemProfileCount(
491 [out] DWORD *pcProfiles);
493 HRESULT LoadSystemProfile(
494 [in] DWORD dwProfileIndex,
495 [out] IWMProfile **ppProfile);
499 object,
500 uuid(7a924e51-73c1-494d-8019-23d37ed9b89a),
501 pointer_default(unique),
502 local
504 interface IWMProfileManager2 : IWMProfileManager
506 HRESULT GetSystemProfileVersion(WMT_VERSION *version);
507 HRESULT SetSystemProfileVersion(WMT_VERSION version);
510 cpp_quote("HRESULT WINAPI WMCreateProfileManager(IWMProfileManager**);")
513 object,
514 uuid(96406bce-2b2b-11d3-b36b-00c04f6108ff),
515 pointer_default(unique),
516 local
518 interface IWMMediaProps : IUnknown
520 HRESULT GetType(
521 [out] GUID *pguidType);
523 HRESULT GetMediaType(
524 [out] WM_MEDIA_TYPE *pType,
525 [in, out] DWORD *pcbType);
527 HRESULT SetMediaType(
528 [in] WM_MEDIA_TYPE *pType);
532 object,
533 uuid(96406bd7-2b2b-11d3-b36b-00c04f6108ff),
534 pointer_default(unique),
535 local
537 interface IWMOutputMediaProps : IWMMediaProps
539 HRESULT GetStreamGroupName(
540 [out, size_is(*pcchName)] WCHAR *pwszName,
541 [in, out] WORD *pcchName);
543 HRESULT GetConnectionName(
544 [out, size_is(*pcchName)] WCHAR *pwszName,
545 [in, out] WORD *pcchName);
549 object,
550 uuid(96406bd9-2b2b-11d3-b36b-00c04f6108ff),
551 pointer_default(unique),
552 local
554 interface IWMMetadataEditor : IUnknown
556 HRESULT Open(
557 [in] const WCHAR *pwszFilename);
559 HRESULT Close();
561 HRESULT Flush();
565 object,
566 uuid(96406bd6-2b2b-11d3-b36b-00c04f6108ff),
567 pointer_default(unique),
568 local
570 interface IWMReader : IUnknown
572 HRESULT Open(
573 [in] const WCHAR *pwszURL,
574 [in] IWMReaderCallback *pCallback,
575 [in] void *pvContext);
577 HRESULT Close();
579 HRESULT GetOutputCount(
580 [out] DWORD *pcOutputs);
582 HRESULT GetOutputProps(
583 [in] DWORD dwOutputNum,
584 [out] IWMOutputMediaProps **ppOutput);
586 HRESULT SetOutputProps(
587 [in] DWORD dwOutputNum,
588 [in] IWMOutputMediaProps *pOutput);
590 HRESULT GetOutputFormatCount(
591 [in] DWORD dwOutputNumber,
592 [out] DWORD *pcFormats);
594 HRESULT GetOutputFormat(
595 [in] DWORD dwOutputNumber,
596 [in] DWORD dwFormatNumber,
597 [out] IWMOutputMediaProps** ppProps);
599 HRESULT Start(
600 [in] QWORD cnsStart,
601 [in] QWORD cnsDuration,
602 [in] float fRate,
603 [in] void *pvContext);
605 HRESULT Stop();
607 HRESULT Pause();
609 HRESULT Resume();
613 object,
614 uuid(e5b7ca9a-0f1c-4f66-9002-74ec50d8b304),
615 pointer_default(unique),
616 local
618 interface IWMPlayerHook : IUnknown
620 HRESULT PreDecode();
624 object,
625 uuid(96406bea-2b2b-11d3-b36b-00c04f6108ff),
626 pointer_default(unique),
627 local
629 interface IWMReaderAdvanced : IUnknown
631 HRESULT SetUserProvidedClock(
632 [in] BOOL fUserClock);
634 HRESULT GetUserProvidedClock(
635 [out] BOOL *pfUserClock);
637 HRESULT DeliverTime(
638 [in] QWORD cnsTime);
640 HRESULT SetManualStreamSelection(
641 [in] BOOL fSelection);
643 HRESULT GetManualStreamSelection(
644 [out] BOOL *pfSelection);
646 HRESULT SetStreamsSelected(
647 [in] WORD cStreamCount,
648 [in] WORD *pwStreamNumbers,
649 [in] WMT_STREAM_SELECTION *pSelections);
651 HRESULT GetStreamSelected(
652 [in] WORD wStreamNum,
653 [out] WMT_STREAM_SELECTION *pSelection);
655 HRESULT SetReceiveSelectionCallbacks(
656 [in] BOOL fGetCallbacks);
658 HRESULT GetReceiveSelectionCallbacks(
659 [out] BOOL *pfGetCallbacks);
661 HRESULT SetReceiveStreamSamples(
662 [in] WORD wStreamNum,
663 [in] BOOL fReceiveStreamSamples);
665 HRESULT GetReceiveStreamSamples(
666 [in] WORD wStreamNum,
667 [out] BOOL *pfReceiveStreamSamples);
669 HRESULT SetAllocateForOutput(
670 [in] DWORD dwOutputNum,
671 [in] BOOL fAllocate);
673 HRESULT GetAllocateForOutput(
674 [in] DWORD dwOutputNum,
675 [out] BOOL *pfAllocate);
677 HRESULT SetAllocateForStream(
678 [in] WORD wStreamNum,
679 [in] BOOL fAllocate);
681 HRESULT GetAllocateForStream(
682 [in] WORD dwStreamNum,
683 [out] BOOL *pfAllocate);
685 HRESULT GetStatistics(
686 [in, out] WM_READER_STATISTICS *pStatistics);
688 HRESULT SetClientInfo(
689 [in] WM_READER_CLIENTINFO *pClientInfo);
691 HRESULT GetMaxOutputSampleSize(
692 [in] DWORD dwOutput,
693 [out] DWORD *pcbMax);
695 HRESULT GetMaxStreamSampleSize(
696 [in] WORD wStream,
697 [out] DWORD *pcbMax);
699 HRESULT NotifyLateDelivery(
700 QWORD cnsLateness);
704 object,
705 uuid(ae14a945-b90c-4d0d-9127-80d665f7d73e),
706 pointer_default(unique),
707 local
709 interface IWMReaderAdvanced2 : IWMReaderAdvanced
711 HRESULT SetPlayMode(
712 [in] WMT_PLAY_MODE Mode);
714 HRESULT GetPlayMode(
715 [out] WMT_PLAY_MODE *pMode);
717 HRESULT GetBufferProgress(
718 [out] DWORD *pdwPercent,
719 [out] QWORD *pcnsBuffering);
721 HRESULT GetDownloadProgress(
722 [out] DWORD *pdwPercent,
723 [out] QWORD *pqwBytesDownloaded,
724 [out] QWORD *pcnsDownload);
726 HRESULT GetSaveAsProgress(
727 [out] DWORD *pdwPercent);
729 HRESULT SaveFileAs(
730 [in] const WCHAR *pwszFilename);
732 HRESULT GetProtocolName(
733 [out, size_is(*pcchProtocol)] WCHAR *pwszProtocol,
734 [in, out] DWORD *pcchProtocol);
736 HRESULT StartAtMarker(
737 [in] WORD wMarkerIndex,
738 [in] QWORD cnsDuration,
739 [in] float fRate,
740 [in] void *pvContext);
742 HRESULT GetOutputSetting(
743 [in] DWORD dwOutputNum,
744 [in] LPCWSTR pszName,
745 [out] WMT_ATTR_DATATYPE *pType,
746 [out, size_is(*pcbLength)] BYTE *pValue,
747 [in, out] WORD *pcbLength);
749 HRESULT SetOutputSetting(
750 [in] DWORD dwOutputNum,
751 [in] LPCWSTR pszName,
752 [in] WMT_ATTR_DATATYPE Type,
753 [in, size_is(cbLength)] const BYTE *pValue,
754 [in] WORD cbLength);
756 HRESULT Preroll(
757 [in] QWORD cnsStart,
758 [in] QWORD cnsDuration,
759 [in] float fRate);
761 HRESULT SetLogClientID(
762 [in] BOOL fLogClientID);
764 HRESULT GetLogClientID(
765 [out] BOOL *pfLogClientID);
767 HRESULT StopBuffering();
769 HRESULT OpenStream(
770 [in] IStream *pStream,
771 [in] IWMReaderCallback *pCallback,
772 [in] void *pvContext);
776 object,
777 uuid(5dc0674b-f04B-4a4e-9f2a-b1afde2c8100),
778 pointer_default(unique),
779 local
781 interface IWMReaderAdvanced3 : IWMReaderAdvanced2
783 HRESULT StopNetStreaming();
785 HRESULT StartAtPosition(
786 [in] WORD wStreamNum,
787 [in] void *pvOffsetStart,
788 [in] void *pvDuration,
789 [in] WMT_OFFSET_FORMAT dwOffsetFormat,
790 [in] float fRate,
791 [in] void *pvContext);
795 object,
796 uuid(945a76a2-12ae-4d48-bd3c-cd1d90399b85),
797 pointer_default(unique),
798 local
800 interface IWMReaderAdvanced4 : IWMReaderAdvanced3
802 HRESULT GetLanguageCount(
803 [in] DWORD dwOutputNum,
804 [out] WORD *pwLanguageCount);
806 HRESULT GetLanguage(
807 [in] DWORD dwOutputNum,
808 [in] WORD wLanguage,
809 [out, size_is(*pcchLanguageStringLength)] WCHAR *pwszLanguageString,
810 [in, out] WORD *pcchLanguageStringLength);
812 HRESULT GetMaxSpeedFactor(
813 [out] double *pdblFactor);
815 HRESULT IsUsingFastCache(
816 [out] BOOL *pfUsingFastCache);
818 HRESULT AddLogParam(
819 [in] LPCWSTR wszNameSpace,
820 [in] LPCWSTR wszName,
821 [in] LPCWSTR wszValue);
823 HRESULT SendLogParams();
825 HRESULT CanSaveFileAs(
826 [out] BOOL *pfCanSave);
828 HRESULT CancelSaveFileAs();
830 HRESULT GetURL(
831 [out, size_is(*pcchURL)] WCHAR *pwszURL,
832 [in, out] DWORD *pcchURL);
836 object,
837 uuid(24c44db0-55d1-49ae-a5cc-f13815e36363),
838 pointer_default(unique),
839 local
841 interface IWMReaderAdvanced5 : IWMReaderAdvanced4
843 HRESULT SetPlayerHook(
844 [in] DWORD dwOutputNum,
845 [in] IWMPlayerHook *pHook);
849 object,
850 uuid(18a2e7f8-428f-4acd-8a00-e64639bc93de),
851 pointer_default(unique),
852 local
854 interface IWMReaderAdvanced6 : IWMReaderAdvanced5
856 HRESULT SetProtectStreamSamples(
857 [in, size_is(cbCertificate)] BYTE *pbCertificate,
858 [in] DWORD cbCertificate,
859 [in] DWORD dwCertificateType,
860 [in] DWORD dwFlags,
861 [out, size_is(*pcbInitializationVector)] BYTE *pbInitializationVector,
862 [in, out] DWORD *pcbInitializationVector);
866 object,
867 uuid(9397f121-7705-4dc9-b049-98b698188414),
868 pointer_default( unique ),
869 local
871 interface IWMSyncReader : IUnknown
873 HRESULT Open(
874 [in] const WCHAR *pwszFilename);
876 HRESULT Close();
878 HRESULT SetRange(
879 [in] QWORD cnsStartTime,
880 [in] LONGLONG cnsDuration);
882 HRESULT SetRangeByFrame(
883 [in] WORD wStreamNum,
884 [in] QWORD qwFrameNumber,
885 [in] LONGLONG cFramesToRead);
887 HRESULT GetNextSample(
888 [in] WORD wStreamNum,
889 [out] INSSBuffer **ppSample,
890 [out] QWORD *pcnsSampleTime,
891 [out] QWORD *pcnsDuration,
892 [out] DWORD *pdwFlags,
893 [out] DWORD *pdwOutputNum,
894 [out] WORD *pwStreamNum);
896 HRESULT SetStreamsSelected(
897 [in] WORD cStreamCount,
898 [in] WORD *pwStreamNumbers,
899 [in] WMT_STREAM_SELECTION *pSelections);
901 HRESULT GetStreamSelected(
902 [in] WORD wStreamNum,
903 [out] WMT_STREAM_SELECTION *pSelection);
905 HRESULT SetReadStreamSamples(
906 [in] WORD wStreamNum,
907 [in] BOOL fCompressed);
909 HRESULT GetReadStreamSamples(
910 [in] WORD wStreamNum,
911 [out] BOOL *pfCompressed);
913 HRESULT GetOutputSetting(
914 [in] DWORD dwOutputNum,
915 [in] LPCWSTR pszName,
916 [out] WMT_ATTR_DATATYPE *pType,
917 [out, size_is(*pcbLength)] BYTE *pValue,
918 [in, out] WORD *pcbLength);
920 HRESULT SetOutputSetting(
921 [in] DWORD dwOutputNum,
922 [in] LPCWSTR pszName,
923 [in] WMT_ATTR_DATATYPE Type,
924 [in, size_is(cbLength)] const BYTE *pValue,
925 [in] WORD cbLength);
927 HRESULT GetOutputCount(
928 [out] DWORD *pcOutputs);
930 HRESULT GetOutputProps(
931 [in] DWORD dwOutputNum,
932 [out] IWMOutputMediaProps **ppOutput);
934 HRESULT SetOutputProps(
935 [in] DWORD dwOutputNum,
936 [in] IWMOutputMediaProps *pOutput);
938 HRESULT GetOutputFormatCount(
939 [in] DWORD dwOutputNum,
940 [out] DWORD *pcFormats);
942 HRESULT GetOutputFormat(
943 [in] DWORD dwOutputNum,
944 [in] DWORD dwFormatNum,
945 [out] IWMOutputMediaProps **ppProps);
947 HRESULT GetOutputNumberForStream(
948 [in] WORD wStreamNum,
949 [out] DWORD *pdwOutputNum);
951 HRESULT GetStreamNumberForOutput(
952 [in] DWORD dwOutputNum,
953 [out] WORD *pwStreamNum);
955 HRESULT GetMaxOutputSampleSize(
956 [in] DWORD dwOutput,
957 [out] DWORD *pcbMax);
959 HRESULT GetMaxStreamSampleSize(
960 [in] WORD wStream,
961 [out] DWORD *pcbMax);
963 HRESULT OpenStream(
964 [in] IStream *pStream);
968 object,
969 uuid(96406bd5-2b2b-11d3-b36b-00c04f6108ff),
970 pointer_default(unique),
971 local
973 interface IWMInputMediaProps : IWMMediaProps
975 HRESULT GetConnectionName(
976 [out, size_is(*pcchName)] WCHAR *pwszName,
977 [in, out] WORD *pcchName);
979 HRESULT GetGroupName(
980 [out, size_is(*pcchName)] WCHAR *pwszName,
981 [in, out] WORD *pcchName);
985 object,
986 uuid(96406be4-2b2b-11d3-b36b-00c04f6108ff),
987 pointer_default(unique),
988 local
990 interface IWMWriterSink : IUnknown
992 HRESULT OnHeader(
993 [in] INSSBuffer *pHeader);
995 HRESULT IsRealTime(
996 [out] BOOL *pfRealTime);
998 HRESULT AllocateDataUnit(
999 [in] DWORD cbDataUnit,
1000 [out] INSSBuffer **ppDataUnit);
1002 HRESULT OnDataUnit(
1003 [in] INSSBuffer *pDataUnit);
1005 HRESULT OnEndWriting();
1009 object,
1010 uuid(96406bd4-2b2b-11d3-b36b-00c04f6108ff),
1011 pointer_default(unique),
1012 local
1014 interface IWMWriter : IUnknown
1016 HRESULT SetProfileByID(
1017 [in] REFGUID guidProfile);
1019 HRESULT SetProfile(
1020 [in] IWMProfile *pProfile);
1022 HRESULT SetOutputFilename(
1023 [in] const WCHAR *pwszFilename);
1025 HRESULT GetInputCount(
1026 [out] DWORD *pcInputs);
1028 HRESULT GetInputProps(
1029 [in] DWORD dwInputNum,
1030 [out] IWMInputMediaProps **ppInput);
1032 HRESULT SetInputProps(
1033 [in] DWORD dwInputNum,
1034 [in] IWMInputMediaProps *pInput);
1036 HRESULT GetInputFormatCount(
1037 [in] DWORD dwInputNumber,
1038 [out] DWORD *pcFormats);
1040 HRESULT GetInputFormat(
1041 [in] DWORD dwInputNumber,
1042 [in] DWORD dwFormatNumber,
1043 [out] IWMInputMediaProps **pProps);
1045 HRESULT BeginWriting();
1047 HRESULT EndWriting();
1049 HRESULT AllocateSample(
1050 [in] DWORD dwSampleSize,
1051 [out] INSSBuffer **ppSample);
1053 HRESULT WriteSample(
1054 [in] DWORD dwInputNum,
1055 [in] QWORD cnsSampleTime,
1056 [in] DWORD dwFlags,
1057 [in] INSSBuffer *pSample);
1059 HRESULT Flush();
1063 object,
1064 uuid(96406be3-2b2b-11d3-b36b-00C04f6108ff),
1065 pointer_default(unique),
1066 local
1068 interface IWMWriterAdvanced : IUnknown
1070 HRESULT GetSinkCount(
1071 [out] DWORD *pcSinks);
1073 HRESULT GetSink(
1074 [in] DWORD dwSinkNum,
1075 [out] IWMWriterSink **ppSink);
1077 HRESULT AddSink(
1078 [in] IWMWriterSink *pSink);
1080 HRESULT RemoveSink(
1081 [in] IWMWriterSink *pSink);
1083 HRESULT WriteStreamSample(
1084 [in] WORD wStreamNum,
1085 [in] QWORD cnsSampleTime,
1086 [in] DWORD msSampleSendTime,
1087 [in] QWORD cnsSampleDuration,
1088 [in] DWORD dwFlags,
1089 [in] INSSBuffer *pSample);
1091 HRESULT SetLiveSource(
1092 BOOL fIsLiveSource);
1094 HRESULT IsRealTime(
1095 [out] BOOL *pfRealTime);
1097 HRESULT GetWriterTime(
1098 [out] QWORD *pCurrentTime);
1100 HRESULT GetStatistics(
1101 [in] WORD wStreamNum,
1102 [out] WM_WRITER_STATISTICS *pStats);
1104 HRESULT SetSyncTolerance(
1105 [in] DWORD msWindow);
1107 HRESULT GetSyncTolerance(
1108 [out] DWORD *pmsWindow);
1112 object,
1113 uuid(962dc1ec-c046-4db8-9cc7-26ceae500817),
1114 pointer_default(unique),
1115 local
1117 interface IWMWriterAdvanced2 : IWMWriterAdvanced
1119 HRESULT GetInputSetting(
1120 [in] DWORD dwInputNum,
1121 [in] LPCWSTR pszName,
1122 [out] WMT_ATTR_DATATYPE *pType,
1123 [out, size_is(*pcbLength)] BYTE *pValue,
1124 [in, out] WORD *pcbLength);
1126 HRESULT SetInputSetting(
1127 [in] DWORD dwInputNum,
1128 [in] LPCWSTR pszName,
1129 [in] WMT_ATTR_DATATYPE Type,
1130 [in, size_is(cbLength)] const BYTE *pValue,
1131 [in] WORD cbLength);
1135 object,
1136 uuid(2cd6492d-7c37-4e76-9d3b-59261183a22e),
1137 pointer_default(unique),
1138 local
1140 interface IWMWriterAdvanced3 : IWMWriterAdvanced2
1142 HRESULT GetStatisticsEx(
1143 [in] WORD wStreamNum,
1144 [out] WM_WRITER_STATISTICS_EX *pStats);
1146 HRESULT SetNonBlocking();
1150 object,
1151 uuid(96406bda-2b2b-11d3-b36b-00c04f6108ff),
1152 pointer_default(unique),
1153 local
1155 interface IWMHeaderInfo : IUnknown
1157 HRESULT GetAttributeCount(
1158 [in] WORD stream_num,
1159 [out] WORD *attributes );
1161 HRESULT GetAttributeByIndex(
1162 [in] WORD index,
1163 [in, out] WORD *stream_num,
1164 [out, size_is( *name_len )] WCHAR *name,
1165 [in, out] WORD *name_len,
1166 [out] WMT_ATTR_DATATYPE *type,
1167 [out, size_is( *length )] BYTE *value,
1168 [in, out] WORD *length );
1170 HRESULT GetAttributeByName(
1171 [in, out] WORD *stream_num,
1172 [in] LPCWSTR name,
1173 [out] WMT_ATTR_DATATYPE *type,
1174 [out, size_is( *length )] BYTE *value,
1175 [in, out] WORD *length );
1177 HRESULT SetAttribute(
1178 [in] WORD stream_num,
1179 [in] LPCWSTR name,
1180 [in] WMT_ATTR_DATATYPE type,
1181 [in, size_is( length )] const BYTE *value,
1182 [in] WORD length );
1184 HRESULT GetMarkerCount(
1185 [out] WORD *markers );
1187 HRESULT GetMarker(
1188 [in] WORD index,
1189 [out, size_is( *marker_len )] WCHAR *marker_name,
1190 [in, out] WORD *marker_len,
1191 [out] QWORD *marker_time );
1193 HRESULT AddMarker(
1194 [in] LPCWSTR_WMSDK_TYPE_SAFE marker_name,
1195 [in] QWORD marker_time );
1197 HRESULT RemoveMarker(
1198 [in] WORD index );
1200 HRESULT GetScriptCount(
1201 [out] WORD *scripts );
1203 HRESULT GetScript(
1204 [in] WORD index,
1205 [out, size_is( *type_len )] WCHAR *type,
1206 [in, out] WORD *type_len,
1207 [out, size_is( *command_len )] WCHAR *command,
1208 [in, out] WORD *command_len,
1209 [out] QWORD *script_time );
1211 HRESULT AddScript(
1212 [in] LPCWSTR_WMSDK_TYPE_SAFE type,
1213 [in] LPCWSTR_WMSDK_TYPE_SAFE command,
1214 [in] QWORD script_time );
1216 HRESULT RemoveScript(
1217 [in] WORD index );
1221 object,
1222 uuid(15cf9781-454e-482e-b393-85fae487a810),
1223 pointer_default(unique),
1224 local
1226 interface IWMHeaderInfo2 : IWMHeaderInfo
1228 HRESULT GetCodecInfoCount(
1229 [out] DWORD *codec_infos );
1231 HRESULT GetCodecInfo(
1232 [in] DWORD index,
1233 [in, out] WORD *name_len,
1234 [out, size_is( *name_len )] WCHAR *name,
1235 [in, out] WORD *description_len,
1236 [out, size_is( *description_len )] WCHAR *description,
1237 [out] WMT_CODEC_INFO_TYPE *codec_type,
1238 [in, out] WORD *codec_info_cnt,
1239 [out, size_is( *codec_info_cnt )] BYTE *codec_info );
1243 object,
1244 uuid(15cc68e3-27cc-4ecd-b222-3f5d02d80bd5),
1245 pointer_default(unique),
1246 local
1248 interface IWMHeaderInfo3 : IWMHeaderInfo2
1250 HRESULT GetAttributeCountEx(
1251 [in] WORD stream_num,
1252 [out] WORD *attributes );
1254 HRESULT GetAttributeIndices(
1255 [in] WORD stream_num,
1256 [in] LPCWSTR name,
1257 [in] WORD *lang_index,
1258 [out, size_is( *count )] WORD *indices,
1259 [in, out] WORD *count );
1261 HRESULT GetAttributeByIndexEx(
1262 [in] WORD stream_num,
1263 [in] WORD index,
1264 [out, size_is( *name_len )] LPWSTR name,
1265 [in, out] WORD *name_len,
1266 [out] WMT_ATTR_DATATYPE *type,
1267 [out] WORD *lang_index,
1268 [out, size_is( *data_len )] BYTE *value,
1269 [in, out] DWORD *data_len );
1271 HRESULT ModifyAttribute(
1272 [in] WORD stream_num,
1273 [in] WORD index,
1274 [in] WMT_ATTR_DATATYPE type,
1275 [in] WORD lang_index,
1276 [in, size_is( length )] const BYTE *value,
1277 [in] DWORD length );
1279 HRESULT AddAttribute(
1280 [in] WORD stream_num,
1281 [in] LPCWSTR name,
1282 [out] WORD *index,
1283 [in] WMT_ATTR_DATATYPE type,
1284 [in] WORD lang_index,
1285 [in, size_is( length )] const BYTE *value,
1286 [in] DWORD length );
1288 HRESULT DeleteAttribute(
1289 [in] WORD stream_num,
1290 [in] WORD index );
1292 HRESULT AddCodecInfo(
1293 [in] LPCWSTR_WMSDK_TYPE_SAFE name,
1294 [in] LPCWSTR_WMSDK_TYPE_SAFE description,
1295 [in] WMT_CODEC_INFO_TYPE codec_type,
1296 [in] WORD codec_info_cnt,
1297 [in, size_is( codec_info_cnt )] BYTE *codec_info );
1301 object,
1302 uuid(96406bec-2b2b-11d3-b36b-00c04f6108ff),
1303 pointer_default(unique),
1304 local
1306 interface IWMReaderNetworkConfig : IUnknown
1308 HRESULT GetBufferingTime([out] QWORD *buffering_time);
1309 HRESULT SetBufferingTime([in] QWORD buffering_time);
1311 HRESULT GetUDPPortRanges(
1312 [out, size_is( *ranges )] WM_PORT_NUMBER_RANGE *array,
1313 [in, out] DWORD *ranges);
1315 HRESULT SetUDPPortRanges(
1316 [in, size_is( ranges )] WM_PORT_NUMBER_RANGE *array,
1317 [in] DWORD ranges);
1319 HRESULT GetProxySettings(
1320 [in] const WCHAR *protocol,
1321 [out] WMT_PROXY_SETTINGS *proxy);
1323 HRESULT SetProxySettings(
1324 [in] LPCWSTR protocol,
1325 [in] WMT_PROXY_SETTINGS proxy);
1327 HRESULT GetProxyHostName(
1328 [in] const WCHAR *protocol,
1329 [out, size_is( *size )] WCHAR *hostname,
1330 [in, out] DWORD *size);
1332 HRESULT SetProxyHostName(
1333 [in] const WCHAR *protocol,
1334 [in] const WCHAR *hostname);
1336 HRESULT GetProxyPort(
1337 [in] const WCHAR *protocol,
1338 [out] DWORD *port);
1340 HRESULT SetProxyPort(
1341 [in] const WCHAR *protocol,
1342 [in] DWORD port);
1344 HRESULT GetProxyExceptionList(
1345 [in] const WCHAR *protocol,
1346 [out, size_is( *count )] WCHAR *exceptions,
1347 [in, out] DWORD *count);
1349 HRESULT SetProxyExceptionList(
1350 [in] const WCHAR *protocol,
1351 [in] const WCHAR *exceptions);
1353 HRESULT GetProxyBypassForLocal(
1354 [in] const WCHAR *protocol,
1355 [out] BOOL *bypass);
1357 HRESULT SetProxyBypassForLocal(
1358 [in] const WCHAR *protocol,
1359 [in] BOOL bypass);
1361 HRESULT GetForceRerunAutoProxyDetection([out] BOOL *detection);
1362 HRESULT SetForceRerunAutoProxyDetection([in] BOOL detection);
1364 HRESULT GetEnableMulticast([out] BOOL *multicast);
1365 HRESULT SetEnableMulticast([in] BOOL multicast);
1367 HRESULT GetEnableHTTP([out] BOOL *enable);
1368 HRESULT SetEnableHTTP([in] BOOL enable);
1370 HRESULT GetEnableUDP([out] BOOL *enable);
1371 HRESULT SetEnableUDP([in] BOOL enable);
1373 HRESULT GetEnableTCP([out] BOOL *enable);
1374 HRESULT SetEnableTCP([in] BOOL enable);
1376 HRESULT ResetProtocolRollover();
1378 HRESULT GetConnectionBandwidth([out] DWORD *bandwidth);
1379 HRESULT SetConnectionBandwidth([in] DWORD bandwidth);
1381 HRESULT GetNumProtocolsSupported([out] DWORD *protocols);
1383 HRESULT GetSupportedProtocolName(
1384 [in] DWORD protocol_num,
1385 [out, size_is( *size )] WCHAR *protocol,
1386 [in, out] DWORD *size);
1388 HRESULT AddLoggingUrl([in] const WCHAR *url);
1390 HRESULT GetLoggingUrl(
1391 [in] DWORD index,
1392 [out, size_is( *size )] WCHAR *url,
1393 [in, out] DWORD *size);
1395 HRESULT GetLoggingUrlCount([out] DWORD *count);
1397 HRESULT ResetLoggingUrlList();
1401 object,
1402 uuid(d979a853-042b-4050-8387-c939db22013f),
1403 pointer_default(unique),
1404 local
1406 interface IWMReaderNetworkConfig2 : IWMReaderNetworkConfig
1408 HRESULT GetEnableContentCaching([out] BOOL *enable);
1409 HRESULT SetEnableContentCaching([in] BOOL enable);
1411 HRESULT GetEnableFastCache([out] BOOL *enable);
1412 HRESULT SetEnableFastCache([in] BOOL enable);
1414 HRESULT GetAcceleratedStreamingDuration([out] QWORD *duration);
1415 HRESULT SetAcceleratedStreamingDuration([in] QWORD duration);
1417 HRESULT GetAutoReconnectLimit([out] DWORD *limit);
1418 HRESULT SetAutoReconnectLimit([in] DWORD limit);
1420 HRESULT GetEnableResends([out] BOOL *enable);
1421 HRESULT SetEnableResends([in] BOOL enable);
1423 HRESULT GetEnableThinning([out] BOOL *enable);
1424 HRESULT SetEnableThinning([in] BOOL enable);
1426 HRESULT GetMaxNetPacketSize([out] DWORD *packet_size);
1430 object,
1431 uuid(96406bed-2b2b-11d3-b36b-00c04f6108ff),
1432 pointer_default(unique),
1433 local
1436 interface IWMReaderStreamClock : IUnknown
1438 HRESULT GetTime([in] QWORD *now);
1440 HRESULT SetTimer([in] QWORD when,
1441 [in] void *param,
1442 [out] DWORD *id);
1444 HRESULT KillTimer([in] DWORD id);
1448 object,
1449 uuid(cdfb97ab-188f-40b3-b643-5b7903975c59),
1450 pointer_default(unique),
1451 local
1453 interface IWMPacketSize : IUnknown
1455 HRESULT GetMaxPacketSize([out] DWORD *size);
1456 HRESULT SetMaxPacketSize([in] DWORD size);
1460 object,
1461 uuid(8bfc2b9e-b646-4233-a877-1c6a079669dc),
1462 pointer_default(unique),
1463 local
1465 interface IWMPacketSize2 : IWMPacketSize
1467 HRESULT GetMinPacketSize([out] DWORD *size);
1468 HRESULT SetMinPacketSize([in] DWORD size);
1472 object,
1473 uuid(d2827540-3ee7-432c-b14c-dc17f085d3b3),
1474 pointer_default(unique),
1475 local
1477 interface IWMDRMReader : IUnknown
1479 HRESULT AcquireLicense([in] DWORD flags);
1480 HRESULT CancelLicenseAcquisition();
1482 HRESULT Individualize([in] DWORD flags);
1483 HRESULT CancelIndividualization();
1485 HRESULT MonitorLicenseAcquisition();
1486 HRESULT CancelMonitorLicenseAcquisition();
1488 HRESULT SetDRMProperty(
1489 [in] const WCHAR *name,
1490 [in] WMT_ATTR_DATATYPE type,
1491 [in, size_is( length )] const BYTE *value,
1492 [in] WORD length);
1494 HRESULT GetDRMProperty(
1495 [in] const WCHAR *name,
1496 [out] WMT_ATTR_DATATYPE *type,
1497 [out, size_is( *length )] BYTE *value,
1498 [in, out] WORD *length);
1502 object,
1503 uuid(befe7a75-9f1d-4075-b9d9-a3c37bda49a0),
1504 pointer_default(unique),
1505 local
1507 interface IWMDRMReader2 : IWMDRMReader
1509 HRESULT SetEvaluateOutputLevelLicenses([in] BOOL evaluate);
1510 HRESULT GetPlayOutputLevels(
1511 [out, size_is( *length )] DRM_PLAY_OPL *play,
1512 [in, out] DWORD *length,
1513 [out] DWORD *level);
1515 HRESULT GetCopyOutputLevels(
1516 [out, size_is( *length )] DRM_COPY_OPL *copy,
1517 [in, out] DWORD *length,
1518 [out] DWORD *level);
1520 HRESULT TryNextLicense();
1524 object,
1525 uuid(e08672de-f1e7-4ff4-a0a3-fc4b08e4caf8),
1526 pointer_default(unique),
1527 local
1529 interface IWMDRMReader3 : IWMDRMReader2
1531 HRESULT GetInclusionList(
1532 [out] GUID **guids,
1533 [out] DWORD *count);
1537 object,
1538 uuid(bddc4d08-944d-4d52-a612-46c3fda07dd4),
1539 pointer_default( unique ),
1540 local
1542 interface IWMReaderAccelerator : IUnknown
1544 HRESULT GetCodecInterface(
1545 [in] DWORD output,
1546 [in] REFIID riid,
1547 [out] void **codec);
1549 HRESULT Notify(
1550 [in] DWORD output,
1551 [in] WM_MEDIA_TYPE *subtype);
1555 object,
1556 uuid(f369e2f0-e081-4fe6-8450-b810b2f410d1),
1557 pointer_default(unique),
1558 local
1560 interface IWMReaderTimecode : IUnknown
1562 HRESULT GetTimecodeRangeCount(
1563 [in] WORD num,
1564 [out] WORD *count);
1566 HRESULT GetTimecodeRangeBounds(
1567 [in] WORD stream,
1568 [in] WORD range,
1569 [out] DWORD *start_timecode,
1570 [out] DWORD *end_timecode);
1574 object,
1575 uuid(fdbe5592-81a1-41ea-93bd-735cad1adc05),
1576 pointer_default(unique),
1577 local
1579 interface IWMReaderTypeNegotiation : IUnknown
1581 HRESULT TryOutputProps(
1582 [in] DWORD output,
1583 [in] IWMOutputMediaProps *props);
1587 object,
1588 uuid(df683f00-2d49-4d8e-92b7-fb19f6a0dc57),
1589 pointer_default(unique),
1590 local
1592 interface IWMLanguageList : IUnknown
1594 HRESULT GetLanguageCount(
1595 [out] WORD *count);
1597 HRESULT GetLanguageDetails(
1598 [in] WORD index,
1599 [out, size_is( *length )] WCHAR *language,
1600 [in, out] WORD *length);
1602 HRESULT AddLanguageByRFC1766String(
1603 [in] LPCWSTR_WMSDK_TYPE_SAFE language,
1604 [out] WORD *index);
1608 object,
1609 uuid(f28c0300-9baa-4477-a846-1744d9cbf533),
1610 pointer_default(unique),
1611 local
1613 interface IWMReaderPlaylistBurn : IUnknown
1615 HRESULT InitPlaylistBurn(
1616 [in] DWORD count,
1617 [in] LPCWSTR_WMSDK_TYPE_SAFE *filenames,
1618 [in] IWMStatusCallback *callback,
1619 [in] void *context);
1621 HRESULT GetInitResults(
1622 [in] DWORD count,
1623 [out] HRESULT *stat);
1625 HRESULT Cancel();
1627 HRESULT EndPlaylistBurn([in] HRESULT result);
1631 object,
1632 uuid(72995a79-5090-42a4-9c8c-d9d0b6d34be5),
1633 pointer_default(unique),
1634 local
1636 interface IWMPropertyVault : IUnknown
1638 HRESULT GetPropertyCount([in] DWORD *count);
1640 HRESULT GetPropertyByName(
1641 [in] const WCHAR *name,
1642 [out] WMT_ATTR_DATATYPE *type,
1643 [out, size_is( *size )] BYTE *value,
1644 [in, out] DWORD *size);
1646 HRESULT SetProperty(
1647 [in] const WCHAR *name,
1648 [in] WMT_ATTR_DATATYPE type,
1649 [in] BYTE *value,
1650 [in] DWORD size);
1652 HRESULT GetPropertyByIndex(
1653 [in] DWORD index,
1654 [out, size_is( *pdwNameLen )] WCHAR *name,
1655 [in, out] DWORD *length,
1656 [out] WMT_ATTR_DATATYPE *type,
1657 [out, size_is( *size )] BYTE *value,
1658 [in, out] DWORD *size);
1660 HRESULT CopyPropertiesFrom([in] IWMPropertyVault *vault);
1662 HRESULT Clear();
1666 object,
1667 uuid(fc54a285-38c4-45b5-aa23-85b9f7cb424b),
1668 pointer_default(unique),
1669 local
1671 interface IWMWriterPreprocess : IUnknown
1673 HRESULT GetMaxPreprocessingPasses(
1674 [in] DWORD input,
1675 [in] DWORD flags,
1676 [out] DWORD *passes);
1678 HRESULT SetNumPreprocessingPasses(
1679 [in] DWORD input,
1680 [in] DWORD flags,
1681 [in] DWORD passes);
1683 HRESULT BeginPreprocessingPass(
1684 [in] DWORD input,
1685 [in] DWORD flags);
1687 HRESULT PreprocessSample(
1688 [in] DWORD input,
1689 [in] QWORD sample_time,
1690 [in] DWORD flags,
1691 [in] INSSBuffer *sample);
1693 HRESULT EndPreprocessingPass(
1694 [in] DWORD input,
1695 [in] DWORD flags);
1698 cpp_quote("HRESULT WINAPI WMCreateWriter(IUnknown*,IWMWriter**);")
1699 cpp_quote("HRESULT WINAPI WMCreateReader(IUnknown*,DWORD,IWMReader**);")
1701 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_Base, 0x00000000,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1702 cpp_quote("EXTERN_GUID(WMMEDIATYPE_Video, 0x73646976,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1703 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_RGB1, 0xe436eb78,0x524f,0x11ce,0x9f,0x53,0x00,0x20,0xaf,0x0b,0xa7,0x70);")
1704 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_RGB4, 0xe436eb79,0x524f,0x11ce,0x9f,0x53,0x00,0x20,0xaf,0x0b,0xa7,0x70);")
1705 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_RGB8, 0xe436eb7a,0x524f,0x11ce,0x9f,0x53,0x00,0x20,0xaf,0x0b,0xa7,0x70);")
1706 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_RGB565, 0xe436eb7b,0x524f,0x11ce,0x9f,0x53,0x00,0x20,0xaf,0x0b,0xa7,0x70);")
1707 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_RGB555, 0xe436eb7c,0x524f,0x11ce,0x9f,0x53,0x00,0x20,0xaf,0x0b,0xa7,0x70);")
1708 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_RGB24, 0xe436eb7d,0x524f,0x11ce,0x9f,0x53,0x00,0x20,0xaf,0x0b,0xa7,0x70);")
1709 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_RGB32, 0xe436eb7e,0x524f,0x11ce,0x9f,0x53,0x00,0x20,0xaf,0x0b,0xa7,0x70);")
1710 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_I420, 0x30323449,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1711 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_IYUV, 0x56555949,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1712 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_YV12, 0x32315659,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1713 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_YUY2, 0x32595559,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1714 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_P422, 0x32323450,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1715 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_UYVY, 0x59565955,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1716 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_YVYU, 0x55595659,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1717 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_YVU9, 0x39555659,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1718 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_VIDEOIMAGE, 0x1d4a45f2,0xe5f6,0x4b44,0x83,0x88,0xf0,0xae,0x5c,0x0e,0x0c,0x37);")
1719 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_MP43, 0x3334504d,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1720 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_MP4S, 0x5334504d,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1721 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_M4S2, 0x3253344d,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1722 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_WMV1, 0x31564d57,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1723 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_WMV2, 0x32564d57,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1724 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_MSS1, 0x3153534d,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1725 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_MPEG2_VIDEO, 0xe06d8026,0xdb46,0x11cf,0xb4,0xd1,0x00,0x80,0x5f,0x6c,0xbb,0xea);")
1726 cpp_quote("EXTERN_GUID(WMMEDIATYPE_Audio, 0x73647561,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1727 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_PCM, 0x00000001,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1728 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_DRM, 0x00000009,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1729 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_WMAudioV9, 0x00000162,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1730 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_WMAudio_Lossless, 0x00000163,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1731 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_MSS2, 0x3253534d,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1732 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_WMSP1, 0x0000000a,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1733 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_WMSP2, 0x0000000b,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1734 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_WMV3, 0x33564d57,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1735 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_WMVP, 0x50564d57,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1736 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_WVP2, 0x32505657,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1737 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_WMVA, 0x41564d57,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1738 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_WVC1, 0x31435657,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")