shell32: Add folder rename icon.
[wine.git] / include / wmsdkidl.idl
blob5bc85465e1b28ec2b4a2317d726b9a3ccea89072
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(a970f41e-34de-4a98-b3ba-e4b3ca7528f0),
515 pointer_default(unique),
516 local
518 interface IWMCodecInfo : IUnknown
520 HRESULT GetCodecInfoCount(
521 [in] REFGUID guid,
522 [out] DWORD *count);
524 HRESULT GetCodecFormatCount(
525 [in] REFGUID guid,
526 [in] DWORD codecindex,
527 [out] DWORD *formatcount);
529 HRESULT GetCodecFormat(
530 [in] REFGUID guid,
531 [in] DWORD codecindex,
532 [in] DWORD formatindex,
533 [out] IWMStreamConfig **streamconfig);
537 object,
538 uuid(aa65e273-b686-4056-91ec-dd768d4df710),
539 pointer_default(unique),
540 local
542 interface IWMCodecInfo2 : IWMCodecInfo
544 HRESULT GetCodecName(
545 [in] REFGUID guid,
546 [in] DWORD codecindex,
547 [out, size_is(*namesize)] WCHAR *name,
548 [in, out] DWORD *namesize);
550 HRESULT GetCodecFormatDesc(
551 [in] REFGUID guid,
552 [in] DWORD codecindex,
553 [in] DWORD formatindex,
554 [out] IWMStreamConfig **streamconfig,
555 [out, size_is(*descrsize)] WCHAR *description,
556 [in, out] DWORD *descrsize);
560 object,
561 uuid(7e51f487-4d93-4f98-8ab4-27d0565adc51),
562 pointer_default(unique),
563 local
565 interface IWMCodecInfo3 : IWMCodecInfo2
567 HRESULT GetCodecFormatProp(
568 [in] REFGUID guid,
569 [in] DWORD codecindex,
570 [in] DWORD formatindex,
571 [in] const WCHAR *name,
572 [out] WMT_ATTR_DATATYPE *type,
573 [out, size_is(*size)] BYTE *value,
574 [in, out] DWORD *size);
576 HRESULT GetCodecProp(
577 [in] REFGUID guid,
578 [in] DWORD codecindex,
579 [in] const WCHAR *name,
580 [out] WMT_ATTR_DATATYPE *type,
581 [out, size_is(*size)] BYTE *value,
582 [in, out] DWORD *size);
584 HRESULT SetCodecEnumerationSetting(
585 [in] REFGUID guid,
586 [in] DWORD codecindex,
587 [in] const WCHAR *name,
588 [in] WMT_ATTR_DATATYPE type,
589 [in, size_is(size)] const BYTE *value,
590 [in] DWORD size);
592 HRESULT GetCodecEnumerationSetting(
593 [in] REFGUID guid,
594 [in] DWORD codecindex,
595 [in] const WCHAR *name,
596 [out] WMT_ATTR_DATATYPE *type,
597 [out, size_is(*size)] BYTE *value,
598 [in, out] DWORD *size);
601 cpp_quote("static const WCHAR g_wszNumPasses[] = {'_','P','A','S','S','E','S','U','S','E','D',0};")
602 cpp_quote("static const WCHAR g_wszVBREnabled[] = {'_','V','B','R','E','N','A','B','L','E','D',0};")
605 object,
606 uuid(96406bce-2b2b-11d3-b36b-00c04f6108ff),
607 pointer_default(unique),
608 local
610 interface IWMMediaProps : IUnknown
612 HRESULT GetType(
613 [out] GUID *pguidType);
615 HRESULT GetMediaType(
616 [out] WM_MEDIA_TYPE *pType,
617 [in, out] DWORD *pcbType);
619 HRESULT SetMediaType(
620 [in] WM_MEDIA_TYPE *pType);
624 object,
625 uuid(96406bd7-2b2b-11d3-b36b-00c04f6108ff),
626 pointer_default(unique),
627 local
629 interface IWMOutputMediaProps : IWMMediaProps
631 HRESULT GetStreamGroupName(
632 [out, size_is(*pcchName)] WCHAR *pwszName,
633 [in, out] WORD *pcchName);
635 HRESULT GetConnectionName(
636 [out, size_is(*pcchName)] WCHAR *pwszName,
637 [in, out] WORD *pcchName);
641 object,
642 uuid(96406bd9-2b2b-11d3-b36b-00c04f6108ff),
643 pointer_default(unique),
644 local
646 interface IWMMetadataEditor : IUnknown
648 HRESULT Open(
649 [in] const WCHAR *pwszFilename);
651 HRESULT Close();
653 HRESULT Flush();
657 object,
658 uuid(96406bd6-2b2b-11d3-b36b-00c04f6108ff),
659 pointer_default(unique),
660 local
662 interface IWMReader : IUnknown
664 HRESULT Open(
665 [in] const WCHAR *pwszURL,
666 [in] IWMReaderCallback *pCallback,
667 [in] void *pvContext);
669 HRESULT Close();
671 HRESULT GetOutputCount(
672 [out] DWORD *pcOutputs);
674 HRESULT GetOutputProps(
675 [in] DWORD dwOutputNum,
676 [out] IWMOutputMediaProps **ppOutput);
678 HRESULT SetOutputProps(
679 [in] DWORD dwOutputNum,
680 [in] IWMOutputMediaProps *pOutput);
682 HRESULT GetOutputFormatCount(
683 [in] DWORD dwOutputNumber,
684 [out] DWORD *pcFormats);
686 HRESULT GetOutputFormat(
687 [in] DWORD dwOutputNumber,
688 [in] DWORD dwFormatNumber,
689 [out] IWMOutputMediaProps** ppProps);
691 HRESULT Start(
692 [in] QWORD cnsStart,
693 [in] QWORD cnsDuration,
694 [in] float fRate,
695 [in] void *pvContext);
697 HRESULT Stop();
699 HRESULT Pause();
701 HRESULT Resume();
705 object,
706 uuid(e5b7ca9a-0f1c-4f66-9002-74ec50d8b304),
707 pointer_default(unique),
708 local
710 interface IWMPlayerHook : IUnknown
712 HRESULT PreDecode();
716 object,
717 uuid(96406bea-2b2b-11d3-b36b-00c04f6108ff),
718 pointer_default(unique),
719 local
721 interface IWMReaderAdvanced : IUnknown
723 HRESULT SetUserProvidedClock(
724 [in] BOOL fUserClock);
726 HRESULT GetUserProvidedClock(
727 [out] BOOL *pfUserClock);
729 HRESULT DeliverTime(
730 [in] QWORD cnsTime);
732 HRESULT SetManualStreamSelection(
733 [in] BOOL fSelection);
735 HRESULT GetManualStreamSelection(
736 [out] BOOL *pfSelection);
738 HRESULT SetStreamsSelected(
739 [in] WORD cStreamCount,
740 [in] WORD *pwStreamNumbers,
741 [in] WMT_STREAM_SELECTION *pSelections);
743 HRESULT GetStreamSelected(
744 [in] WORD wStreamNum,
745 [out] WMT_STREAM_SELECTION *pSelection);
747 HRESULT SetReceiveSelectionCallbacks(
748 [in] BOOL fGetCallbacks);
750 HRESULT GetReceiveSelectionCallbacks(
751 [out] BOOL *pfGetCallbacks);
753 HRESULT SetReceiveStreamSamples(
754 [in] WORD wStreamNum,
755 [in] BOOL fReceiveStreamSamples);
757 HRESULT GetReceiveStreamSamples(
758 [in] WORD wStreamNum,
759 [out] BOOL *pfReceiveStreamSamples);
761 HRESULT SetAllocateForOutput(
762 [in] DWORD dwOutputNum,
763 [in] BOOL fAllocate);
765 HRESULT GetAllocateForOutput(
766 [in] DWORD dwOutputNum,
767 [out] BOOL *pfAllocate);
769 HRESULT SetAllocateForStream(
770 [in] WORD wStreamNum,
771 [in] BOOL fAllocate);
773 HRESULT GetAllocateForStream(
774 [in] WORD dwStreamNum,
775 [out] BOOL *pfAllocate);
777 HRESULT GetStatistics(
778 [in, out] WM_READER_STATISTICS *pStatistics);
780 HRESULT SetClientInfo(
781 [in] WM_READER_CLIENTINFO *pClientInfo);
783 HRESULT GetMaxOutputSampleSize(
784 [in] DWORD dwOutput,
785 [out] DWORD *pcbMax);
787 HRESULT GetMaxStreamSampleSize(
788 [in] WORD wStream,
789 [out] DWORD *pcbMax);
791 HRESULT NotifyLateDelivery(
792 QWORD cnsLateness);
796 object,
797 uuid(ae14a945-b90c-4d0d-9127-80d665f7d73e),
798 pointer_default(unique),
799 local
801 interface IWMReaderAdvanced2 : IWMReaderAdvanced
803 HRESULT SetPlayMode(
804 [in] WMT_PLAY_MODE Mode);
806 HRESULT GetPlayMode(
807 [out] WMT_PLAY_MODE *pMode);
809 HRESULT GetBufferProgress(
810 [out] DWORD *pdwPercent,
811 [out] QWORD *pcnsBuffering);
813 HRESULT GetDownloadProgress(
814 [out] DWORD *pdwPercent,
815 [out] QWORD *pqwBytesDownloaded,
816 [out] QWORD *pcnsDownload);
818 HRESULT GetSaveAsProgress(
819 [out] DWORD *pdwPercent);
821 HRESULT SaveFileAs(
822 [in] const WCHAR *pwszFilename);
824 HRESULT GetProtocolName(
825 [out, size_is(*pcchProtocol)] WCHAR *pwszProtocol,
826 [in, out] DWORD *pcchProtocol);
828 HRESULT StartAtMarker(
829 [in] WORD wMarkerIndex,
830 [in] QWORD cnsDuration,
831 [in] float fRate,
832 [in] void *pvContext);
834 HRESULT GetOutputSetting(
835 [in] DWORD dwOutputNum,
836 [in] LPCWSTR pszName,
837 [out] WMT_ATTR_DATATYPE *pType,
838 [out, size_is(*pcbLength)] BYTE *pValue,
839 [in, out] WORD *pcbLength);
841 HRESULT SetOutputSetting(
842 [in] DWORD dwOutputNum,
843 [in] LPCWSTR pszName,
844 [in] WMT_ATTR_DATATYPE Type,
845 [in, size_is(cbLength)] const BYTE *pValue,
846 [in] WORD cbLength);
848 HRESULT Preroll(
849 [in] QWORD cnsStart,
850 [in] QWORD cnsDuration,
851 [in] float fRate);
853 HRESULT SetLogClientID(
854 [in] BOOL fLogClientID);
856 HRESULT GetLogClientID(
857 [out] BOOL *pfLogClientID);
859 HRESULT StopBuffering();
861 HRESULT OpenStream(
862 [in] IStream *pStream,
863 [in] IWMReaderCallback *pCallback,
864 [in] void *pvContext);
868 object,
869 uuid(5dc0674b-f04B-4a4e-9f2a-b1afde2c8100),
870 pointer_default(unique),
871 local
873 interface IWMReaderAdvanced3 : IWMReaderAdvanced2
875 HRESULT StopNetStreaming();
877 HRESULT StartAtPosition(
878 [in] WORD wStreamNum,
879 [in] void *pvOffsetStart,
880 [in] void *pvDuration,
881 [in] WMT_OFFSET_FORMAT dwOffsetFormat,
882 [in] float fRate,
883 [in] void *pvContext);
887 object,
888 uuid(945a76a2-12ae-4d48-bd3c-cd1d90399b85),
889 pointer_default(unique),
890 local
892 interface IWMReaderAdvanced4 : IWMReaderAdvanced3
894 HRESULT GetLanguageCount(
895 [in] DWORD dwOutputNum,
896 [out] WORD *pwLanguageCount);
898 HRESULT GetLanguage(
899 [in] DWORD dwOutputNum,
900 [in] WORD wLanguage,
901 [out, size_is(*pcchLanguageStringLength)] WCHAR *pwszLanguageString,
902 [in, out] WORD *pcchLanguageStringLength);
904 HRESULT GetMaxSpeedFactor(
905 [out] double *pdblFactor);
907 HRESULT IsUsingFastCache(
908 [out] BOOL *pfUsingFastCache);
910 HRESULT AddLogParam(
911 [in] LPCWSTR wszNameSpace,
912 [in] LPCWSTR wszName,
913 [in] LPCWSTR wszValue);
915 HRESULT SendLogParams();
917 HRESULT CanSaveFileAs(
918 [out] BOOL *pfCanSave);
920 HRESULT CancelSaveFileAs();
922 HRESULT GetURL(
923 [out, size_is(*pcchURL)] WCHAR *pwszURL,
924 [in, out] DWORD *pcchURL);
928 object,
929 uuid(24c44db0-55d1-49ae-a5cc-f13815e36363),
930 pointer_default(unique),
931 local
933 interface IWMReaderAdvanced5 : IWMReaderAdvanced4
935 HRESULT SetPlayerHook(
936 [in] DWORD dwOutputNum,
937 [in] IWMPlayerHook *pHook);
941 object,
942 uuid(18a2e7f8-428f-4acd-8a00-e64639bc93de),
943 pointer_default(unique),
944 local
946 interface IWMReaderAdvanced6 : IWMReaderAdvanced5
948 HRESULT SetProtectStreamSamples(
949 [in, size_is(cbCertificate)] BYTE *pbCertificate,
950 [in] DWORD cbCertificate,
951 [in] DWORD dwCertificateType,
952 [in] DWORD dwFlags,
953 [out, size_is(*pcbInitializationVector)] BYTE *pbInitializationVector,
954 [in, out] DWORD *pcbInitializationVector);
958 object,
959 uuid(9397f121-7705-4dc9-b049-98b698188414),
960 pointer_default( unique ),
961 local
963 interface IWMSyncReader : IUnknown
965 HRESULT Open(
966 [in] const WCHAR *pwszFilename);
968 HRESULT Close();
970 HRESULT SetRange(
971 [in] QWORD cnsStartTime,
972 [in] LONGLONG cnsDuration);
974 HRESULT SetRangeByFrame(
975 [in] WORD wStreamNum,
976 [in] QWORD qwFrameNumber,
977 [in] LONGLONG cFramesToRead);
979 HRESULT GetNextSample(
980 [in] WORD wStreamNum,
981 [out] INSSBuffer **ppSample,
982 [out] QWORD *pcnsSampleTime,
983 [out] QWORD *pcnsDuration,
984 [out] DWORD *pdwFlags,
985 [out] DWORD *pdwOutputNum,
986 [out] WORD *pwStreamNum);
988 HRESULT SetStreamsSelected(
989 [in] WORD cStreamCount,
990 [in] WORD *pwStreamNumbers,
991 [in] WMT_STREAM_SELECTION *pSelections);
993 HRESULT GetStreamSelected(
994 [in] WORD wStreamNum,
995 [out] WMT_STREAM_SELECTION *pSelection);
997 HRESULT SetReadStreamSamples(
998 [in] WORD wStreamNum,
999 [in] BOOL fCompressed);
1001 HRESULT GetReadStreamSamples(
1002 [in] WORD wStreamNum,
1003 [out] BOOL *pfCompressed);
1005 HRESULT GetOutputSetting(
1006 [in] DWORD dwOutputNum,
1007 [in] LPCWSTR pszName,
1008 [out] WMT_ATTR_DATATYPE *pType,
1009 [out, size_is(*pcbLength)] BYTE *pValue,
1010 [in, out] WORD *pcbLength);
1012 HRESULT SetOutputSetting(
1013 [in] DWORD dwOutputNum,
1014 [in] LPCWSTR pszName,
1015 [in] WMT_ATTR_DATATYPE Type,
1016 [in, size_is(cbLength)] const BYTE *pValue,
1017 [in] WORD cbLength);
1019 HRESULT GetOutputCount(
1020 [out] DWORD *pcOutputs);
1022 HRESULT GetOutputProps(
1023 [in] DWORD dwOutputNum,
1024 [out] IWMOutputMediaProps **ppOutput);
1026 HRESULT SetOutputProps(
1027 [in] DWORD dwOutputNum,
1028 [in] IWMOutputMediaProps *pOutput);
1030 HRESULT GetOutputFormatCount(
1031 [in] DWORD dwOutputNum,
1032 [out] DWORD *pcFormats);
1034 HRESULT GetOutputFormat(
1035 [in] DWORD dwOutputNum,
1036 [in] DWORD dwFormatNum,
1037 [out] IWMOutputMediaProps **ppProps);
1039 HRESULT GetOutputNumberForStream(
1040 [in] WORD wStreamNum,
1041 [out] DWORD *pdwOutputNum);
1043 HRESULT GetStreamNumberForOutput(
1044 [in] DWORD dwOutputNum,
1045 [out] WORD *pwStreamNum);
1047 HRESULT GetMaxOutputSampleSize(
1048 [in] DWORD dwOutput,
1049 [out] DWORD *pcbMax);
1051 HRESULT GetMaxStreamSampleSize(
1052 [in] WORD wStream,
1053 [out] DWORD *pcbMax);
1055 HRESULT OpenStream(
1056 [in] IStream *pStream);
1060 object,
1061 uuid(96406bd5-2b2b-11d3-b36b-00c04f6108ff),
1062 pointer_default(unique),
1063 local
1065 interface IWMInputMediaProps : IWMMediaProps
1067 HRESULT GetConnectionName(
1068 [out, size_is(*pcchName)] WCHAR *pwszName,
1069 [in, out] WORD *pcchName);
1071 HRESULT GetGroupName(
1072 [out, size_is(*pcchName)] WCHAR *pwszName,
1073 [in, out] WORD *pcchName);
1077 object,
1078 uuid(96406be4-2b2b-11d3-b36b-00c04f6108ff),
1079 pointer_default(unique),
1080 local
1082 interface IWMWriterSink : IUnknown
1084 HRESULT OnHeader(
1085 [in] INSSBuffer *pHeader);
1087 HRESULT IsRealTime(
1088 [out] BOOL *pfRealTime);
1090 HRESULT AllocateDataUnit(
1091 [in] DWORD cbDataUnit,
1092 [out] INSSBuffer **ppDataUnit);
1094 HRESULT OnDataUnit(
1095 [in] INSSBuffer *pDataUnit);
1097 HRESULT OnEndWriting();
1101 object,
1102 uuid(96406bd4-2b2b-11d3-b36b-00c04f6108ff),
1103 pointer_default(unique),
1104 local
1106 interface IWMWriter : IUnknown
1108 HRESULT SetProfileByID(
1109 [in] REFGUID guidProfile);
1111 HRESULT SetProfile(
1112 [in] IWMProfile *pProfile);
1114 HRESULT SetOutputFilename(
1115 [in] const WCHAR *pwszFilename);
1117 HRESULT GetInputCount(
1118 [out] DWORD *pcInputs);
1120 HRESULT GetInputProps(
1121 [in] DWORD dwInputNum,
1122 [out] IWMInputMediaProps **ppInput);
1124 HRESULT SetInputProps(
1125 [in] DWORD dwInputNum,
1126 [in] IWMInputMediaProps *pInput);
1128 HRESULT GetInputFormatCount(
1129 [in] DWORD dwInputNumber,
1130 [out] DWORD *pcFormats);
1132 HRESULT GetInputFormat(
1133 [in] DWORD dwInputNumber,
1134 [in] DWORD dwFormatNumber,
1135 [out] IWMInputMediaProps **pProps);
1137 HRESULT BeginWriting();
1139 HRESULT EndWriting();
1141 HRESULT AllocateSample(
1142 [in] DWORD dwSampleSize,
1143 [out] INSSBuffer **ppSample);
1145 HRESULT WriteSample(
1146 [in] DWORD dwInputNum,
1147 [in] QWORD cnsSampleTime,
1148 [in] DWORD dwFlags,
1149 [in] INSSBuffer *pSample);
1151 HRESULT Flush();
1155 object,
1156 uuid(96406be3-2b2b-11d3-b36b-00C04f6108ff),
1157 pointer_default(unique),
1158 local
1160 interface IWMWriterAdvanced : IUnknown
1162 HRESULT GetSinkCount(
1163 [out] DWORD *pcSinks);
1165 HRESULT GetSink(
1166 [in] DWORD dwSinkNum,
1167 [out] IWMWriterSink **ppSink);
1169 HRESULT AddSink(
1170 [in] IWMWriterSink *pSink);
1172 HRESULT RemoveSink(
1173 [in] IWMWriterSink *pSink);
1175 HRESULT WriteStreamSample(
1176 [in] WORD wStreamNum,
1177 [in] QWORD cnsSampleTime,
1178 [in] DWORD msSampleSendTime,
1179 [in] QWORD cnsSampleDuration,
1180 [in] DWORD dwFlags,
1181 [in] INSSBuffer *pSample);
1183 HRESULT SetLiveSource(
1184 BOOL fIsLiveSource);
1186 HRESULT IsRealTime(
1187 [out] BOOL *pfRealTime);
1189 HRESULT GetWriterTime(
1190 [out] QWORD *pCurrentTime);
1192 HRESULT GetStatistics(
1193 [in] WORD wStreamNum,
1194 [out] WM_WRITER_STATISTICS *pStats);
1196 HRESULT SetSyncTolerance(
1197 [in] DWORD msWindow);
1199 HRESULT GetSyncTolerance(
1200 [out] DWORD *pmsWindow);
1204 object,
1205 uuid(962dc1ec-c046-4db8-9cc7-26ceae500817),
1206 pointer_default(unique),
1207 local
1209 interface IWMWriterAdvanced2 : IWMWriterAdvanced
1211 HRESULT GetInputSetting(
1212 [in] DWORD dwInputNum,
1213 [in] LPCWSTR pszName,
1214 [out] WMT_ATTR_DATATYPE *pType,
1215 [out, size_is(*pcbLength)] BYTE *pValue,
1216 [in, out] WORD *pcbLength);
1218 HRESULT SetInputSetting(
1219 [in] DWORD dwInputNum,
1220 [in] LPCWSTR pszName,
1221 [in] WMT_ATTR_DATATYPE Type,
1222 [in, size_is(cbLength)] const BYTE *pValue,
1223 [in] WORD cbLength);
1227 object,
1228 uuid(2cd6492d-7c37-4e76-9d3b-59261183a22e),
1229 pointer_default(unique),
1230 local
1232 interface IWMWriterAdvanced3 : IWMWriterAdvanced2
1234 HRESULT GetStatisticsEx(
1235 [in] WORD wStreamNum,
1236 [out] WM_WRITER_STATISTICS_EX *pStats);
1238 HRESULT SetNonBlocking();
1242 object,
1243 uuid(96406bda-2b2b-11d3-b36b-00c04f6108ff),
1244 pointer_default(unique),
1245 local
1247 interface IWMHeaderInfo : IUnknown
1249 HRESULT GetAttributeCount(
1250 [in] WORD stream_num,
1251 [out] WORD *attributes );
1253 HRESULT GetAttributeByIndex(
1254 [in] WORD index,
1255 [in, out] WORD *stream_num,
1256 [out, size_is( *name_len )] WCHAR *name,
1257 [in, out] WORD *name_len,
1258 [out] WMT_ATTR_DATATYPE *type,
1259 [out, size_is( *length )] BYTE *value,
1260 [in, out] WORD *length );
1262 HRESULT GetAttributeByName(
1263 [in, out] WORD *stream_num,
1264 [in] LPCWSTR name,
1265 [out] WMT_ATTR_DATATYPE *type,
1266 [out, size_is( *length )] BYTE *value,
1267 [in, out] WORD *length );
1269 HRESULT SetAttribute(
1270 [in] WORD stream_num,
1271 [in] LPCWSTR name,
1272 [in] WMT_ATTR_DATATYPE type,
1273 [in, size_is( length )] const BYTE *value,
1274 [in] WORD length );
1276 HRESULT GetMarkerCount(
1277 [out] WORD *markers );
1279 HRESULT GetMarker(
1280 [in] WORD index,
1281 [out, size_is( *marker_len )] WCHAR *marker_name,
1282 [in, out] WORD *marker_len,
1283 [out] QWORD *marker_time );
1285 HRESULT AddMarker(
1286 [in] LPCWSTR_WMSDK_TYPE_SAFE marker_name,
1287 [in] QWORD marker_time );
1289 HRESULT RemoveMarker(
1290 [in] WORD index );
1292 HRESULT GetScriptCount(
1293 [out] WORD *scripts );
1295 HRESULT GetScript(
1296 [in] WORD index,
1297 [out, size_is( *type_len )] WCHAR *type,
1298 [in, out] WORD *type_len,
1299 [out, size_is( *command_len )] WCHAR *command,
1300 [in, out] WORD *command_len,
1301 [out] QWORD *script_time );
1303 HRESULT AddScript(
1304 [in] LPCWSTR_WMSDK_TYPE_SAFE type,
1305 [in] LPCWSTR_WMSDK_TYPE_SAFE command,
1306 [in] QWORD script_time );
1308 HRESULT RemoveScript(
1309 [in] WORD index );
1313 object,
1314 uuid(15cf9781-454e-482e-b393-85fae487a810),
1315 pointer_default(unique),
1316 local
1318 interface IWMHeaderInfo2 : IWMHeaderInfo
1320 HRESULT GetCodecInfoCount(
1321 [out] DWORD *codec_infos );
1323 HRESULT GetCodecInfo(
1324 [in] DWORD index,
1325 [in, out] WORD *name_len,
1326 [out, size_is( *name_len )] WCHAR *name,
1327 [in, out] WORD *description_len,
1328 [out, size_is( *description_len )] WCHAR *description,
1329 [out] WMT_CODEC_INFO_TYPE *codec_type,
1330 [in, out] WORD *codec_info_cnt,
1331 [out, size_is( *codec_info_cnt )] BYTE *codec_info );
1335 object,
1336 uuid(15cc68e3-27cc-4ecd-b222-3f5d02d80bd5),
1337 pointer_default(unique),
1338 local
1340 interface IWMHeaderInfo3 : IWMHeaderInfo2
1342 HRESULT GetAttributeCountEx(
1343 [in] WORD stream_num,
1344 [out] WORD *attributes );
1346 HRESULT GetAttributeIndices(
1347 [in] WORD stream_num,
1348 [in] LPCWSTR name,
1349 [in] WORD *lang_index,
1350 [out, size_is( *count )] WORD *indices,
1351 [in, out] WORD *count );
1353 HRESULT GetAttributeByIndexEx(
1354 [in] WORD stream_num,
1355 [in] WORD index,
1356 [out, size_is( *name_len )] LPWSTR name,
1357 [in, out] WORD *name_len,
1358 [out] WMT_ATTR_DATATYPE *type,
1359 [out] WORD *lang_index,
1360 [out, size_is( *data_len )] BYTE *value,
1361 [in, out] DWORD *data_len );
1363 HRESULT ModifyAttribute(
1364 [in] WORD stream_num,
1365 [in] WORD index,
1366 [in] WMT_ATTR_DATATYPE type,
1367 [in] WORD lang_index,
1368 [in, size_is( length )] const BYTE *value,
1369 [in] DWORD length );
1371 HRESULT AddAttribute(
1372 [in] WORD stream_num,
1373 [in] LPCWSTR name,
1374 [out] WORD *index,
1375 [in] WMT_ATTR_DATATYPE type,
1376 [in] WORD lang_index,
1377 [in, size_is( length )] const BYTE *value,
1378 [in] DWORD length );
1380 HRESULT DeleteAttribute(
1381 [in] WORD stream_num,
1382 [in] WORD index );
1384 HRESULT AddCodecInfo(
1385 [in] LPCWSTR_WMSDK_TYPE_SAFE name,
1386 [in] LPCWSTR_WMSDK_TYPE_SAFE description,
1387 [in] WMT_CODEC_INFO_TYPE codec_type,
1388 [in] WORD codec_info_cnt,
1389 [in, size_is( codec_info_cnt )] BYTE *codec_info );
1393 object,
1394 uuid(96406bec-2b2b-11d3-b36b-00c04f6108ff),
1395 pointer_default(unique),
1396 local
1398 interface IWMReaderNetworkConfig : IUnknown
1400 HRESULT GetBufferingTime([out] QWORD *buffering_time);
1401 HRESULT SetBufferingTime([in] QWORD buffering_time);
1403 HRESULT GetUDPPortRanges(
1404 [out, size_is( *ranges )] WM_PORT_NUMBER_RANGE *array,
1405 [in, out] DWORD *ranges);
1407 HRESULT SetUDPPortRanges(
1408 [in, size_is( ranges )] WM_PORT_NUMBER_RANGE *array,
1409 [in] DWORD ranges);
1411 HRESULT GetProxySettings(
1412 [in] const WCHAR *protocol,
1413 [out] WMT_PROXY_SETTINGS *proxy);
1415 HRESULT SetProxySettings(
1416 [in] LPCWSTR protocol,
1417 [in] WMT_PROXY_SETTINGS proxy);
1419 HRESULT GetProxyHostName(
1420 [in] const WCHAR *protocol,
1421 [out, size_is( *size )] WCHAR *hostname,
1422 [in, out] DWORD *size);
1424 HRESULT SetProxyHostName(
1425 [in] const WCHAR *protocol,
1426 [in] const WCHAR *hostname);
1428 HRESULT GetProxyPort(
1429 [in] const WCHAR *protocol,
1430 [out] DWORD *port);
1432 HRESULT SetProxyPort(
1433 [in] const WCHAR *protocol,
1434 [in] DWORD port);
1436 HRESULT GetProxyExceptionList(
1437 [in] const WCHAR *protocol,
1438 [out, size_is( *count )] WCHAR *exceptions,
1439 [in, out] DWORD *count);
1441 HRESULT SetProxyExceptionList(
1442 [in] const WCHAR *protocol,
1443 [in] const WCHAR *exceptions);
1445 HRESULT GetProxyBypassForLocal(
1446 [in] const WCHAR *protocol,
1447 [out] BOOL *bypass);
1449 HRESULT SetProxyBypassForLocal(
1450 [in] const WCHAR *protocol,
1451 [in] BOOL bypass);
1453 HRESULT GetForceRerunAutoProxyDetection([out] BOOL *detection);
1454 HRESULT SetForceRerunAutoProxyDetection([in] BOOL detection);
1456 HRESULT GetEnableMulticast([out] BOOL *multicast);
1457 HRESULT SetEnableMulticast([in] BOOL multicast);
1459 HRESULT GetEnableHTTP([out] BOOL *enable);
1460 HRESULT SetEnableHTTP([in] BOOL enable);
1462 HRESULT GetEnableUDP([out] BOOL *enable);
1463 HRESULT SetEnableUDP([in] BOOL enable);
1465 HRESULT GetEnableTCP([out] BOOL *enable);
1466 HRESULT SetEnableTCP([in] BOOL enable);
1468 HRESULT ResetProtocolRollover();
1470 HRESULT GetConnectionBandwidth([out] DWORD *bandwidth);
1471 HRESULT SetConnectionBandwidth([in] DWORD bandwidth);
1473 HRESULT GetNumProtocolsSupported([out] DWORD *protocols);
1475 HRESULT GetSupportedProtocolName(
1476 [in] DWORD protocol_num,
1477 [out, size_is( *size )] WCHAR *protocol,
1478 [in, out] DWORD *size);
1480 HRESULT AddLoggingUrl([in] const WCHAR *url);
1482 HRESULT GetLoggingUrl(
1483 [in] DWORD index,
1484 [out, size_is( *size )] WCHAR *url,
1485 [in, out] DWORD *size);
1487 HRESULT GetLoggingUrlCount([out] DWORD *count);
1489 HRESULT ResetLoggingUrlList();
1493 object,
1494 uuid(d979a853-042b-4050-8387-c939db22013f),
1495 pointer_default(unique),
1496 local
1498 interface IWMReaderNetworkConfig2 : IWMReaderNetworkConfig
1500 HRESULT GetEnableContentCaching([out] BOOL *enable);
1501 HRESULT SetEnableContentCaching([in] BOOL enable);
1503 HRESULT GetEnableFastCache([out] BOOL *enable);
1504 HRESULT SetEnableFastCache([in] BOOL enable);
1506 HRESULT GetAcceleratedStreamingDuration([out] QWORD *duration);
1507 HRESULT SetAcceleratedStreamingDuration([in] QWORD duration);
1509 HRESULT GetAutoReconnectLimit([out] DWORD *limit);
1510 HRESULT SetAutoReconnectLimit([in] DWORD limit);
1512 HRESULT GetEnableResends([out] BOOL *enable);
1513 HRESULT SetEnableResends([in] BOOL enable);
1515 HRESULT GetEnableThinning([out] BOOL *enable);
1516 HRESULT SetEnableThinning([in] BOOL enable);
1518 HRESULT GetMaxNetPacketSize([out] DWORD *packet_size);
1522 object,
1523 uuid(96406bed-2b2b-11d3-b36b-00c04f6108ff),
1524 pointer_default(unique),
1525 local
1528 interface IWMReaderStreamClock : IUnknown
1530 HRESULT GetTime([in] QWORD *now);
1532 HRESULT SetTimer([in] QWORD when,
1533 [in] void *param,
1534 [out] DWORD *id);
1536 HRESULT KillTimer([in] DWORD id);
1540 object,
1541 uuid(cdfb97ab-188f-40b3-b643-5b7903975c59),
1542 pointer_default(unique),
1543 local
1545 interface IWMPacketSize : IUnknown
1547 HRESULT GetMaxPacketSize([out] DWORD *size);
1548 HRESULT SetMaxPacketSize([in] DWORD size);
1552 object,
1553 uuid(8bfc2b9e-b646-4233-a877-1c6a079669dc),
1554 pointer_default(unique),
1555 local
1557 interface IWMPacketSize2 : IWMPacketSize
1559 HRESULT GetMinPacketSize([out] DWORD *size);
1560 HRESULT SetMinPacketSize([in] DWORD size);
1564 object,
1565 uuid(d2827540-3ee7-432c-b14c-dc17f085d3b3),
1566 pointer_default(unique),
1567 local
1569 interface IWMDRMReader : IUnknown
1571 HRESULT AcquireLicense([in] DWORD flags);
1572 HRESULT CancelLicenseAcquisition();
1574 HRESULT Individualize([in] DWORD flags);
1575 HRESULT CancelIndividualization();
1577 HRESULT MonitorLicenseAcquisition();
1578 HRESULT CancelMonitorLicenseAcquisition();
1580 HRESULT SetDRMProperty(
1581 [in] const WCHAR *name,
1582 [in] WMT_ATTR_DATATYPE type,
1583 [in, size_is( length )] const BYTE *value,
1584 [in] WORD length);
1586 HRESULT GetDRMProperty(
1587 [in] const WCHAR *name,
1588 [out] WMT_ATTR_DATATYPE *type,
1589 [out, size_is( *length )] BYTE *value,
1590 [in, out] WORD *length);
1594 object,
1595 uuid(befe7a75-9f1d-4075-b9d9-a3c37bda49a0),
1596 pointer_default(unique),
1597 local
1599 interface IWMDRMReader2 : IWMDRMReader
1601 HRESULT SetEvaluateOutputLevelLicenses([in] BOOL evaluate);
1602 HRESULT GetPlayOutputLevels(
1603 [out, size_is( *length )] DRM_PLAY_OPL *play,
1604 [in, out] DWORD *length,
1605 [out] DWORD *level);
1607 HRESULT GetCopyOutputLevels(
1608 [out, size_is( *length )] DRM_COPY_OPL *copy,
1609 [in, out] DWORD *length,
1610 [out] DWORD *level);
1612 HRESULT TryNextLicense();
1616 object,
1617 uuid(e08672de-f1e7-4ff4-a0a3-fc4b08e4caf8),
1618 pointer_default(unique),
1619 local
1621 interface IWMDRMReader3 : IWMDRMReader2
1623 HRESULT GetInclusionList(
1624 [out] GUID **guids,
1625 [out] DWORD *count);
1629 object,
1630 uuid(bddc4d08-944d-4d52-a612-46c3fda07dd4),
1631 pointer_default( unique ),
1632 local
1634 interface IWMReaderAccelerator : IUnknown
1636 HRESULT GetCodecInterface(
1637 [in] DWORD output,
1638 [in] REFIID riid,
1639 [out] void **codec);
1641 HRESULT Notify(
1642 [in] DWORD output,
1643 [in] WM_MEDIA_TYPE *subtype);
1647 object,
1648 uuid(f369e2f0-e081-4fe6-8450-b810b2f410d1),
1649 pointer_default(unique),
1650 local
1652 interface IWMReaderTimecode : IUnknown
1654 HRESULT GetTimecodeRangeCount(
1655 [in] WORD num,
1656 [out] WORD *count);
1658 HRESULT GetTimecodeRangeBounds(
1659 [in] WORD stream,
1660 [in] WORD range,
1661 [out] DWORD *start_timecode,
1662 [out] DWORD *end_timecode);
1666 object,
1667 uuid(fdbe5592-81a1-41ea-93bd-735cad1adc05),
1668 pointer_default(unique),
1669 local
1671 interface IWMReaderTypeNegotiation : IUnknown
1673 HRESULT TryOutputProps(
1674 [in] DWORD output,
1675 [in] IWMOutputMediaProps *props);
1679 object,
1680 uuid(df683f00-2d49-4d8e-92b7-fb19f6a0dc57),
1681 pointer_default(unique),
1682 local
1684 interface IWMLanguageList : IUnknown
1686 HRESULT GetLanguageCount(
1687 [out] WORD *count);
1689 HRESULT GetLanguageDetails(
1690 [in] WORD index,
1691 [out, size_is( *length )] WCHAR *language,
1692 [in, out] WORD *length);
1694 HRESULT AddLanguageByRFC1766String(
1695 [in] LPCWSTR_WMSDK_TYPE_SAFE language,
1696 [out] WORD *index);
1700 object,
1701 uuid(f28c0300-9baa-4477-a846-1744d9cbf533),
1702 pointer_default(unique),
1703 local
1705 interface IWMReaderPlaylistBurn : IUnknown
1707 HRESULT InitPlaylistBurn(
1708 [in] DWORD count,
1709 [in] LPCWSTR_WMSDK_TYPE_SAFE *filenames,
1710 [in] IWMStatusCallback *callback,
1711 [in] void *context);
1713 HRESULT GetInitResults(
1714 [in] DWORD count,
1715 [out] HRESULT *stat);
1717 HRESULT Cancel();
1719 HRESULT EndPlaylistBurn([in] HRESULT result);
1723 object,
1724 uuid(72995a79-5090-42a4-9c8c-d9d0b6d34be5),
1725 pointer_default(unique),
1726 local
1728 interface IWMPropertyVault : IUnknown
1730 HRESULT GetPropertyCount([in] DWORD *count);
1732 HRESULT GetPropertyByName(
1733 [in] const WCHAR *name,
1734 [out] WMT_ATTR_DATATYPE *type,
1735 [out, size_is( *size )] BYTE *value,
1736 [in, out] DWORD *size);
1738 HRESULT SetProperty(
1739 [in] const WCHAR *name,
1740 [in] WMT_ATTR_DATATYPE type,
1741 [in] BYTE *value,
1742 [in] DWORD size);
1744 HRESULT GetPropertyByIndex(
1745 [in] DWORD index,
1746 [out, size_is( *pdwNameLen )] WCHAR *name,
1747 [in, out] DWORD *length,
1748 [out] WMT_ATTR_DATATYPE *type,
1749 [out, size_is( *size )] BYTE *value,
1750 [in, out] DWORD *size);
1752 HRESULT CopyPropertiesFrom([in] IWMPropertyVault *vault);
1754 HRESULT Clear();
1758 object,
1759 uuid(fc54a285-38c4-45b5-aa23-85b9f7cb424b),
1760 pointer_default(unique),
1761 local
1763 interface IWMWriterPreprocess : IUnknown
1765 HRESULT GetMaxPreprocessingPasses(
1766 [in] DWORD input,
1767 [in] DWORD flags,
1768 [out] DWORD *passes);
1770 HRESULT SetNumPreprocessingPasses(
1771 [in] DWORD input,
1772 [in] DWORD flags,
1773 [in] DWORD passes);
1775 HRESULT BeginPreprocessingPass(
1776 [in] DWORD input,
1777 [in] DWORD flags);
1779 HRESULT PreprocessSample(
1780 [in] DWORD input,
1781 [in] QWORD sample_time,
1782 [in] DWORD flags,
1783 [in] INSSBuffer *sample);
1785 HRESULT EndPreprocessingPass(
1786 [in] DWORD input,
1787 [in] DWORD flags);
1790 cpp_quote("HRESULT WINAPI WMCreateWriter(IUnknown*,IWMWriter**);")
1791 cpp_quote("HRESULT WINAPI WMCreateReader(IUnknown*,DWORD,IWMReader**);")
1793 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_Base, 0x00000000,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1794 cpp_quote("EXTERN_GUID(WMMEDIATYPE_Video, 0x73646976,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1795 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_RGB1, 0xe436eb78,0x524f,0x11ce,0x9f,0x53,0x00,0x20,0xaf,0x0b,0xa7,0x70);")
1796 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_RGB4, 0xe436eb79,0x524f,0x11ce,0x9f,0x53,0x00,0x20,0xaf,0x0b,0xa7,0x70);")
1797 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_RGB8, 0xe436eb7a,0x524f,0x11ce,0x9f,0x53,0x00,0x20,0xaf,0x0b,0xa7,0x70);")
1798 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_RGB565, 0xe436eb7b,0x524f,0x11ce,0x9f,0x53,0x00,0x20,0xaf,0x0b,0xa7,0x70);")
1799 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_RGB555, 0xe436eb7c,0x524f,0x11ce,0x9f,0x53,0x00,0x20,0xaf,0x0b,0xa7,0x70);")
1800 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_RGB24, 0xe436eb7d,0x524f,0x11ce,0x9f,0x53,0x00,0x20,0xaf,0x0b,0xa7,0x70);")
1801 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_RGB32, 0xe436eb7e,0x524f,0x11ce,0x9f,0x53,0x00,0x20,0xaf,0x0b,0xa7,0x70);")
1802 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_I420, 0x30323449,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1803 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_IYUV, 0x56555949,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1804 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_YV12, 0x32315659,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1805 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_YUY2, 0x32595559,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1806 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_P422, 0x32323450,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1807 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_UYVY, 0x59565955,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1808 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_YVYU, 0x55595659,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1809 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_YVU9, 0x39555659,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1810 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_VIDEOIMAGE, 0x1d4a45f2,0xe5f6,0x4b44,0x83,0x88,0xf0,0xae,0x5c,0x0e,0x0c,0x37);")
1811 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_MP43, 0x3334504d,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1812 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_MP4S, 0x5334504d,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1813 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_M4S2, 0x3253344d,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1814 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_WMV1, 0x31564d57,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1815 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_WMV2, 0x32564d57,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1816 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_MSS1, 0x3153534d,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1817 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_MPEG2_VIDEO, 0xe06d8026,0xdb46,0x11cf,0xb4,0xd1,0x00,0x80,0x5f,0x6c,0xbb,0xea);")
1818 cpp_quote("EXTERN_GUID(WMMEDIATYPE_Audio, 0x73647561,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1819 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_PCM, 0x00000001,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1820 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_DRM, 0x00000009,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1821 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_WMAudioV9, 0x00000162,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1822 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_WMAudio_Lossless, 0x00000163,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1823 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_MSS2, 0x3253534d,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1824 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_WMSP1, 0x0000000a,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1825 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_WMSP2, 0x0000000b,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1826 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_WMV3, 0x33564d57,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1827 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_WMVP, 0x50564d57,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1828 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_WVP2, 0x32505657,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1829 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_WMVA, 0x41564d57,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1830 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_WVC1, 0x31435657,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")